Steps
How we tested, and what is real
On 29 October 2026 we made 25 real HTTP calls to a running n8n 2.43.7 (self-hosted) with the Chat Trigger node (When chat message received, version 1.5), and read the official
@n8n/chatwidget code to see which reply fields it shows. The reply came from a Code node, not a model, so no AI answers were involved: every status code, body and error text below is what n8n really returned.404 with an empty body: Make Chat Publicly Available is off
With Make Chat Publicly Available off, both POST and GET to the production URL
/webhook/<id>/chatreturned a bare 404 with an empty body and no hint. A workflow that is not active (not published) gives a different 404, with JSON:The requested webhook "POST <id>/chat" is not registered.plus a hint to activate it. So: empty 404 means turn the public toggle on; JSON 404 means activate the workflow.The URL must end in /chat, and the test URL works once
Posting to
/webhook/<id>without/chatgave 404The requested webhook "POST <id>" is not registered.even with the workflow active. The test URL/webhook-test/<id>/chatanswered 404 withClick the 'Execute workflow' buttonmessage (in test mode it only works for one call) unless the editor was listening. Copy the URL from the node itself, and use the production one in your site.Empty chat bubble: the reply must be in output, text or message
The
@n8n/chatwidget showsoutput, thentext, thenmessage, and nothing else. When our last node returned{"reply": "hello"}, n8n answered HTTP 200{"reply":"hello"}but the widget would show an empty bubble. Rename the field tooutputwith an Edit Fields node as the last step. Only the first item is sent back: with 2 items the answer was{"output":"first"}.Your own frontend: send chatInput and sessionId
The trigger outputs exactly what was posted:
action,sessionIdandchatInput. The widget sendschatInputandsessionId. A custom frontend posting{"message": "..."}still ran the workflow, but$json.chatInputwas undefined, and an AI Agent on its default prompt source then fails withNo prompt specified. Test with:curl -X POST https://YOUR-N8N/webhook/<id>/chat -H "Content-Type: application/json" -d '{"action":"sendMessage","sessionId":"test1","chatInput":"hi"}'HTTP 500: "No item to return was found" or "Error in workflow"
When the last node returned 0 items, n8n answered HTTP 500
No item to return was found(with a stack trace in the body). Make sure every path ends with a node that outputs one item. When a node failed, the answer was HTTP 500{"message":"Error in workflow"}and the real error was only in the Executions list. Open the failed execution to read it.Response mode: Streaming and Response Nodes can answer nothing
With Response Mode left unset on version 1.5, it behaved like When Last Node Finishes. With Streaming and a last node that cannot stream (our Code node), n8n returned HTTP 200 with an empty chunked body: the workflow ran but the user saw nothing. Streaming needs an AI Agent with streaming on as the node that answers. With Using Response Nodes and no Chat or Respond node in the workflow, the answer was
{"executionStarted":true,"executionId":"8","resumeToken":"..."}and no text.401 vs 403, and why Allowed Origins is not security
With Basic Auth on, a call with no credentials got 401
Authorization is required!and a wrong password got 403Authorization data is wrong!. An embedded widget must send the header itself (the widget'swebhookConfigheaders). Allowed Origins (CORS) set to one site only stops browsers: a preflight from another origin still got 204 but with the allowed origin inAccess-Control-Allow-Origin, so the browser blocked it with a CORS error in the console. The same POST sent from outside a browser still ran the workflow (200). To keep strangers out, use Basic Auth or n8n user auth, not Allowed Origins.
All test results
We made 25 HTTP calls; some rows group several. Left: what we set up or sent. Right: what n8n 2.43.7 answered (all real).
| Test | Result |
|---|---|
Make Chat Publicly Available off, POST or GET to /webhook/<id>/chat | 404 with an empty body, no hint |
| Workflow not active (not published) | 404 JSON The requested webhook "POST <id>/chat" is not registered. with an activate hint |
POST to /webhook/<id> without /chat, workflow active | 404 The requested webhook "POST <id>" is not registered. |
Test URL /webhook-test/<id>/chat while the editor is not listening | 404 Click the 'Execute workflow' button message |
Custom frontend posting {"message": "..."} | Workflow ran; $json.chatInput undefined |
Last node returns {"reply": "hello"} | HTTP 200 {"reply":"hello"}; the widget shows only output, text or message, so an empty bubble |
| Last node returns 2 items | Only the first is sent: {"output":"first"} |
| Last node returns 0 items | HTTP 500 No item to return was found, stack trace in the body |
| A node throws an error | HTTP 500 {"message":"Error in workflow"}; the reason only in Executions |
| Response Mode not set (version 1.5) | Behaved like When Last Node Finishes |
| Response Mode Streaming, reply from a Code node | HTTP 200, chunked, empty body; the workflow ran |
| Response Mode Using Response Nodes, no Chat or Respond node | HTTP 200 {"executionStarted":true,"executionId":"8","resumeToken":"..."}, no answer text |
| Basic Auth on, no credentials | 401 Authorization is required! |
| Basic Auth on, wrong password | 403 Authorization data is wrong! |
| Basic Auth on, correct credentials | 200 |
Allowed Origins https://a.example, preflight from https://b.example | 204, but Access-Control-Allow-Origin: https://a.example, so the browser blocks it |
| Same, POST from b.example outside a browser | 200: the workflow still ran |
Allowed Origins left on * | The caller's origin was echoed back |
loadPreviousSession with Load Previous Session off | {"data":[]}: history never shown |
| GET the URL in Hosted Chat mode (public on) | 200 HTML page that loads @n8n/chat from cdn.jsdelivr.net (blank if that is blocked) |
| GET the URL in Embedded Chat mode | 200 with a short body, no page: this mode is for the widget's POSTs, so it looks broken in a browser but is expected |
Checklist
- Empty 404? Turn on Make Chat Publicly Available. JSON 404? Activate the workflow.
- Use the production URL ending in
/chat. - Last node returns exactly one item with an
outputfield. - Custom frontend: post
chatInputandsessionId. - HTTP 500 Error in workflow: open the failed run in Executions.
- Streaming only with an AI Agent answering; Using Response Nodes needs a Chat node.
- Protect the chat with Basic Auth or n8n user auth; Allowed Origins only stops browsers.
- Want history? Set Load Previous Session to From Memory and connect a Memory sub-node to the trigger.
Good to know
- Agent behind the chat failing with
No prompt specifiedor memory errors? See n8n AI Agent node not working. - Other webhook 404s are in n8n webhook not working (404); reply problems in n8n Respond to Webhook not working; auth in n8n webhook authentication not working.
- Only one Chat Trigger is allowed per workflow.
- Every error text from our n8n guides is in the n8n error message index.
What we did not test
A real AI model answering (the reply came from a Code node), streaming with an AI Agent, the widget running in a real browser (we read its code), Load Previous Session with a memory store, n8n user auth, and n8n Cloud.
Start from a working agent
FAQ
Why does my n8n chat URL return 404?
An empty 404 means Make Chat Publicly Available is off. A JSON 404 saying the webhook is not registered means the workflow is not active, or the URL does not end in /chat.
Why does the n8n chat show an empty reply?
The chat widget only shows a field called output, text or message from the last node. Rename your field to output with an Edit Fields node.
What does "No item to return was found" mean in the n8n Chat Trigger?
The last node returned no items, so n8n had nothing to send back and answered HTTP 500. Make every path end with one item.
Why does n8n chat streaming show nothing?
Streaming only works when an AI Agent with streaming on answers. With another node, n8n returned an empty 200 response.
Does Allowed Origins protect my n8n chat?
No. It only makes browsers block other sites. A request from outside a browser still ran the workflow in our test. Use Basic Auth or n8n user auth.
What is the difference between 401 and 403 on the n8n chat?
401 Authorization is required! means no Basic Auth header was sent; 403 Authorization data is wrong! means the user or password is wrong.
Related guides
- n8n OpenAI node not working? 18 tests, every error decoded
- n8n Telegram node not working? 20 tests, every error decoded
- n8n Execute Workflow node not working? 71 sub-workflow tests
- n8n Form Trigger not working? Form errors fixed, 10 tests
- n8n Email Trigger attachments: fix attachment_0 and "none was found", 12 tests
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes