The key points
- Meta's Test button passing proves the URL works, not that real messages are subscribed to it.
- The messages field and the WABA subscription are separate switches, and the n8n WhatsApp Trigger node does not set the second one.
- Behind a Cloudflare tunnel, a bot rule or an Access policy can reject Meta's POST before n8n ever logs it.
- Answer every notification with a 200 straight away, dedupe on the message id, and verify the signature on the raw body.
Where does a WhatsApp webhook actually break?
An inbound message passes through five hops: Meta's configuration, Meta's HTTPS request, your edge (a tunnel, proxy or firewall), your n8n instance, and the workflow that reads the payload. A failure at any hop looks the same from the outside: you send a message to your number and nothing happens. The fastest fix is to find the last hop that sees a request, because the fault sits at the next one. If you are new to the pieces, how a WhatsApp bot API works shows where the webhook sits.
Put an observer at each hop. The edge has its own request log (Cloudflare's Security events page lists blocked and challenged requests), n8n has the Executions tab, and Meta has the subscription settings. If the edge shows a POST and n8n shows no execution, the problem is between them. If the edge shows nothing, Meta is not sending, or something upstream of Cloudflare is dropping the request.
Meta retries a failed delivery with decreasing frequency, and its webhooks guide says this can go on for up to seven days and can produce duplicate notifications. A bug you fix on Tuesday can therefore replay old messages on Wednesday, so the workflow needs to tolerate duplicates before you start debugging.
Is Meta configured to send the event at all?
Start at Meta, because a missing switch here produces total silence. Four settings matter, and each one fails quietly.
The verification handshake comes first. When you save the callback URL, Meta sends a GET request with `hub.mode` (always `subscribe`), your `hub.verify_token` and a `hub.challenge` value. Your endpoint must compare the token with the string you stored and answer 200 with the challenge echoed back unchanged, as the Graph API webhooks guide and Meta's create-endpoint page describe. Extra whitespace in the token, a JSON wrapper around the challenge or a redirect to another URL all fail this step. Test it yourself with a `curl` GET carrying those three parameters before you click Verify.
The second setting is the field. Verification only proves the URL answers. You still subscribe to individual webhook fields in the App Dashboard, and inbound messages arrive on the `messages` field. The third is the account: the app has to be subscribed to the WhatsApp Business Account itself, through the `subscribed_apps` call on the WABA, which Meta documents on its webhook management page. n8n's WhatsApp Trigger documentation states that the node registers the webhook URL on your Meta app but does not subscribe the app to your WABA, and that without the subscription messages to your number never reach n8n. A GET on the same `subscribed_apps` endpoint lists the apps currently subscribed, which settles the question in one call.
The fourth is the app mode. Meta's guide says some webhooks are not sent while the app is in Dev mode, so move the app to Live before you decide the network is at fault. Also check for an override: Meta's webhook override feature can send a WABA's or a phone number's events to a different callback URL than the one in the dashboard, which explains a correct dashboard URL that still receives nothing.
The Test button in the dashboard sends a sample payload to your callback URL. It passing tells you the URL and handshake are healthy. It does not tell you that real messages are subscribed to that URL, which is why the classic symptom is a green test and an empty execution list.
Can Meta reach your endpoint through the tunnel?
Meta needs a public HTTPS URL. Its documentation requires a valid TLS certificate correctly installed and says self-signed certificates are not supported, so a port-forward to a home machine with a self-made certificate fails even when the URL works in your browser. A Cloudflare Tunnel avoids this because Cloudflare terminates TLS at its edge with a certificate for your hostname, and `cloudflared` only makes an outbound connection to Cloudflare, as the Tunnel overview explains.
Use a named tunnel with a published application route for a fixed hostname. Quick Tunnels are for testing: Cloudflare's Quick Tunnel documentation says the hostname changes each time you create one, so after a restart Meta keeps posting to a dead address while your tunnel sits on a new one.
The next failure is a Cloudflare rule that stops Meta's POST. A challenge is built for browsers, and Meta's servers will not complete one. Cloudflare says Bot Fight Mode may challenge API traffic and cannot be bypassed with WAF custom rules, so on a Free-plan zone that serves a webhook, switch Bot Fight Mode off; on paid plans, Super Bot Fight Mode supports Skip rules for the webhook path. A WAF custom rule that issues a managed challenge or a block on POST requests shows up in Security events with the path and the action, which makes this the quickest hop to rule out.
Cloudflare Access is a separate case. Access is deny by default, and Meta's dashboard takes a callback URL and a verify token, so there is nowhere to attach a service token. Protect the n8n editor with Access, and give the webhook path its own Bypass policy. Cloudflare notes that Bypass disables Access enforcement and that those requests are not logged, so the signature check described below becomes your control for that path.
Is n8n listening on the URL Meta was given?
The n8n Webhook node has two URLs. The test URL is registered only while you select Listen for Test Event or Execute workflow, and the production URL is registered when you publish the workflow. If Meta holds the test URL, real messages vanish as soon as your listening session ends. If it holds the production URL and the workflow is unpublished, the same thing happens.
With the WhatsApp Trigger node there is one more limit: WhatsApp allows a single webhook per app, so n8n's documentation advises unpublishing the production workflow while you test, because Meta sends events to only one of the two URLs. Use a separate Meta app for development so a test session never takes the production webhook.
Behind a tunnel, n8n also has to know its public address, a detail worth settling when you choose between Zapier, Make and n8n for a self-hosted setup. n8n's reverse proxy guide explains that n8n builds webhook URLs from its protocol, host and port, which is wrong when it listens on 5678 and the proxy serves 443. Set `N8N_WEBHOOK_URL` to your public hostname (older releases used `WEBHOOK_URL`), set `N8N_PROXY_HOPS` to 1, and have the last proxy forward the `X-Forwarded-For`, `X-Forwarded-Host` and `X-Forwarded-Proto` headers. The URL shown in the editor is what the node registers with Meta, so check that it starts with your public hostname, not `localhost`.
Then settle the response. The node's Respond option set to Immediately returns a response as soon as the workflow starts, which is what Meta needs: its endpoint guide asks for a 200 on a valid request, and slow workflows (an LLM call, a CRM lookup) should run after the acknowledgement. If you use a plain Webhook node for the GET handshake, route it to a Respond to Webhook node that returns the `hub.challenge` value.
Why does the request arrive and nothing happens?
Once the POST reaches n8n, three workflow problems remain. The first is payload shape. Meta's webhook components show that the same `messages` field carries two kinds of events: an inbound message has a `messages` array, and a delivery update has a `statuses` array. Each outgoing message can produce up to three status events (sent, delivered and read), so a bot that sends replies, such as the flows in a WhatsApp chatbot build, payment reminders on WhatsApp or LR-number delivery updates, receives more status events than customer messages. A workflow that reads the first message without checking which array is present throws an error on every status event, and the error looks like a failed webhook.
The second is the signature. Meta signs each notification, and the `X-Hub-Signature-256` header holds an HMAC-SHA256 of the request body made with your app secret, with `sha256=` in front. Compute it over the bytes exactly as they arrived. Turn on the Webhook node's Raw Body option for this, because a body that n8n has parsed and serialised again can differ in whitespace or escaping and produce a mismatch on valid messages. If your check returns 401, Meta treats it as a failed delivery and keeps retrying.
The third is duplicates. Because Meta retries, the same message can arrive twice. Store each message `id` and ignore repeats before you send a reply, or a customer gets two answers. Payment webhooks fail the same way (Cashfree webhook setup covers the signature and retry side), and a Razorpay payment stuck on authorized shows the fetch-before-acting pattern for events that arrive out of order.
A worked example: the handshake passes and real messages never arrive
n8n runs on a small server at the office behind a named Cloudflare Tunnel on a hostname, say `hooks.example.com`. The callback URL saves and Meta's Test button shows a payload in the Executions tab. A real message to the number produces nothing.
Walk it in order. Security events show no blocked requests on the path, so Cloudflare is not the problem. The tunnel log shows no POST at all, so Meta is not sending. A GET on `subscribed_apps` for the WABA returns an empty list: the app was never subscribed to the account. One POST to that endpoint fixes it, the next real message appears in Executions, and the work left is the response mode and the status-event branch. The same symptom with a POST visible in the tunnel log and a 403 in Security events would have pointed at a Cloudflare rule instead, which is why the order matters.
Softivum builds WhatsApp integrations on the Cloud API and n8n with this order built in: a fixed hostname, a production webhook, an immediate acknowledgement, signature checks and a status branch from the first deploy. The work sits under our AI integrations and workflow automation services.
Symptom, likely cause and fix for WhatsApp webhook failures
| Symptom | Likely cause | Fix |
|---|---|---|
| Meta rejects the callback URL or verify token | GET handshake not answered with 200 and the raw hub.challenge, token mismatch, or redirect | Test the GET with curl, compare the token byte for byte, return the challenge as plain text |
| Test button works, real messages never arrive | App not subscribed to the WABA, or the messages field is off | Subscribe the app to the WABA with subscribed_apps, tick the messages field |
| Some webhook types never arrive | App in Dev mode | Switch the app to Live mode |
| Worked yesterday, silent after a restart | Quick Tunnel hostname changed | Use a named tunnel with a fixed public hostname and update the callback URL once |
| Meta shows delivery, tunnel and n8n log nothing | Cloudflare Bot Fight Mode, WAF challenge or Access policy rejecting the POST | Check Security events; on the Free plan turn Bot Fight Mode off for the zone, on paid plans use a Skip rule, and for Access a Bypass policy, scoped to the webhook path |
| Works while you watch the editor, stops when you leave | Meta holds the n8n test URL | Publish the workflow and register the production URL |
| n8n shows localhost or an internal port in the URL | No public URL configured behind the proxy | Set N8N_WEBHOOK_URL and N8N_PROXY_HOPS, restart n8n, re-register the webhook |
| Duplicate replies or repeated deliveries | Slow or non-200 response triggers Meta retries | Respond Immediately, dedupe on the message id |
| Execution errors on payloads with no message text | Status events read as messages | Branch on messages versus statuses before reading fields |
| Valid messages rejected by your own check | Signature computed on a re-serialised body | Hash the raw body with the app secret and compare with the header |
The diagnostic order
Test the handshake yourself
Send a GET to your public URL with hub.mode=subscribe, your verify token and a made-up hub.challenge. You should get a 200 and the same challenge back. Anything else, fix it before touching Meta.
Check the three Meta switches
Confirm the messages field is subscribed, list the WABA's subscribed apps and find yours, confirm the app is Live, and check for a webhook override pointing elsewhere.
Confirm the URL Meta holds
It must be your production URL on a fixed public hostname with a valid certificate. Open the n8n editor, copy the production URL and compare it character by character with the dashboard.
Send a real message and read the edge log
Message the number from a phone. Look at the tunnel log and Cloudflare Security events. A visible POST with a block or challenge action means a rule; no POST at all means Meta is not sending.
Open the Executions tab
If the POST arrived and no execution exists, the workflow is unpublished, the path differs or n8n sits behind an unconfigured proxy. Fix N8N_WEBHOOK_URL and N8N_PROXY_HOPS and re-register.
Make the acknowledgement immediate
Set the Webhook node to respond Immediately and move slow work after it. Watch for the same message arriving twice.
Verify the signature on the raw body
Enable Raw Body, hash it with the app secret, compare with the X-Hub-Signature-256 value after sha256=, and return 200 only for a match you accept.
Branch on payload type
Route the messages array to your conversation logic, route the statuses array to delivery tracking, and dedupe on the message id before you reply.
Webhook health checklist before you go live
- A curl GET with hub.mode, a token and a challenge returns 200 and the challenge
- The messages field is subscribed and the app appears in the WABA's subscribed apps list
- The app is in Live mode and no webhook override points elsewhere
- The callback URL is the n8n production URL on a named tunnel with a fixed hostname
- N8N_WEBHOOK_URL and N8N_PROXY_HOPS are set, and the editor shows the public hostname
- Cloudflare Security events show no blocks or challenges on the webhook path
- The Webhook node responds Immediately and slow steps run afterwards
- The X-Hub-Signature-256 check runs on the raw body with the app secret
- Messages and statuses take different branches, and message ids are deduped
Sources
Rules and guidance this answer relies on. Policies change, so check the current version before acting on it.
- Meta for Developers: WhatsApp Cloud API webhooks
- Meta for Developers: Create a webhook endpoint
- Meta for Developers: Webhooks getting started (Graph API)
- Meta for Developers: WhatsApp webhook components
- n8n Docs: Webhook node
- n8n Docs: WhatsApp Trigger node
- n8n Docs: Configure webhook URLs with a reverse proxy
- Cloudflare Docs: Bot Fight Mode
