Output Formatting for AI Agent

I need help with the output for my code tool

The output needs to be the same format as the input, where it’s broken up into scenes. This output will be sent back to the AI agent. Right now, the information I believe is not being mapped correctly. Need help with this!

Here is the workflow below

you mention requiring a specific output structure, but you’ve left this as false in your agent node:

You need to add an Output Parser node to get the structured output from the AI agent

  1. Turn on “Require Specific Output Format”

2. Add this “Structured Output Parser” node to the AI Agent

3. Select a schema type. I believe in your case you should select “Define using JSON Schema” because you will get more control, flexibility, and precise validation of the output data. This is the more powerful and scalable option for complex workflows.

  1. In the JSON Example field, add your preferred JSON output schema

I hope that works for you.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.