Workflow Output
outputExpose the final workflow output.
About this Node
Marks the final output of a workflow branch and captures the evaluated result payload (`entire_state`, a single `specific_key`, or a `custom_template` using `{{key}}` placeholders) as the workflow's return output. Internal `_`-prefixed runtime metadata keys are automatically stripped from the returned payload.
Ports & Branches
inPort 0Terminal inbound execution flowHow this Node Reads Data
| Input | Access | Field | Example | Description |
|---|---|---|---|---|
| Output Payload Selection | Payload | — |
{ "summary": "{{summary}}", "status": "ok" } |
Selects the entire clean workflow state, a single state key, or a custom JSON/text template interpolated with `{{key}}` placeholders. |
State Keys Written (Outputs)
| Key Pattern | Type | Role | Description |
|---|---|---|---|
_workflow_output |
object | string | any |
Primary | Captured final result payload displayed in run history and returned to parent Sub-Workflows or API callers. |
Tips & Best Practices
- Terminal node (`IsTerminal = true`): has an input port (`0`) only and cannot be wired downstream.
- Alias `output` resolves to `output_return` in authoring specs and `/docs?node=output`.
Commonly Paired With
Settings Parameters (0)
Configuration schema synchronized with the workflow catalog
This node requires no configuration fields in the catalog schema.
Return Entire Clean Workflow State
Default terminal exit returning all non-internal state keys accumulated across upstream nodes.
Sample Input State
{
"summary": "3 urgent tickets found",
"ticket_count": 3
}Expected Output State
{
"summary": "3 urgent tickets found",
"ticket_count": 3
}Shape Final JSON Contract with Custom Template
Return a minimal, stable JSON schema from a Sub-Workflow by selecting only the exact fields callers expect.
Sample Input State
{
"classification": "billing",
"confidence": 0.95,
"debug_raw": "..."
}Expected Output State
{
"queue": "billing",
"confidence": 0.95
}Tip: Use `output_return` for normal completions and `output_finish` when you need to record a custom completion status or short-circuit other branches.