Variables
Variables allow you to pass data between nodes and make your workflows dynamic.
Overview
Variables are the backbone of data flow in Miiflow workflows. They enable:
- Passing data between nodes
- Dynamic prompts and configurations
- Reusable workflow templates
Variable Syntax
Use double curly braces to reference variables:
{{variable_name}}
Variable Sources
Trigger Variables
Data from the workflow trigger:
{{trigger.user_message}}
Node Output Variables
Results from previous nodes:
{{node_name.output_field}}
System Variables
Built-in variables:
{{system.timestamp}}
{{system.workflow_id}}
Nested Access
Access nested properties with dot notation:
{{response.data.items[0].name}}
Default Values
Provide fallbacks for missing values:
{{input.name || "Anonymous"}}
Best Practices
- Use descriptive variable names
- Document expected variable formats
- Handle missing values gracefully
- Keep variable chains short for readability