Flow Variable
The Flow Variable data node reads the current value of a variable that is scoped to the current flow. Flow variables are defined in the flow's variable panel and exist only within that flow. They reset to their default value each time the flow starts (unless configured otherwise). Use flow variables to store and retrieve state within a single flow, such as counters, flags, or temporary values.
The variable must already be defined in your flow's variable panel before you can read it with this node.
Outputs
| Name | Type | Description |
|---|---|---|
Value | string, number, or boolean | The current value of the specified flow variable. The type depends on how the variable was defined. |
Configuration
- Variable: The name of the flow variable to read.
Example
You have a flow variable called deathCount that increments each time a chat command !death is used. To display the current count in a chat message, connect a Flow Variable data node (configured to read deathCount) to a Generate Text node with the template Current death count: {{0}}. The generated text always reflects the latest count.