This article was drafted with AI help and reviewed by the author.
If your app talks to an n8n chat workflow over its WebSocket, n8n 3.0 changes the wire format under you.
The n8n team describes it in the v3.0 breaking changes. When a Chat Trigger is set to respond through response nodes (the Using Response Nodes option), its WebSocket now sends every frame as a JSON object with a type field. Before, control frames and plain text replies arrived as raw strings. n8n's own chat widget, @n8n/chat, handles both formats from version 1.31.0.
For a web widget that is a quick package update. For a mobile app it is a release planning problem. The upgrade happens on the server in one afternoon. Your users update the app whenever they feel like it. This post is about closing that gap from the client side. The n8n details were checked against its v3.0 breaking changes on 30 November 2026, while 3.0 was still early access. The messages below are examples.
What the user would actually see
Picture a Flutter support chat that treats every incoming frame as text and shows it as a bubble. That worked on 2.x.
Example, after the server moves to 3.0 and the app does not:
- n8n sends a reply. The app shows a bubble containing the raw object text, with braces, the word type, the word message, and finally the answer the user wanted.
- n8n sends a heartbeat. The app shows another bubble with the heartbeat object in it.
- The app's own answer to heartbeats, if it sends a plain string, is ignored. n8n 3.0 drops incoming frames that aren't JSON. Test on staging what happens to a connection whose answers are ignored.
Nothing crashes. The chat just looks broken, and it only looks broken on old versions, which makes the bug reports confusing.
The frame types, and what a client should do
The 3.0 frames carry one of five types. Here is a reasonable client decision for each, written as a list your parser can follow:
- message. Read the text field and add a bubble.
- with-buttons. A reply that comes with buttons. Render the text, then the buttons. An older app version that can't draw buttons should still show the text.
- heartbeat. Don't render anything. Reply with a JSON object whose type is heartbeat-ack, as the docs describe.
- continue. A control frame. Don't render it as a message. Check n8n's docs for how it fits your flow.
- error. Show an error state with a retry, not a bubble.
Two more rules make the parser safe:
- Unknown type. Log it and ignore it. Never show a frame you don't understand.
- Not JSON at all. Treat it as a legacy 2.x frame. Show it as text only if it isn't one of the old control strings your app already knew about.
That second rule is the bridge. A client with both paths works against 2.x today and 3.0 tomorrow.
Order of work
The order matters more than the parser.
- Ship the tolerant client first. Release the version that handles both formats while the server is still on 2.x. Nothing changes for users yet.
- Watch adoption. Use your analytics or store console to see how many active users are on that version or later.
- Decide on a floor. If you have a remote config or minimum-version check, set it so older versions are asked to update before the server moves. If you don't have one, this is a good reason to add one.
- Upgrade a staging n8n to 3.x and run the new app against it. Check each frame type, including heartbeats over a long idle period.
- Upgrade production n8n.
- Remove the legacy path in a later release, once 2.x is long gone.
Example timeline, with made-up numbers:
- Week 1: app 4.2 ships with the dual parser.
- Week 3: 4.2 or later is on most active devices. Minimum version set to 4.2 in remote config.
- Week 4: staging n8n on 3.x, chat tested on Android and iOS test builds.
- Week 5: production n8n upgraded. Error rate on chat screens checked daily for a week.
Next.js has a smaller version of the same problem
A web client updates when you deploy, so the gap is shorter. It isn't zero. A browser tab left open since yesterday is still running yesterday's JavaScript bundle.
If your Next.js app embeds @n8n/chat, move to version 1.31.0 or newer before the server upgrade. If you wrote your own client, ship the dual parser first, the same as on mobile. If the chat page is long-lived, consider a version check that asks the user to reload when a new build is out.
Better still: don't let the app speak n8n's protocol
The deeper lesson is about coupling. When a mobile app talks straight to n8n's chat WebSocket, n8n's wire format becomes part of your app's public contract. Any server change becomes an app release.
A thin backend in between fixes that. The app talks to your own WebSocket or streaming endpoint with your own message shapes. The backend talks to n8n and translates. When n8n changes its frames, you update the backend once, and every installed app version keeps working.
This also gives you a place for things the app shouldn't hold, such as authentication to n8n, rate limits and logging.
Example contract between the app and your backend:
- reply: text, and optional buttons with label and value
- status: typing or idle
- error: a code and whether retry makes sense
None of those names need to match n8n's. That is the point.
Limitations
- This post only covers the response-nodes mode of the Chat Trigger, the one the 3.0 change names.
- The behavior of a connection whose heartbeat answers are ignored isn't described here. Test it on staging.
- If you use n8n's hosted chat page, n8n says it always loads a current widget, so there is nothing to ship.
Takeaways
- n8n 3.0 sends every chat WebSocket frame as a typed JSON object.
- Old app versions that render raw frames will show raw objects to users.
- Ship a client that accepts both formats before the server moves, then upgrade.
- Use adoption data and a minimum version, not hope.
- Put a thin backend between the app and n8n so its wire format isn't your contract.
The chat frames are one item in a long list of 3.0 changes. For the full upgrade path, including the Migration Report, backups and rollback, see this guide to upgrading n8n to 3.0 safely.