Variables allow you to store and pass data across nodes in your flow. They can be created or edited using any Tool Drawer or Variable Drawer, or selected directly in the Text Editor using the { shortcut.


Adding Variables

  1. Open the Variable Drawer in any tool or node.
  2. Click Add Variable and configure:
    • Key: Unique identifier for the variable.
    • Default Value: Initial value if no input is provided.
    • Type: Select data type (e.g., string, number).
    • Description: Provide a brief explanation of the variable’s purpose.
    • Required: Toggle if the variable must always be set.

Using Variables in Text Editor

Variables can also be referenced directly in the Text Editor:

  1. Open the Text Editor in the node settings.
  2. Type { to open the dropdown of available variables.
  3. Select the variable to insert it into the text.

Example:

Hello, {user_name}! How can I assist you today?

Visual Placeholder:


Editing Variables

  • Open the Variable Drawer to adjust existing variables.
  • Update values, keys, or descriptions directly.

Global Variables

  • Mark variables as Global to make them accessible across all nodes.

Best Practices

  • Use consistent naming conventions for variables.
  • Avoid redundant variables to simplify debugging.
  • Leverage global variables for shared data.