Using Variable Tokens within the Chatbot

How to create variables and use tokens to transfer data between blocks and actions.

Creating a variable

Variables in a chatbot are used to temporarily store data, allowing that information to be accessed and reused later within the flow. However, this data remains available only during the chatbot execution, meaning it is not persisted after the interaction ends.

To save an answer in a variable, you must first create the variable in the field "Save answer in a variable", available in the block "Send Question".

Saving the lead's answer in a variable.

Using the variable token - Send Message Block

The token follows the format {var=Pet Name}, with braces, the word var and the variable name after the equals sign (=). At the time the message is sent, the token will be replaced by the value filled in by the lead.

Token inside the 'Send Message' block.

Using the variable token - Send Webhook action

The variable token can be used in various actions, such as in the "Send Webhook" action, to send data to an external platform.

In the example below, a webhook is being sent containing the lead's registered email and the pet's name, which was saved through the variable.

Token inside the 'Send Webhook' action.

Last updated

Was this helpful?