Variables

Variables are designed to store some data inside the chat flow. Then you can use the values of variables to send some data to external services, emails, etc....

To create a new variable click the "Variables" dropdown and then click "Add new variable"

Variable name should start with "{" and end with "}". Allowed symbols: a-z, A-Z, 0-9, -, _.

For example {userEmail} or {userName}. You can also set the optional default value of the variable. The default value will be assigned to the variable on the new conversation.

Variables can be local or global.

Local variables are stored at the conversation level. So if the user started the new conversation, the local variable will be reset.

Global variables are stored at the user level. So you can access the value of the global variable in any conversation. If the global variable value is set in one conversion, it will be changed for any conversation of the current user.

You can store the user input into the variable. If the message has the "Wait for reply" option enabled, then you can store a user input to a variable. To do that, in the Actions section, you need to enable the "Save to variable" option and select a variable to store the value.

Then you can use the value of the variable in the message or conditional action. To render the variable value you can just enter a variable name to the text of the message.

Please read this article about using variables in conditional action.

Last updated