Miiflow Docs

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

  1. Use descriptive variable names
  2. Document expected variable formats
  3. Handle missing values gracefully
  4. Keep variable chains short for readability