Describe the problem/error/question
Is there a way to show a message in the in built chat of N8N besides writing directly in the chat?
I have one workflow with a “chat message recevied” trigger.
In a second workflow I want to be able to trigger a POST request to the chat URL in the first workflow and generate an answer which should be reflected in the chat.
Issue
It seems the first workflow triggers properly when it received the POST request however the chat doesn’t refresh the html area with the new response.
This is how I trigger the first workflow from the second one.
Hello,
i think that n8n does not support sending asynchronous messages to the chat client after the initial activation of the workflow via the Chat Trigger node. In practice, once the workflow has been activated, it is not possible to update the chat interface with new replies or intermediate messages from a second workflow.
I believe the chat trigger in n8n works at the moment in synchronous mode: it receives a message, runs the workflow and returns a unique response.
You could use the “Respond to Webhook” node. you can configure your workflow to respond manually using the “Respond to Webhook” node. However, this response will also be unique and will not allow subsequent updates.
Documentation: Respond to Webhook | n8n Docs
1 Like
Thanks for the answer, I assume unless the chat would implement something like a websocket communication with the server the scenario I am expecting is not possible.