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

Book a call with an Expert
Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.
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.
Below are the reasons that consistently break real webhook-to-LLM flows, and exactly what to change.
{{$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.
Here is a clean, production-safe setup:
text: {{$json.query || $json.message || $json.body.message}}
This normalizes the input so the LLM node always has a clean "text" field.
{{$json.text}}
// 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}}
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.
When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.