🤖 Chatbot
✏️ Studio
Elements
Variables

What are Variables?

Variables are used to store and manage data within the flow. They can be used to capture user inputs, store information, or pass data between different components of the flow. Variables help in maintaining context and continuity in the conversation flow.

Role of Variables

  • Variables help in capturing and storing user inputs during the conversation.

  • They enable the chatbot to remember information provided by the user and use it to personalize responses or actions.

  • Variables can be used to pass data between different components of the flow and maintain context throughout the conversation.

For example, you can create a variable to store the user's name when they introduce themselves. This variable can then be used to personalize responses or address the user by name in subsequent interactions.

How to use them in Chatbot Studio?

  1. Go to the Model section in the Chatbot Studio.

  2. From the left panel, click on Variables.

  3. Click on Add Variable to create a new variable.

  4. Define the variable by selecting its type (FLOW,SESSION,VISITOR) and providing a name.

  5. Use the variable in the flow by referencing it with double curly braces (e.g., {{FLOW.variable_name}}).

  6. Variables can be used to capture user inputs, store information, or pass data between different components of the flow.