N8n WhatsApp integration

Hello, I am making a workflow in n8n and it has a trigger that waits for a WhatsApp message. Here is the problem: I saw a lot of videos where people make the connection between WhatsApp and n8n using third-party apps like WAAPI, but this disappeared (I can’t find this application anymore).
Also, I want to make the connection like a professional, so I have an account in Meta for Developers, an account in Meta Business, and I have an app in Meta for Developers. This app has 2 tools: WhatsApp and Webhooks. I don’t understand how I should configure all this to make the workflow work.
My main problem is that when I configure the Webhook tool, it tells me that I must enter a token, and I don’t understand what this is because the node in n8n (the trigger) doesn’t say anything about it.
This problem started when I added a number to use a bot, because I am trying to put my workflow in production and I can’t do this with the test number.

Hey! I struggled with this too at first because I didn’t understand what that “token” Meta asked for in the Webhooks setup was. After testing, I realized that this token doesn’t come from n8n or Meta — you make it up yourself. It’s just a word or string you choose to prove the webhook is yours (for example: mytoken123).

Here’s what I did:

  1. In n8n I created a Webhook Trigger and copied the URL.

  2. In Meta for Developers, under Webhooks, I pasted that URL into the Callback URL field.

  3. In the Verify Token field I wrote the value I invented (mytoken123).

  4. Saved it, and Meta automatically sent a verification request to my webhook.

Once the verification passed, my workflow was receiving messages.

Then came the second part: moving from test to production. For that you can’t use the test number anymore, you need to register your real number in WhatsApp Business Manager and use a Permanent Access Token (generated in Meta Business → System Users). That’s the token I use in n8n when I send messages back through an HTTP node.

In short:

  • The “token” for Webhooks is one you create.

  • The “access token” for sending messages is the one Meta gives you.

當點擊驗證並保存時,出現此錯誤:回調 URL 或驗證令牌無法驗證。請驗證提供的信息或稍後重試。

@JAYESH_PATEL1 在瀏覽器中開啟你的回呼 URL,並附加以下內容:

?hub.mode=subscribe&hub.verify_token=mytoken123&hub.challenge=12345

返回的內容會告訴你原因:

  1. 顯示 12345,端點正常,只需點擊「驗證」並再次儲存。
  2. 顯示類似 {“message”:“Workflow was started”} 的 JSON,你使用的是普通 Webhook 節點。Meta 需要將 hub.challenge 以純文字形式回傳,因此請切換到 WhatsApp Trigger 節點,或設定「使用回應 Webhook 節點回應」,並將 {{ $json.query[‘hub.challenge’] }} 作為文字返回。
  3. 顯示 404 或 webhook 未註冊,工作流程未啟用。

紅色未發佈應用程式橫幅無關,它只會影響即時訊息傳遞,不會影響驗證。