I’m having an issue with output returning to the publicly visible n8n hosted chat from my connected AI agent.
For simple questions/answers, no problem. (ie anything from 5sec-1min)
But for longer running workflows (ie running 2-3 mins plus), in the hosted chat browser all I get is the thinking 3 dots…
However, when I look at the execution log for the workflow instance, the run completed successfully & completed & there is a nice output shown in the A
I Agent output log:
Hi and welcome to the community. I was facing the same issue recently. The output you see in the log does not reach the chat, it’s only the last output of the agent node that will be sent to the chat.
I managed to improve this by adapting the prompt or when using telegram as chat I added a tool that could send outputs to the telegram chat.
Not in front of the computer now to share my prompt, as soon as I’m in the office I’ll share it with you.
sorry … crazy week.
I have these instructions in the prompt which made it better:
- ONLY your FINAL output will reach the user
- Intermediate outputs after calling tools are NOT visible to the user
- You must collect all information and combine it into a single comprehensive final response
- Never tell the user you are processing or calling a tool - they won't see these messages
it’s still not perfect, but I am getting the information I need at the end.