Skip to main content
Static variables are flow-agent only. They are set at the node level with fixed or templated values and are available to that node and its successors.

Characteristics

  • Scope: Node-level; visible to successor nodes
  • Where to define: In the node’s configuration
  • Value types: string, number, boolean, array, object
  • Templates: Values can use {{variable_name}} to reference other variables
  • Sync: Stored in the variable store so availability is tracked correctly

Supported Data Types

Data TypeExample ValueUse Case
string"Hello {{customer_name}}"Text with variable substitution
number42 or {{max_attempts}}Numbers or references
booleantrue or falseFlags and toggles
array["option1", "option2", "option3"]Lists of values
object{"key": "value", "count": 5}Structured data

Example Use Cases

1. Computed / formatted messages
Variable: greeting_message
Value: "Hello {{customer_name}}, welcome to {{business_name}}!"
Data Type: string
2. Configuration objects
Variable: api_config
Value: {"timeout": 5000, "retries": 3}
Data Type: object
3. Default lists
Variable: available_options
Value: ["Schedule", "Cancel", "Reschedule"]
Data Type: array
4. Flags
Variable: is_premium_user
Value: true
Data Type: boolean
Static variables are not available in global nodes or in single-prompt agents. See Availability & Context and Extracted Variables for how they fit with other variable types.