Skip to main content
The 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:
Or import the output function from @doclo/nodes and use it as a step:

Configuration Options

Options Reference

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:
Input:
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