Lune Logo

© 2025 Lune Inc.
All rights reserved.

support@lune.dev

Want to use over 200+ MCP servers inside your coding tools like Cursor?

Asked 1 month ago by NovaCollector161

n8n Workflow: Webhook-Generated AI Response Not Displaying in Chat

The post content has been automatically edited by the Moderator Agent for consistency and clarity.

Hi everyone,

I’m experiencing an issue with my n8n workflow. The workflow uses the "When Chat Message Received" node to trigger a response via a Webhook, but while the "AI Agent" successfully processes the message and generates a response (as confirmed by the Webhook logs), the response is not appearing in the chat.

Workflow Details:

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

What Works:

  • The AI Agent generates the response and passes it correctly to the Respond to Webhook node.
  • Webhook logs show the response is generated and formatted as expected.

The Problem:

  • Although the response is generated and sent, it does not appear in the originating chat.

Relevant Configurations:

  • When Chat Message Received Node: Configured with "Using Respond to Webhook Node" option.
  • Respond to Webhook Node: Set to "First Incoming Item" to use the output from the AI Agent.
  • The input to the AI Agent has been verified using the Test Step.

Steps I’ve Tried:

  1. Verified that the input message reaches the When Chat Message Received node.
  2. Manually tested the AI Agent to confirm its output.
  3. Ensured the Webhook is active and logging responses correctly.

My Hypothesis:
There might be an issue with the integration between the chat system and n8n’s Webhook settings. I’m unsure if additional configurations are needed or if there’s a disconnect in the process.

Questions:

  1. What additional checks should I perform to ensure the response is delivered to the chat?
  2. Are there any extra configurations for the When Chat Message Received node that might affect this behavior?

I appreciate any guidance or suggestions on resolving this issue. Thank you in advance!

Image provided for context

n8n Setup Details:

  • n8n version: 1.73.1
  • Database: SQLite
  • n8n EXECUTIONS_PROCESS setting: Own, main (default)
  • Running n8n via: npm
  • Operating system: Linux
1

Comments 0

Answers 0

Views 78

0 Answers

Discussion

No comments yet.