Describe the problem/error/question
The output response from my AI agent in the Chat trigger node currently appears cluttered and difficult to read. I’m looking for a way to format it in a cleaner, more readable structure—ideally something that resembles a report or a well-organized message.
Could you please advise on best practices or available options to improve the formatting?
@jabbson looking for your help here?
Hey, @Hellboy hope all is good!
Could you give me an example of your workflow, please? Just a minimal setup to get started.
@jabbson screenshot of my work flow
Could you please instead share a copyable workflow like this? Thank you.
@jabbson my workflow
chat output screenshot for reference.
tldr; If you just delete the last node and try again, I bet the result would be different.
To expand on the above statement - the workflow last node’s output sets the response for the Chat node.
In your last node (Set node) you set the key ai_response to the value returned by the agent. This means that your chat output is a data structure where the key is ai_response and the value is your report content.
If you delete the last node, the last node will now be the AI Agent itself, and it’s output will make it into the chat. Why it works? Good question! This is because what the Chat node expects to receive, which is the output. Coincidently (not), this is exactly what the AI agent returns back already.
Since the Chat trigger expects the structure which has a key of output, you could change ai_reponse to output in the Set node, that would still work for rendering the actual report, but will be sort of redundant, so unless you have a reason to, I would just delete the Set node.
1 Like
@jabbson in my workflow, I am using Aggregate node but its not taking input from previous edit fields5. how to fix this issue.
@jabbson looking for your help on my question
Please create a new topic for this as it appears to be unrelated to the previous question of this topic. Please tag me in it, so I receive a notification. Please include the way you expect this to work.