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 this information to be accessed and reused later within the flow. However, this data remains available only during the chatbot's execution, that is, it is not persisted after the interaction ends.
To save a response in a variable, it is first necessary to create the variable in the field "Save response in a variable", available in the block "Send Question".

Using a 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 (=). When the message is sent, the token will be replaced by the variable filled in by the lead.

Using a variable token - Send Webhook action
The variable token can be used in various actions, such as the action "Send Webhook" , to send data to an external platform.
In the case below, a webhook is being sent containing the lead's registered email and the pet's name, which was saved through the variable.

Last updated
Was this helpful?