It is coming as one single item, everything merged as a text form, I want it to come as
[
{
"operation": "create block",
"pageId": "123123",
"blockId": null,
"content": "asdasd"
}
]
I asked ChatGPT to help me enhance the prompt but nothing could change the format. I emphasized the necessity of separate fields, I connected the agent to a format parser, it fixes it if the prompt comes with one certain function such as create block but then not with delete block or order functions
Does anyone have a suggestion? thank you for your help!
you will need to define that the output must be in a specific structured format. Share dummy data in the exact format you’re looking for, to chatgpt, & ask it to make a sample json schema from it.
Then
toggle on “require specific output format” in your agent node
in the output parser node copy paste the schema chatgpt gave you
you should now get the output exactly how you wanted it
Feel free to share screenshots of any step you are stuck at
If on the other hand you are talking about the node output (instead of a chat output), then the word output is expected, as this is what the structure of the AI agent node response is.