Whatsapp Business Trigger not working

Describe the problem/error/question

Whatsapp Trigger not working

What is the error message (if any)?

Trigger is configured as in Nate Herk´s Guide described. But receive no Message

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: latest stable
  • Database (default: SQLite): ?
  • n8n EXECUTIONS_PROCESS setting (default: own, main): ?
  • Running n8n via (Docker, npm, n8n cloud, desktop app): hostinger
  • Operating system: Ubuntu

Did you activate the workflow and use the production URL?

yes. the flow is activated.
But what you mean with Production URL?
Guide from Nate Herk says nothing about webhook´s? :frowning:

My bad, you don’t have to configure webhooks for WhatsApp. Is the credential connection successful?

yes. Credentials are green

WhatsApp Business activation is a nightmare.

  1. Check line by line the credential configuration here : WhatsApp Business Cloud credentials | n8n Docs - in particular verify you set the corrects IDs in the fields.
  2. activate your workflow
  3. go to Meta developper console and check if the webhook was created (should be done automatically when activating the workflow)

(I try to turn my meta console to english to make a screen capture :rofl:)

ok, I don’t find how to change language. So I’ll go with a french one. Here in configuration you should have a webhook url like https://instance name/webhook/random uuid/webhook

first. many thanks for your Help :slight_smile:

i saw the 2 Lines filled in the Configuration Tab
But now, when i execute the Workflow, n8n shows this Error:?
”Problem running workflow

*The WhatsApp App ID … already has a webhook subscription. Delete it or use another App before executing the trigger. Due to WhatsApp API limitations, you can have just one trigger per App.”

I use only 1 App in my Business Account

and i saw i could not save the Webhook on configuration tab. it shows i need to add a verification token again

Ok, now if you try to send a message to your Whatsapp number (either through the meta quick start page or through Whatsapp) and go to execution tab in n8n, you should see an execution.

This trigger is a bit tricky. Here you activated it for production so it runs as a normal execution. If you want to test it using the manual execution of n8n, you will need to de-activate the workflow and copy / paste the webhook test url (displayed in you whatsapp trigger node) to the Webhook configuration page in Meta. But the 2 modes (test and prod) can’t work simultaneously.

hhm. not receiving a message (under n8n executions) if i send it to the testnumber i received from Facebook
where can i find the verification token?

It’s whatever you want. Could be used on you side to check if the webhook is indeed coming from Meta and prevent malicious webhooks on your API.
Is messages activated on this page ?

i just typed in something as token. but it´s not accepted

messages is activated

grafik

If you could help me get the trigger working, that would make me very very happy :slightly_smiling_face:

Oh, I think I remember. To validate the webhook for test purpose you need it to return a specific payload for the first call to validate your endoint. See here : Getting Started - Webhooks from Meta - Documentation - Meta for Developers
The hub.challenge data passed in the webhook should be returned in the response.

It’s managed automatically by n8n when activating the workflow for production.

ok. that means if i activate the workflow it´s automated send to facebook as production url and token?

Yes, when you activate the worfklow the webhook in Facebook is updated to match production url.

understand

do you have another idea why the trigger doesn´t receive any messages?

Did you manage to activate the Callback on Meta ? When you try to save the url, do you get the webhook on n8n side ? If not, it might also be an issue on your instance configuration.

after activate the flow, the callback url is written in the Field callback url “App-Whatsapp-Configuration”

for verify token i set WEBHOOK_VERIFY_TOKEN=0815 in the Docker Env

and set the field Verify Token on Facbook to 0815
than i saved this

and then it springs to this site