Hello community,
I’m facing an issue with how N8N handles webhooks when using the WhatsApp Business API.
In my setup, I have a custom application that receives all webhooks from the Meta Developers platform. The logic in my application is as follows:
- If a message comes from Phone Number 1, it processes the message with a custom flow in my application.
- If a message comes from Phone Number 2, it forwards the webhook to the REST webhook URL of a workflow in N8N for automated processing.
However, I’ve noticed that whenever the N8N workflow is activated or deactivated, it overwrites the webhook configuration in the Meta Developers portal. This causes the webhook URL to point directly to N8N instead of my custom application, breaking my intended flow.
After investigating, I found this thread:
https://community.n8n.io/t/facebook-webhooks-get-unsubcribed-after-first-webhook-recieved/6671/27.
It seems this behavior is tied to how N8N manages webhooks internally. Is there a way to prevent N8N from automatically overwriting the webhook configuration in Meta Developers while still allowing the workflow to process forwarded requests? Or perhaps there’s a workaround that ensures my custom application’s webhook URL remains intact?
Context:
n8n version: 1.74.1
Database (default: SQLite): PostgreSQL
n8n EXECUTIONS_PROCESS setting (default: own, main): own
Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
Operating system: Ubuntu 20.04 LTS (GCP VM)
Thanks in advance for any advice or solutions!