n8n Chat Trigger Node: The Complete Guide
Master the n8n Chat Trigger node: every setting explained, response modes, session IDs, file uploads, allowed origins, hosted vs embedded chat, and the Chat response node.
Manoj Kumar

Every chatbot you build in n8n starts with the same node: the Chat Trigger. It's the entry point that receives messages, manages sessions, and decides how responses get back to the user. Get its settings right and everything downstream just works. Get them wrong and you'll meet the full catalog of n8n chat errors.
The official docs describe each field briefly, but they don't explain how the settings interact or which combinations you actually want. This guide goes through every setting, the three response modes, how session IDs work, and how to put a real chat interface in front of the node.
What the Chat Trigger Node Does
The Chat Trigger starts a workflow whenever a chat message arrives. For every message it outputs three things your downstream nodes rely on:
chatInput: the text the user typedsessionId: an identifier that groups messages into one conversationmetadata: any custom data the chat widget sent along
It also gives you a built-in chat panel inside the n8n editor for testing, and a webhook URL that external chat interfaces use to talk to your workflow in production.
Every Setting, Explained
Make Chat Publicly Available
Off by default. While it's off, only the test chat inside the n8n editor works. Turn it on when you want real users to reach the workflow through the hosted chat page or an embedded widget. Leave it off while you're still building.
Mode: Hosted Chat vs Embedded Chat
This choice decides where your users chat:
Hosted Chat gives you a ready-made chat page served by n8n at a public URL. Share the link and people can start chatting. You get basic text customization (title, subtitle, input placeholder) but it runs on n8n's page, not your website.
Embedded Chat turns the node into a pure webhook endpoint and expects you to bring your own chat interface, whether that's the @n8n/chat package or a widget builder like n8nchatui.com. This is the mode you want for a chatbot on your own website.
Authentication
Three options control who can use the chat:
- None: anyone with the URL can chat. Fine for public bots, risky for anything internal
- Basic Auth: username and password, using an n8n credential
- n8n User Auth: only people logged into your n8n instance can chat. Useful for internal tools
Initial Message(s)
The greeting the bot shows before the user types anything. Available in Hosted Chat mode; embedded widgets define their own initial messages on the widget side.
Allowed Origins (CORS)
A comma-separated list of domains allowed to call the chat webhook from a browser. This is the setting people forget most often: if your website isn't listed here, messages from your embedded widget are silently blocked by the browser. Enter exact origins like https://www.yoursite.com.
Allow File Uploads
Lets users attach files to their messages. When enabled, uploaded files arrive in the workflow as binary data alongside the message, and you can restrict what's accepted with Allowed File Mime Types (for example image/*,application/pdf). If you're using a custom widget, the widget needs file uploads enabled on its side too. Our file uploads guide covers the end-to-end setup including how to process the files in your workflow.
Load Previous Session
When enabled, the chat loads earlier messages from the same session, so returning users see their conversation history. It requires a memory node (like Simple Memory) connected in your workflow, because that's where the history actually lives.
Require Button Click to Start Chat
Hosted Chat only. Shows a welcome screen with a start button instead of dropping users straight into the conversation.
3 Most Used Response Modes
Under Options, Response Mode controls how the workflow's answer travels back to the user. This single setting causes more confusion than everything else combined.
When Last Node Finishes (the default): the workflow runs to completion and the output of the final node becomes the reply. Simple and right for most chatbots.
Streaming: the response streams back word by word as the AI generates it, like ChatGPT. This requires streaming support on both ends: the trigger and the AI Agent node. If you enable it on only one, you get the classic "No response received" error. The full setup is in our streaming guide.
Using Response Nodes: the workflow controls exactly when and what to send using dedicated response nodes. This unlocks multi-step conversations, like sending a message, waiting for the user's answer, and continuing the workflow. Required if you use the Chat response node described next.
The Chat Node (Respond to Chat)
n8n ships a companion node for advanced conversations, currently named Chat (older versions called it Respond to Chat). It can:
- Send Message: push a message to the chat mid-workflow, useful for progress updates during long executions
- Send and Wait for Response: pause the workflow until the user replies, with free text input or approval buttons
Three constraints to know before you design around it:
- The Chat Trigger's Response Mode must be Using Response Nodes, or you'll get an error demanding exactly that
- It doesn't work in Embedded Chat mode; use the Respond to Webhook node there instead
- It can't be used inside subworkflows or as an agent tool
How Session IDs Work
Chat memory in n8n hinges on one field: sessionId. The Chat Trigger generates it per conversation and outputs it with every message. Memory nodes use it as the key for storing and retrieving history, which is how two visitors chatting at the same time don't see each other's messages.
Things go wrong in two typical ways. If your memory node reports "No session ID found", the field isn't reaching it, usually because a custom widget or intermediate node renamed or dropped it. And if you embed several widgets that share one workflow, they share history unless each widget sends a distinct session key. The mechanics of both cases are covered in our session management docs.
Hosted Chat vs Your Own Website
The hosted chat page is the fastest way to get a shareable bot, and for internal tools it's often all you need. But for a customer-facing chatbot it has clear limits: it lives on an n8n URL rather than your domain, the visual customization stops at a title and a few labels, and it won't match your brand.
Embedding on your own site is where the Embedded Chat mode comes in, and you have two paths:
The DIY path is the official @n8n/chat package: free and functional, but styling happens in CSS code, your webhook URL sits exposed in your page source, and there are no analytics. We covered it fully in the @n8n/chat guide.
The no-code path is a widget builder like n8nchatui.com: you paste the same webhook URL into a visual editor, design the widget with a live preview, and embed a snippet. Managed widgets also shield your webhook URL behind a proxy with rate limiting, and add an analytics dashboard. The step-by-step widget guide shows the whole flow.
A Working Setup, Start to Finish
Putting it all together, here's the configuration for a production chatbot on your own website:
- Chat Trigger node: Mode set to Embedded Chat, Make Chat Publicly Available turned on
- Allowed Origins: your website's domain
- Response Mode: When Last Node Finishes (or Streaming, if you've enabled it on your AI Agent node too)
- AI Agent node connected to your model, with a Simple Memory node so conversations have context
- Activate the workflow and copy the production webhook URL
- Connect your widget to that URL and embed it on your site
From there, the details that matter are covered across our guides: streaming for real-time responses, file uploads for attachments, metadata for passing user context, and the error guide when something misbehaves.
More Articles
n8n Chat Errors: How to Fix Every Common Message
Exact fixes for the most common n8n chat errors: 'No response received', 'Response Mode must be set to Using Response Nodes', missing session ID, invalid JSON, CORS failures, and more.
July 13, 2026
@n8n/chat: The Complete Guide to n8n's Chat Widget
Everything you need to work with the @n8n/chat package: every createChat option explained, CSS variables, metadata, React and Next.js setup, and fixes for the most common errors.
July 13, 2026
Create a Custom n8n Chat Widget (No Code)
A step-by-step guide to creating a fully customizable chat widget that connects to your n8n workflows and embed it on any website. No coding required.
March 4, 2026
n8n Chat Streaming: A Complete Setup Guide
Turn slow, wait-and-see AI chatbot responses into a real-time streaming experience. Learn how to set up chat streaming in n8n and connect it to a chat widget on your website.
April 2, 2026