1.8 KiB
Manage Context Variables

Context variables are powerful tools in Hexabot that allow you to store and manage information gathered during a conversation with a user. This information can then be used to personalize the chatbot's responses, make decisions within the conversation flow, or trigger specific actions.
Think of context variables as temporary storage containers that hold data specific to a particular conversation. For example, you could store the user's name, their preferred language, or their order details.
1. Access Context Variables page:
- Navigate to the "Context Vars" or "Context Variables" section. This is typically found in the main menu.
2. Creating a New Context Variable:
- Click "Add Context Variable" or a similar button: This will open a form where you can define a new context variable.
- Provide Variable label: Choose a descriptive label for your variable, reflecting the type of information it will store. For example:
- user_name
- preferred_language
- order_id
- location
- Save Changes: Click the "Submit" button to create your new context variable.
3. Managing Existing Context Variables:
- View Existing Variables: In the "Context Vars" section, you can view a list of the context variables you've created.
- Edit Variable label: You can edit a variable's label. However, you cannot change it name once it's created.
- Delete a Variable: If a context variable is no longer needed, you can delete it from the list. Be careful because deleting a variable will remove all data stored within it.
{% hint style="info" %} Additional Notes
Context variables are temporary and are specific to a single conversation. They are not shared between different conversations. {% endhint %}