For the complete documentation index, see llms.txt. This page is also available as Markdown.

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".

Saving the lead's response in a variable.

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.

Token inside the 'Send Message' block.

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.

Token inside the 'Send Webhook' action.

Last updated

Was this helpful?