N8n hosted chat not showing ai agent output

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:

What is the error message (if any)?

No error message shown

Please share your workflow

This is my workflow:

Share the output returned by the last node

last node is the ‘Simple Memory’ node & it shows the same output as the Ai agent output:

Information on your n8n setup

running via saas / browser version

Any help is greatly appreciated

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.

1 Like

Ok great, thanks for the reply & looking forwards to your suggestions

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.

1 Like

nice, I like it Detailing prompts certainly help a lot