Output
The Output component — assemble what the workflow returns from its steps.
The Output component is the single terminus of every workflow. It's where the result is assembled from the steps you wire into it. It's not a schema editor — it's an assembly surface: connect the values you want returned, and it builds the final result from them. Types are worked out from what you bind.
Modes
The Output returns either:
- A single value — the workflow returns one value. SDK and API callers receive that value directly, unwrapped.
- An object — the workflow returns an object with several named keys, each filled from a step you wire in.
The card's header shows which (SINGLE or STRUCTURED); you switch between them in
the Output editor with Single value and Object.
Assembling the result
When you wire a node into the Output, Compass automatically adds a key named after that source — so the common case needs no extra work. Wiring in a second source switches the Output to an object.
To refine it, click Edit output (or any key on the card) to open the Output editor, where you can:
- Add key, rename keys, and remove them,
- set what each key is bound to — pick a source on the left,
- and Preview the shape of the result.
In single value mode the first key's value is the return value; in object mode the keys become the returned object. The assembled shape is the workflow's return contract — what an execution produces and what callers read.
The Output must draw on at least one upstream step. If nothing is wired in yet, the card prompts you to wire a node in or open Edit output to assemble a result.