Automations · Nodes · action
Run automation
action.run_automation · action
Start another active automation as a sub-workflow. out = child succeeded (or async start OK); error = start/child failure.
When to use
- Split a large journey into smaller automations (quote, pay, docs) and call them from a main graph.
- Use waitForChild=true for sequential composition so parent gets child vars after success.
- Wire the error port for start/child failures; unwired error fails the parent run.
- Brain does not freely invent automation ids — wire intent ports to fixed Run automation nodes.
Configuration
| Field | Required | Notes |
|---|---|---|
| automationId | no | Target active (published) automation id — child should prefer Manual trigger |
| waitForChild | no | If true, parent waits; on success merges child vars and continues on out; on fail uses error port (or hard-fails if unwired) |
Inputs
Upstream node output and execution context (contact, account, variables).
Outputs
childExecutionId, waitForChild, ok, childResult (status, automationId, vars snapshot on sync success). Continues on out (success/async start) or error (start/child failure). Parent vars merge child vars after sync success.
Execute step (editor)
| Eligible? | Notes |
|---|---|
| Disabled | Needs multi-branch or wait/resume context — use a full Test run. |
See Test, Execute, debug, listen and limitations.
Common errors
| Symptom | Cause | Fix |
|---|---|---|
| SUBFLOW_NOT_ACTIVE / target required | Child missing, draft, or paused | Publish and activate the child; pick it again in the inspector. |
| SUBFLOW_CYCLE / SUBFLOW_DEPTH_EXCEEDED | Nested call returns to an ancestor or exceeds depth 5 | Flatten the call graph; max 5 nested levels; no A→B→A. |
| SUBFLOW_CHILD_FAILED / parent failed on child error | Child failed/cancelled and error port unwired | Wire the error port to an apology path, or fix the child graph. |
| Child send/Ask has no contact | Parent had no channel trigger context | Start from WhatsApp/AppChat inbound (or ensure contact is on the parent trigger). |
Example
Main (channel inbound) → Run automation (Quote child, waitForChild=true) → out uses {{vars.quote_id}} from the child; error → apology text. Child automation uses Manual trigger only.