How to respond to chat trigger via "Respond to Webhook" node?

Hi,

I’m trying to respond to a chat trigger with a simple “Respond to Webhook” node. But I am not seeing the response either in the editor chat or in the hosted webhook chat:

Hi @hesslau

You’re using “Respond to Webhook” node not the “Respond to Chat” node

Hi @hesslau,

I see the issue here. It looks like there is a small conflict between the nodes you are using.

The Respond to Webhook node is specifically designed to work with a standard Webhook Trigger. When using the Chat Trigger, n8n handles the response differently. The Chat interface automatically listens for the final execution data of the workflow’s last node, so you typically do not need to force a response using the Webhook node.

Here is the solution:

  1. Remove the Node: Delete the Respond to Webhook node from your canvas.

  2. Format the Output: Ensure that the last node in your workflow (in this case, your “Workflow Configuration” node) outputs a JSON object with a key named output or text.

For example, your last node should return data like this:

JSON

[
  {
    "output": "Here is the response message you want to show in the chat."
  }
]

The Chat Trigger will automatically pick this up and display it in the chat window.

Let me know if that solves it!