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

FieldRequiredNotes
automationIdnoTarget active (published) automation id — child should prefer Manual trigger
waitForChildnoIf 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
DisabledNeeds multi-branch or wait/resume context — use a full Test run.

See Test, Execute, debug, listen and limitations.

Common errors

SymptomCauseFix
SUBFLOW_NOT_ACTIVE / target requiredChild missing, draft, or pausedPublish and activate the child; pick it again in the inspector.
SUBFLOW_CYCLE / SUBFLOW_DEPTH_EXCEEDEDNested call returns to an ancestor or exceeds depth 5Flatten the call graph; max 5 nested levels; no A→B→A.
SUBFLOW_CHILD_FAILED / parent failed on child errorChild failed/cancelled and error port unwiredWire the error port to an apology path, or fix the child graph.
Child send/Ask has no contactParent had no channel trigger contextStart 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.

Related