#SalesforceWinter26 [Tip 44 of 45] - Structured Outputs From Custom Agent Actions

Custom agent actions in Flow can now return structured output—that is, specific fields with defined data types, including objects and Apex types.

For example, in the screenshots below, we ask the agent about an airline’s baggage allowance policy for economy class and capture the response in a structured format, such as Policy Type and Policy Details.

Product Area: Flow, Agentforce

In the following flow, we use a custom agent action to invoke the agent and ask questions about an airline’s policies.

In the Action element, we define the attributes of the structured output and specify whether each attribute is required.

Invoke the Flow and ask a question about the airline’s baggage allowance policy.

The output returned by the agent is stored in a structured format, as shown below—specifically as Policy Type and Policy Details.

References & Useful URLs