Flow variables and inputs
A flow variable is a ‘container’ used to store information during the execution of a flow. For example, it can be used to store a user’s name, API response, or the outcome of a decision tree. The scope of a variable is restricted to the flow in which it is created. It cannot be accessed elsewhere.
Variable interpolation lets you insert the value of a variable into a text field, instruction, or parameter. Enclose the variable name in double curly brackets. For example, {{variable_name}}.
When the flow runs any reference like {{user_name}}
is replaced by the current value of the variable.
Add new variables on the Flow Variables pane. You can create variables of the following types:
Variable Type | Description |
---|---|
Text | Stores short or long string values (e.g., name, city, ID). |
Number | Stores numeric values for comparisons or calculations. |
Boolean | Stores true/false values. |
Enum | Stores a single value selected from a predefined list. |
JSON | Stores structured data from APIs or loops (e.g.,API responses). |
XML | Stores XML content if needed for specific integrations. |
📝 Note: Most variable types can be configured to store multiple values turning them to arrays. To enable this, select the Allow multiple values checkbox for the variable.This option is not available for Boolean, JSON, or XML.
An input on the other hand is a global user-facing prompt or form that is used to collect information directly from a user during an interaction. When you create an input form or field, you have to map it to a flow variable. This allows the data collected via the input to be stored and reused wherever required during the flow.
Input type | Description |
---|---|
Short text | For single-line responses like names, email addresses, and so on. |
Long text | For longer, multi-line responses such as descriptions and comments. |
Text choice | Allows users to select one or more options from a pre-defined list of items. |
Image | Lets users upload an image. |
Date | Captures a specific date to use for scheduling or processing date-based requests. |
Number | Accepts numerical input. |
Display | A read-only field that shows pre-defined text or data. Use markdown to frame the content. |