Contents

Set Workflow Output

set_workflow_output · Nodes · Control

Sets the workflow output value returned to callers.

Set Workflow Output#

Sets the workflow output value returned to callers.

Use this only when something will read the workflow's returned value: a subworkflow, workflow-as-tool, assistant/MCP caller, dashboard, or execution-result consumer.

Inputs & Outputs#

  • Input: value - value to store as workflow_output.
  • Output: passthrough - same value for downstream wiring.

Rules#

  • This is not a terminator, early return, or success marker.
  • It does not stop later nodes from running.
  • It does not make the workflow succeed. Failures elsewhere still determine workflow failure.
  • Only one output value may be set per execution; a second set fails.
  • Ordinary side-effect workflows usually do not need this node.
  • Required goal or side-effect nodes keep the default base_config.failure_mode = "stop": their failure stops the dependent branch and marks the workflow failed. "stop_workflow" is a rare emergency setting that immediately terminates the entire workflow, including independent branches.

Returning to a Subworkflow Caller#

This node is the return half of the Subworkflow function contract: input receives the caller's argument, this node supplies the answer.

Prefer returning material over acting on it. A child that performs its own visible side effect — sending the message, posting the file — gives the caller nothing to combine, branch on, or own. A child that returns the content lets the caller decide.

Binary data must be persisted before it can be returned. Runtime binary handles do not cross the boundary; Upload Media converts one into a JSON reference that does.

A child without this node returns null. That is legitimate for a workflow called purely for its effects, but it means the caller cannot tell success from silence.

Ending the Caller's Branch#

Setting the output to skip(reason) ends the branch of whatever invoked this workflow. A Subworkflow node whose child returns a skip skips itself, and everything downstream of it skips too.

Inside a loop body, the same value omits that iteration from the collected array.

The skip is re-attributed to the calling node at the boundary. The inner node's id is local to this workflow's graph and names nothing the caller's editor could show.

Inputs

  • valueRequired

Outputs

  • passthrough

Configuration

FieldTypeRequiredDescription
base_configrecordNoShared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow).