/n8n-tutorials

How to fix n8n webhook not delivering messages to the LLM node?

Learn how to fix n8n webhook issues stopping messages from reaching the LLM node with simple steps to restore smooth workflow automation.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free consultation

How to fix n8n webhook not delivering messages to the LLM node?

The webhook usually doesn’t deliver data to an LLM node in n8n because the Webhook node isn’t set to respond immediately, or the incoming JSON isn’t where the LLM node expects it, or the workflow runs in production mode but you're testing with the wrong webhook URL. In most real cases, fixing the webhook’s response mode, checking the incoming payload with a Set or Function node, and confirming the execution path going into the LLM node resolves it.

 

Root causes and how to fix them

 

Below are the reasons that consistently break real webhook-to-LLM flows, and exactly what to change.

  • The webhook is still in "Test" mode. In n8n, every Webhook node has two URLs: a test URL (works only when the workflow is open in the editor and "waiting") and a production URL. If you're hitting the test URL while the workflow is closed, nothing will run. Use the production URL when running normally.
  • The Webhook node is set to "Respond to Webhook" and the workflow pauses before the LLM node. When "Respond Immediately" is not chosen, n8n waits for the workflow to finish before answering the webhook. If your LLM node takes a long time, the requester may time out, and n8n stops the flow. Fix: In the Webhook node → Response section → choose "Respond immediately".
  • The incoming JSON structure doesn't match what the LLM node expects. LLM nodes typically expect a text input field like:
    {{$json.body.message}} or {{$json.text}} If your webhook sends {"query":"Hello"} but the LLM node reads {{$json.message}}, it will send literally nothing to the LLM. Fix: Use a Set node or Function node right after the Webhook to normalize the input fields.
  • The Webhook node uses POST but your service sends GET (or vice versa). The Webhook node is strict about HTTP method. If the incoming method doesn’t match, the workflow does not start at all. Fix: Ensure Webhook node → HTTP Method matches the sender (often POST).
  • LLM node has an expression error. If you see “No data was received” inside the LLM node, hover the expression. If it shows “undefined”, that means the JSON path is wrong. Fix: Use the "JSON" view in the Webhook node → Output panel to copy the correct paths.
  • Binary vs JSON confusion. Some integrations send binary payloads. LLM nodes only accept text/JSON. Fix: Ensure the Webhook node → "Binary Data" toggle is OFF (unless needed), or convert binary to text with a Function node.
  • Missing credentials or model not configured. The workflow may run, but the LLM node fails silently in preview mode. Fix: Open the LLM node and ensure the Credentials and Model fields are properly selected.

 

Practical step-by-step fix

 

Here is a clean, production-safe setup:

  • Webhook node → set to POST, Production URL, Response Mode → Respond Immediately.
  • Add a Set node right after the Webhook with something simple like:
    text: {{$json.query || $json.message || $json.body.message}} This normalizes the input so the LLM node always has a clean "text" field.
  • Feed LLM node with:
    {{$json.text}}
  • Optional: Add an Error Workflow so that if the LLM node times out, you still get diagnostics.

 

Example minimal working flow

 

// This Function node simply maps the incoming webhook payload
// into a single field "text" that the LLM node can safely consume

return [
  {
    json: {
      text: $json.query || $json.message || $json.body?.message || "No input"
    }
  }
];

 

After that, in the LLM node → Prompt field, use:

{{$json.text}}

 

Why this works

 

The key is that n8n passes data from node to node as JSON, and every node only sees what the previous one outputs. Webhooks often produce deeply nested or inconsistent JSON. LLM nodes require a clean string input. Ensuring the Webhook responds immediately, the JSON is cleaned up, and the model credentials are valid eliminates 95% of the real-world issues with webhook → LLM delivery.

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022