Add data from real-time chat URL
Append variables to the real-time chat URL as query string parameters. For example, if a customer initiates real-time chat on your website and your site already knows the customer's name, you can let the bot know the customer's name before the conversation starts so the bot can have a smarter interaction without asking for the name again.
EnableRelatedSetup
Go to the single live chat management page, select the "Pass variables to script" tab, enable the setting that allows variables to be passed in via the URL, then save.

Add variables to the embed URL
Append variables to the URL as query string parameters (Query string), for example contact_name=bruce.wayne. Each parameter pair is separated by "&".
For example:
You have a variable named location.
Your live chat URL or embed code is:
To pass information when entering the chat script, you can append location to the URL
=Query string:
Each time you enter the script, the current live chatβs passed information is used as the basis; previously passed information will be cleared.
Avoid passing sensitive information and using reserved words
This feature is intended to enrich bot flow use cases. Do not use it to transmit sensitive information via this method, such as credit card numbers, passwords, etc. Also avoid using system default variable names, including uuidγtokenγonce_code, which will not take effect.
Using variables in conversation scripts or Webhook scripts
To use variables in the script, such as when sending messages, add the prefix extra_settings., for example use extra_settings.contact_name or extra_settings.location.
Hi! Mr./Ms. {{ extra_settings.contact_name }} from {{ extra_settings.location }}, hello! π

Last updated