Hi everyone,
I’m using n8n Embedded Chat with Chat Trigger + AI Agent and tools.
Expected behavior
When I send a message, the agent calls tools correctly and the final assistant reply appears normally in the chat.
Issue
After I reload the page, the Embedded Chat loads the previous session history and all tool calls / intermediate steps are displayed as if they were assistant messages, often as large blocks of JSON/code.
So the live experience is fine, but on refresh/history restore the chat UI renders internal agent/tool data as chat messages.
I need to keep the intermediate steps logged for later analysis/debugging (tool inputs/outputs, reasoning steps, etc.). I just don’t want those steps to be persisted or rendered as end-user chat messages when the session is reloaded.
Here’s a short video showing the behavior: https://youtube.com/shorts/1-TCn_xcqjo