output node explicitly controls what data is returned from a flow, allowing you to select from artifacts, transform results, and name outputs.
Basic Usage
You can add an output node using the flow builder’s.output() method:
output function from @doclo/nodes and use it as a step:
Configuration Options
Options Reference
| Option | Type | Description |
|---|---|---|
name | string | Name for this output |
source | string | string[] | Step ID(s) to pull from |
transform | string | Transform strategy |
fields | string[] | Fields to pick (for ‘pick’ transform) |
customTransform | function | Custom transform function |
Selecting Sources
Previous Step (Default)
Without configuration, returns output of previous step:Specific Step
Select output from a specific step:Multiple Steps
Combine outputs from multiple steps:Transform Strategies
Pick
Select specific fields from the output:Merge
Merge multiple sources into one object:First / Last
Return first or last non-null result:Custom Transform
Apply a custom transformation function:Named Outputs
Name outputs for identification:Use Cases
Clean Output
Remove internal fields:Combine with Metadata
Add processing metadata:Multiple Output Formats
Create different views:Without Provider
The output node doesn’t require an AI provider—it performs local data selection and transformation:Next Steps
Flows
Learn about flow construction
extract
Extract data before output