Understanding structured outputs
Each output variable has a name, a Data type selector, a Make array control, and a required description. Add as many outputs as the AI step needs. Why use structured outputs:- Keep related results as separate, named values.
- Describe the value and data type the AI step should return.
- Link a selected output directly to a downstream input.
- Use Make array when an output needs multiple values of the same type.
Configure output variables
Output variables are defined in an AI step’s Parameters tab.1
Open the AI step parameters
Open the agent’s Flow, select the AI step that produces the result, and keep Parameters selected in the sidebar.
2
Add Output Variable
In Output variables, select Add new.
3
Configure the output
Enter the output name, select a Data type, optionally enable Make array, and provide the required description.
4
Add more outputs when needed
Select Add new again to define another value for the same node.
Multiple output variables
Use one output variable for each value a later step needs. For example, an AI step can return a summary, search terms, and a title as separate outputs.
Data types
String: Text data of any length. Use for names, descriptions, categories. Number: Numeric values including integers and decimals. Use for IDs, quantities, amounts, scores. Boolean: True or false values. Use for flags, status indicators, yes/no determinations. Object: Nested data for complex, grouped values. Select Object in Data type, then select Define structure to add the properties the object should contain.
Key principles
Order related values clearly
For a complex extraction, group related outputs together and use names that make their relationship clear. Example:Keep rationale when it is useful
If a later step or reviewer needs the rationale behind a classification, add a separate reasoning output alongside the final value. Poor Design:Descriptions are directives
The description is a direct instruction to the AI. Be explicit. Examples: Simple extraction:Unique naming
Give each output a clear, unique name so it is easy to choose in a later step. Good naming:email_classifier_categoryinvoice_extractor_totalcustomer_analysis_id
result,output,data(too generic, likely duplicated)
Linking outputs to downstream nodes
To use an output in a later step, select that input’s fill-method menu, choose Linked fill, then select the output variable.
Common patterns
Classification + Data Extraction:classification, pass customer_id to CRM lookup, use urgency_level for prioritization.
Validation with Confidence:
needs_review - high confidence → automate, low confidence → human review.
Handling Arrays:
For multiple values of the same type, enable Make array for the output variable:
Best practices
Naming Conventions:- Prefix with tool purpose:
email_classifier_category,invoice_extractor_total - Use descriptive names:
customer_priority_scorenotscore - Avoid generic names: Don’t use
result,output,data
Troubleshooting
Wrong Data Type
Wrong Data Type
Issue: AI returns string when you expected numberSolutions:
- Make description more explicit: “Extract as a number, digits only, no text”
- Check if source data actually contains the expected type
- Add validation in description: “If not a number, return 0”
Inconsistent Formats
Inconsistent Formats
Issue: AI returns dates in different formatsSolutions:
- Be prescriptive: “Return date in YYYY-MM-DD format exactly”
- Provide examples in description: “Format: 2024-01-15”
- Use constrained values (Enum) when possible
Missing Fields
Missing Fields
Issue: Some outputs are empty or nullSolutions:
- Add fallback instructions: “If not found, return ‘N/A’”
- Check if AI has access to required input data
- Verify previous nodes are passing data correctly
Linked variable not accessible
Linked variable not accessible
Issue: Downstream node can’t access structured outputSolutions:
- Confirm the source step runs before the step that consumes it
- Open the destination input’s fill-method menu and select Linked fill
- Select the expected output variable from the variable picker
Next steps
Variables & State
Learn how to link structured outputs between nodes
Selecting Tools
Choose AI steps and integrations for an agent Flow.
Integrations
Pass linked outputs to integration steps.
Creating Flows
Use structured outputs for branching and routing