Can you connect WhatsApp to n8n without running a server?
Yes. n8n ships two official nodes for the WhatsApp Business Platform: WhatsApp Trigger, which receives events over a webhook, and WhatsApp Business Cloud, which sends messages, templates and media. With those two nodes and a Meta app in Live mode you have automations running without writing or deploying a server of your own.
What breaks is not n8n: it is the webhook. Meta only delivers events when three conditions hold at the same time — the URL answers the verification, the app is subscribed to your WhatsApp Business account, and the messages field is active — and almost every setup that fails skips the second one without knowing it exists. With the trigger green and no messages arriving, there is no error to read: nothing happens.
Table of contents
Before you drag a node onto the canvas, decide which door the message comes in through. It is not an implementation detail: it changes who answers when something falls over.
| Official API (Cloud API) | WhatsApp Web from the inside (Baileys) |
|---|
| Who maintains it | Meta, with the WhatsApp Business Platform and its public documentation. | A community project, unrelated to WhatsApp, that connects to the WhatsApp Web API. |
| How it authenticates | A Meta app, an access token and a WhatsApp Business account. | You scan a QR code or a pairing code from the phone, the same as WhatsApp Web. |
| Templates and the 24 h window | Yes: outside the service window you can only start with approved templates. | No templates and no window: you write whenever you want, and that is exactly why you are outside the rules. |
| What happens if something changes | Meta versions its API and gives notice. | The client can stop working without notice: the library depends on a protocol that is not its own. |
| Risk for the number | The number runs inside Meta's policies; the risk is in the content you send. | The project itself warns that it does not support uses that violate WhatsApp's terms of service. |
The Baileys shortcut is real: in twenty minutes you have a number answering. The bill arrives later, when the number you use is also the one taking orders, or when the flow has to survive a protocol change on a Tuesday night.
If your case is commercial and the number is part of the business, start with the Cloud API. n8n makes it easy and the rest of this article assumes that route.
The Cloud API webhook in n8n, step by step
Meta's contract is short and written in its documentation: a GET to verify the endpoint when you register it, and a POST with the event JSON every time something happens. n8n implements both halves, but the Meta app has to be configured by hand once.
1. A Meta app in Live mode
Create the app in the Meta for Developers panel, add the WhatsApp product and fill in the privacy policy URL and the terms URL. Then switch the app to Live mode: Meta's documentation warns that some webhooks are not sent while the app is still in development mode.
This is the step that makes people test for an hour against a webhook that will never receive anything real. The button that sends a test event from the Meta panel does work in development mode, so a green test proves nothing.
2. Credentials: there are two, and they are not the same
n8n asks for different credentials for each node, and mixing them up is the first error on the list:
- WhatsApp Trigger uses OAuth2: Client ID is your Meta app's App ID and Client Secret is the App Secret.
- WhatsApp Business Cloud uses an API key: Access Token and Business Account ID (the
WABA ID, not the Phone Number ID).
The trigger authenticates as the app; the send node sends messages as your business account. If you paste the trigger's token into the send node, sending fails; if you paste the send token into the trigger, the webhook subscription fails.
3. Publish the workflow: n8n registers the URL for you
When you publish a workflow with a WhatsApp Trigger, n8n registers its own URL as the callback in your Meta app. There is no "verify token" field to fill in: the node uses its internal identifier as the verification token and answers Meta's call with the hub.challenge it receives.
The GET Meta makes looks like this, according to its documentation:
GET <CALLBACK_URL>
?hub.mode=subscribe
&hub.challenge=<HUB.CHALLENGE>
&hub.verify_token=<HUB.VERIFY_TOKEN>
The valid answer is a 200 with the value of hub.challenge as the body and nothing else. Anything else — a 302 to the login, a 404, an HTML page — leaves the endpoint unverified and Meta sends no webhooks. The URL also has to be HTTPS with a valid certificate: Meta does not accept self-signed ones.
That gives the first practical consequence: Meta allows one webhook per app. n8n says so in the node itself. Every time you switch between the test URL and the production URL, the second overwrites the first, and the workflow you thought was published stops receiving events.
4. Subscribe the app to your WhatsApp Business account
This is the step missing from almost every tutorial. n8n registers the webhook in the app, but it does not subscribe the app to your WhatsApp Business account (WABA). If that subscription does not exist, the messages sent to your number never reach n8n: the workflow does not start and no failed execution appears that you could investigate.
To check it you need the WABA ID (in the Meta panel, inside WhatsApp, not the Phone Number ID) and a token with the whatsapp_business_management permission:
GET https://graph.facebook.com/<API_VERSION>/<WABA_ID>/subscribed_apps
Authorization: Bearer <ACCESS_TOKEN>
If the answer is {"data": []} or none of the identifiers matches the Client ID of your credential, the app is not subscribed. To subscribe it you send a POST to the same path, with no body, with the same token:
POST https://graph.facebook.com/<API_VERSION>/<WABA_ID>/subscribed_apps
Authorization: Bearer <ACCESS_TOKEN>
A correct answer is:
{ "success": true }
Two warnings that save you a scare. First: do not delete the subscription to fix the "a webhook subscription already exists" error. That error is about the app's URL, not the WABA, and deleting the subscription stops messages for the whole account. Second: if your app has an override_callback_uri, Meta sends the events to that URL and not to n8n's.
5. Test with a real message
Write from your phone to the business number. In the workflow's Executions you will see the run with this payload, which is the one Meta documents (trimmed):
{
"object": "whatsapp_business_account",
"entry": [
{
"id": "102290129340398",
"changes": [
{
"field": "messages",
"value": {
"messaging_product": "whatsapp",
"metadata": { "phone_number_id": "106540352242922" },
"messages": [
{ "from": "16505551234", "id": "wamid.HBgL...", "type": "text", "text": { "body": "Hola" } }
]
}
}
]
}
]
}
n8n flattens entry[].changes[].value into a single item with the field field added, so in the next node the text arrives as {{ $json.messages[0].text.body }} and the customer's number as {{ $json.messages[0].from }}.
To answer you have two options: the WhatsApp Business Cloud node (Send operation, Text message type) or an HTTP Request against Meta's Messages API:
POST https://graph.facebook.com/v27.0/<PHONE_NUMBER_ID>/messages
Authorization: Bearer <ACCESS_TOKEN>
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "+16505551234",
"type": "text",
"text": { "body": "Hola, soy el asistente de la tienda. ¿Qué necesitas?" }
}
Watch what that 200 returns: it means Meta accepted the message, not that it was delivered. Delivery and send errors arrive as a statuses webhook, inside the same messages field.
Five automations that survive production
These five are not demos: they are the ones still alive after three months. For each one, the trigger, the nodes and the data worth storing from day one (if you do not store it, you cannot debug later).
1. Order status without opening the store panel
Trigger: WhatsApp Trigger, Messages event, with a Switch that detects words like "order", "shipping" or "where is it".
Nodes: Edit Fields to normalise the text, HTTP Request to your store or ERP API, WhatsApp Business Cloud to answer, and a database node for the record.
What you store: the customer's wa_id, the message wamid (it serves to deduplicate), the detected intent, the order number and the answer sent.
2. Appointment reminder 24 hours ahead
Trigger: a daily Schedule Trigger (or your calendar's webhook when the appointment is created).
Nodes: Postgres or Google Sheets to read tomorrow's appointments, Edit Fields to prepare the variables, and WhatsApp Business Cloud with the Send Template operation.
What you store: appointment identifier, phone, name and the version of the template used.
Here you cannot improvise the text: if the customer has not written in the last 24 hours, the service window is closed and you can only start the conversation with a template approved by Meta. The reminder is designed as a template, not as a free message.
3. Lead capture with two questions
Trigger: WhatsApp Trigger, the first message from a number that is not in your database.
Nodes: a lookup by phone in your CRM or sheet, an AI Agent or a Switch with the qualifying questions, HTTP Request to the CRM and a source label.
What you store: lead identifier, answers, the channel it came through and the consent flag to write again.
4. FAQ support with a hand-off to a human
Trigger: WhatsApp Trigger, with a Switch per topic (pricing, hours, returns).
Nodes: an AI Agent with your knowledge base or an answer table, WhatsApp Business Cloud to reply, and an alert node for the team when the answer is not in the base.
What you store: the original question, the answer given, whether it was resolved and whether it ended up in a person's hands. That list of unanswered questions is the best content plan you will ever have.
5. Alerting the team when something gets complicated
Trigger: WhatsApp Trigger plus an IF with words the bot must not handle ("complaint", "invoice", "talk to someone"), or two failed answers in a row.
Nodes: IF, an alert over Slack, Gmail or Telegram with the summary, a message to the customer announcing the hand-off and a pause flag for that conversation.
What you store: conversation identifier, who took it, the time of the hand-off and a bot_paused field that the rest of the workflows check before answering.
That last field is what separates a useful bot from a bot that talks over your support colleague.
The errors that break the webhook
"Invalid parameter" when you activate the trigger
It is the most searched error and the least explained. It shows up when you publish or test the node, with the text Bad request - please check your parameters and the detail WhatsApp Trigger: Invalid parameter.
What is happening: n8n sends the webhook URL to Meta to register it, and Meta rejects the request with code 100, which in its error table means "the request includes one or more unsupported or misspelled parameters". The trigger does not fail because of the customer's message: it fails while registering the URL.
The causes you can confirm in the documentation are three:
- The URL is not public or is not valid HTTPS. Meta requires a correctly installed TLS certificate and does not accept self-signed ones. A local n8n, a tunnel with an odd certificate or a URL with an internal port produces exactly this rejection.
- The App ID or the App Secret do not belong to the right app. n8n asks for an app token built from those credentials and registers the webhook under that App ID. If the Client ID belongs to another app, or that app does not have the WhatsApp product configured, the request goes to an app without that webhook and Meta rejects it.
- There is already a webhook registered for that app with another URL. In that case n8n shows its own message: the app already has a webhook subscription and there can only be one trigger per app. It is fixed by using one app per environment or deleting the old subscription, never by deleting the WABA one.
The Meta error carries an fbtrace_id: write it down, because it is the identifier its support asks for to trace the request.
A detail that saves half an hour of doubt: the verify token is not invented. n8n uses the node's internal identifier as the verification token and compares hub.verify_token against it. If you are filling in the Meta panel by hand, the verify token box takes that identifier, not a word you come up with.
The workflow publishes but no message arrives
No error, no failed execution, nothing. Two documented causes:
- The app is not subscribed to the WABA. It is step 4 above. n8n registers the webhook, but the account subscription is a different thing and it does not do it for you.
- The App Secret is wrong. n8n validates the
X-Hub-Signature-256 signature of every POST with the Client Secret of the credential. If it does not match, the event is dropped without notice. Meta signs with the app's App Secret; if you copied the one from another app, or the token instead of the secret, the webhook arrives and is thrown away.
There is a third scenario that confuses because it looks like an n8n bug: Meta retries delivery for up to seven days if your endpoint does not answer 200. If the workflow is slow or returns an error, you will receive the same message several times and it will look like the bot is answering twice.
"Bad request - please check your parameters" when sending a template
This one does belong to the send node and n8n documents it: it shows up mostly with the Send Template operation when the data sent does not match the template's format. Check the number, order and type of every template variable, and confirm that the expressions resolve to a value and not to an empty one. A {{ $json.nombre }} that does not exist becomes an empty parameter and Meta rejects it.
It works in test mode and stops working in production
Back to the one webhook per app limit. While testing, n8n registers the test URL; on publishing, the production one. Meta only sends to one of the two, so the published workflow goes mute while you test and the other way round. The recommendation in n8n's documentation is to unpublish while you test and publish again when you finish.
The message leaves with error 131047 after 24 hours
The service window lasts 24 hours from the customer's last message. After that, Meta answers 131047 ("more than 24 hours since the recipient's last reply") and the send fails. The fix is not to retry: it is to send an approved template.
| Code | What it means | What you do |
|---|
100 | Unsupported or misspelled parameters | Check the webhook URL, App ID, App Secret and permissions |
190 | Expired access token | Generate a new one and update the credential |
131047 | More than 24 hours since the customer's last message | Send an approved template |
131026 | The message could not be delivered | Confirm the number has WhatsApp and accepted the current terms |
When to leave n8n for a managed builder
n8n is the right tool when the logic is yours, the volume is moderate and someone on the team understands the workflow. It stops being the right tool when the bot becomes a product: several customers, several numbers, a panel where someone who does not code edits the tone, and the obligation for voice notes and PDFs to be understood without standing up three more services.
At that point the cost is no longer the licence: it is the person on call.
Chart 1 · The three routes. The same comparison, as a table, for whoever prefers to read it.
Set up in an afternoon or maintain for a year: that is the underlying decision. None of the three is free: what changes is who pays for the maintenance. Height orders the criteria of the table; it measures nothing. The dotted cell means "With conditions and your own development", that is, you need your own development to get there.
| Criterion | n8n + Cloud API | n8n + Baileys | Managed builder |
|---|
| Set up the first flow in an afternoon | Yes, if the Meta app is already in Live mode | Yes, you scan a QR code and write | Yes, the number is connected from a panel |
| Maintenance and updates | You carry it | You carry it and it depends on third parties | The provider carries it |
| Number safe from blocks | Inside Meta's rules | An assumed risk, not covered | Inside Meta's rules |
| Scaling to several agents | One workflow per case, no shared panel | Not designed for that | Several numbers and agents in one panel |
| A capped, predictable monthly cost | Hosting plus Meta traffic, and your hours | Hosting plus your hours, with risk | A flat fee plus Meta traffic |
Why each cell is the way it is:
- Set up the first flow in an afternoon. With the app in Live mode and the webhook published, the first message comes in the same day.
- Maintenance and updates. You are the on-call team: n8n versions and changes to the API.
- Number safe from blocks. The Cloud API runs inside Meta's rules; with WhatsApp Web you take on a risk nobody signs for.
- Scaling to several agents. Several numbers without a central panel end up in a spreadsheet with three versions of the flow.
- A capped, predictable monthly cost. You always pay for hosting and Meta traffic; the difference is whether you also pay someone to watch it.
If you choose the third route, in BuilderBot Cloud the agent is described with a prompt, understands voice notes, images and PDFs, and connects through the official API without you touching the webhook. The features page shows what the panel covers, the REST API and the webhooks for developers are still there if what you want is to build your own product on top, and the plans and pricing are published with no small print about stored contacts.
Summary in three points
- n8n does talk to WhatsApp, and through the official route. WhatsApp Trigger receives, WhatsApp Business Cloud sends. You need neither your own server nor a paid integrator.
- Almost every failure is a configuration problem in Meta. The
hub.challenge verification, the app's subscription to the WABA and the one webhook per app limit explain both the red trigger and the silence with no errors.
- The WhatsApp Web shortcut is paid for later. Baileys starts in twenty minutes and leaves you outside WhatsApp's rules; if the number is part of the business, the Cloud API is the base.
If the webhook already works and what you want is to stop maintaining it, the honest comparison is in WhatsApp Business API pricing and in how much a WhatsApp chatbot costs. And if you are starting from zero, begin with how to create a WhatsApp bot.
Further reading