Understand how to use variables to store and reuse user input for a customized agent experience in Release0. Learn to create, update, and display variables in your chatbot flows, including handling sensitive information securely.
FirstName
contains “John”, you can display it in a dialog like this:
secure_
. For example:
My variable
contains “John”, the output will be “JOHN”.
{{={{My variable}}[0]=}}
or {{={{My variable}}.at(0)=}}
{{={{My variable}}.at(-1)=}}
Note: Wrapping the syntax with {{= ... =}}
evaluates the content as JavaScript.
Email
First name
Note: Replace spaces in variable names with %20
when using URLs.
Tip: Surround variable names containing spaces with quotes.
User ID
or utm_source
.
To make a variable hidden:
string
)string[]
)Warning: Non-text content (e.g., objects or numbers) will be automatically converted to text.
JSON.stringify
: