Flow Node
Flow Node
Section titled “Flow Node”Module ID: ion.action.flow
The Flow node executes another flow as a subflow, enabling modular and reusable flow design.
Overview
Section titled “Overview”Use the Flow node to break complex automations into smaller, reusable components. A subflow receives input from the parent flow, executes its logic, and returns results back to the parent.
Handles
Section titled “Handles”| Handle | Description |
|---|---|
input | Data passed to the subflow |
Outputs
Section titled “Outputs”| Handle | Description |
|---|---|
output | Result from the subflow |
error | Subflow execution failed |
Configuration
Section titled “Configuration”// node.data structure{ flow_id: string // UUID of the flow to execute}Behavior
Section titled “Behavior”- Receives input data
- Loads the referenced flow by
flow_id - Executes the subflow with input data as initial payload
- Waits for subflow completion
- Returns subflow result to
outputhandle
graph TB subgraph Parent Flow A[Start] --> B[Flow Node] B --> C[Continue] end
subgraph Subflow D[Trigger] --> E[Process] --> F[End] end
B -.->|input| D F -.->|result| BExample
Section titled “Example”Reusable Notification Flow
Section titled “Reusable Notification Flow”Parent Flow:
[Order Created] → [Process Order] → [Flow: Send Notifications] └→ [Complete]Subflow “Send Notifications”:
[Trigger] → [Send Email] → [Send SMS] → [End]Common Patterns
Section titled “Common Patterns”Modular Error Handling
Section titled “Modular Error Handling”[Main Flow] → error → [Flow: Handle Error] → [Log]Reusable Integration Logic
Section titled “Reusable Integration Logic”[Order Flow] → [Flow: Sync to Shopify][Return Flow] → [Flow: Sync to Shopify][Update Flow] → [Flow: Sync to Shopify]Best Practices
Section titled “Best Practices”- Keep subflows focused - Each subflow should do one thing well
- Document inputs/outputs - Make clear what data the subflow expects
- Handle errors - Connect the error handle in the parent flow
- Avoid deep nesting - Limit subflow depth for debuggability