Replaceable variables
Introduction
Replaceable variables can be used in canned messages, bot messages, and more.
System configuration -> Replaceable variables
Conditions
By applying conditions, you can restrict a variable to a specific chat.
{args.chat.referrer} `contains`. Page where chat started
{args.chat.session_referrer} `contains`. Referrer from where the visitor came to the site.
{args.chat.chat_variables_array.<variables>} = New
{args.chat.dep_id} = Department ID
How to define a replaceable variable by department
Here is a sample configuration. This will make a {brand}
variable available across the app.
Permission
For an operator to be able to edit variables, they must have this permission:
'lhcannedmsg', 'use_replace'