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.

quando clica em verificar e salvar A URL de callback ou token de verificação não pôde ser validado. Por favor, verifique as informações fornecidas ou tente novamente mais tarde. este erro ocorreu.

@JAYESH_PATEL1 abra sua URL de callback em um navegador com isto anexado:

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

O que retorna indica a causa:

  1. Mostra 12345, o endpoint está funcionando, apenas clique em Verify e salve novamente.
  2. Mostra JSON como {“message”:“Workflow was started”}, você está em um nó Webhook simples. O Meta precisa que hub.challenge seja retornado como texto simples, então alterne para o nó WhatsApp Trigger ou configure Respond to usando o nó Respond to Webhook e retorne {{ $json.query[‘hub.challenge’] }} como Text.
  3. Mostra 404 ou webhook não registrado, o workflow não está Ativo.

O banner de app não publicado em vermelho não está relacionado, isso afeta apenas a entrega de mensagens ao vivo, não a verificação.