Skip to content

Sub Flow ​

Execute flows as reusable components

Triggers ​

Events from this node that can start a flow. Add one from Choose a trigger.

Start Sub Flow ​

Event-based trigger for sub-flow execution. Marks this flow as callable from other flows.

Settings

FieldTypeRequiredDescription
Input Parameters SchemaListDefine input parameters that parent flows must provide. No special characters and space allowed.

Output

Later steps use this data through Current Trigger in the $ picker. For example, isSubFlow is $trigger.output.isSubFlow.

json
{
  "isSubFlow": false,
  "params": {},
  "parentFlowId": "string",
  "parentRunId": "string",
  "triggerType": "string"
}

Example values show the shape of the data, not real values. See Using data from earlier steps.

Field descriptions
FieldTypeDescription
isSubFlowYes / NoIndicates this flow was triggered as a sub-flow
paramsObjectInput parameters passed from parent flow, defined by inputSchema.
parentFlowIdTextID of the parent flow
parentRunIdTextID of the parent flow run
triggerTypeTextType of trigger (always 'startSubFlow')

Actions ​

Steps this node can perform. Add one from Add a step, then pick the action.

Call Sub Flow ​

This Sub-Flow node runs a Sub-Flow that includes a Sub-Flow Trigger to start it and a Return Action to send outputs back to the parent Flow.

Settings

FieldTypeRequiredDescription
Select your Sub-FlowChoice (loaded from your account)YesSelect the flow to execute (only flows with 'Start Sub Flow' trigger are shown)
Input ParametersObjectMap values to sub-flow input parameters
Execution ModeChoiceWait: pauses until sub-flow completes. Fire and Forget: continues immediately
Options: Wait for Completion, Fire and Forget
Default: wait

Output

Later steps use this data by picking this step in the $ picker. For example, failureReason is $.<step ID>.output.failureReason.

json
{
  "failureReason": "string",
  "subFlowCompleted": false,
  "subFlowFailed": false,
  "subFlowRunId": "string"
}

Example values show the shape of the data, not real values. See Using data from earlier steps.

Field descriptions
FieldTypeDescription
failureReasonTextWhy the sub-flow did not complete, for example subflow_execution_failed
subFlowCompletedYes / NoTrue when the sub-flow finished through its Return action (wait mode only). The values returned by the sub-flow sit next to this field at the top level of the output, keyed by the Return action's output mapping.
subFlowFailedYes / NoTrue when the sub-flow failed. Later nodes only see it when this node's error handling is set to continue.
subFlowRunIdTextID of the sub-flow run (wait mode only)

Return from Sub Flow ​

This Return Action marks the end of a Sub-Flow. It should follow the Sub-Flow Trigger and sends the Sub-Flow's outputs back to the parent Flow.

Settings

FieldTypeRequiredDescription
Output ValuesKey–value pairsDefine values to return to the parent flow

Output

Later steps use this data by picking this step in the $ picker. For example, returned is $.<step ID>.output.returned.

json
{
  "returned": false
}

Example values show the shape of the data, not real values. See Using data from earlier steps.

Field descriptions
FieldTypeDescription
returnedYes / NoIndicates successful return