Issue with Webhook in n8n: Response is generated but not delivered to the chat

Hi everyone,

I’m encountering an issue with my n8n workflow where I use the “When Chat Message Received” node to receive messages from a chat and respond using a Webhook.

Workflow Details:

  1. When Chat Message Received: Receives messages from the chat and triggers the workflow correctly.
  2. AI Agent: Processes the input and generates a response using a conversational model.
  3. Respond to Webhook: Sends the generated response back.

What Works:

  • The response is correctly generated by the “AI Agent” and passed to the “Respond to Webhook” node.
  • In the Webhook logs, the response is visible and properly formatted.

The Problem:

  • The response does not show up in the chat where the message originated.
  • However, the Webhook logs show that the response is properly generated and sent.

Relevant Configurations:

  • “When Chat Message Received” Node:
    • Configured with “Using Respond to Webhook Node” for the response option.
  • “Respond to Webhook” Node:
    • Set to “First Incoming Item” to use the output from the “AI Agent”.
  • The input to the “AI Agent” seems to be correct (manually tested using “Test Step”).

What I’ve Tried:

  1. Verifying that the input message reaches the “When Chat Message Received” node.
  2. Testing the “AI Agent” manually and confirming its output.
  3. Ensuring the Webhook is active and functioning properly.

My Hypothesis:

It seems there might be an issue with the connection between the chat system and the Webhook in n8n, but I’m not sure how to debug this further or if additional configurations are needed.

Questions:

  1. What else should I check to ensure the response is delivered to the chat?
  2. Are there any additional configurations for the “When Chat Message Received” node that might cause this issue?

I appreciate any guidance or suggestions on how to resolve this. Thank you so much in advance for your help!

Information on your n8n setup

  • n8n version: 1.73.1
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): -
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: Linux

Hi @Nicolas_Casanueva

I tried to replicate the issue you’re having but could not. Can you share a bit more about how you’re hosting and accessing the chat?

i did make it

it was a problem from reverse proxys, here is the support that i got in github if its helpfull

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.