A community node to send and receive WhatsApp from n8n (QR code based, so read the caveats)

Disclosure: I work on the ZapZap API, which this node talks to.

I needed WhatsApp inside n8n for small businesses that cannot go through the official Business Platform approval flow, so I built a community node: n8n-nodes-zapzap (MIT).

What it does

  • ZapZap node: send text, media, polls, buttons and lists, location and contacts, react to messages, create/list/get instances and get the QR code.
  • ZapZap Trigger: starts a workflow on incoming WhatsApp messages. It registers its URL on the instance when you activate the workflow and removes it when you deactivate. Deliveries are signed (HMAC-SHA256 with timestamp) and the node verifies the signature.
  • 7 importable templates: auto reply, form to WhatsApp, daily reminder, poll after purchase, buttons menu, instance disconnect alert, create instance and QR.

Install: Settings > Community Nodes > n8n-nodes-zapzap
Repo and templates: GitHub - zapzapapi/n8n-nodes-zapzap: n8n community node for the ZapZap API: send WhatsApp text, media, buttons, lists and polls, react to messages, manage instances and trigger workflows from incoming WhatsApp events. · GitHub

Caveats, plainly

  • It uses a QR code session, not the official API. WhatsApp can restrict numbers that send unwanted or bulk messages. Use it for people who expect to hear from you. If you cannot afford to lose the number, use the official WhatsApp Business Platform.
  • It needs a ZapZap account with balance. Creating an instance is billed.
  • It is not verified by n8n, so it only installs on self-hosted for now.
  • I have not tested it on every n8n version and I would like to hear what breaks.

Feedback I am looking for: missing operations, trigger edge cases, and anything in the credential flow that confuses you.

1 Like

Curious how the trigger handles a reconnect. If the QR session drops and the instance gets a new session, does the node re-register its URL automatically, or does the workflow need to be deactivated and reactivated? Same question for duplicate deliveries from a retried webhook, since the signature covers a timestamp but I don’t see dedup mentioned. Also, on instance creation being billed, what happens if the create step succeeds but the QR fetch fails, is there any retry or cleanup path, or does that leave a paid instance sitting idle?

Thanks for the careful read, William. Taking your three points in order.

1. Reconnect. The webhook registration lives on the ZapZap instance, not on the QR session, and it is kept when the same instance is re-scanned. So you do not need to deactivate and reactivate the workflow. The node only registers on activation and removes the registration on deactivation. If you want to know when a session drops, add the Connection event to the trigger. One caveat: if you delete the instance and create a new one, that is a new instance ID, so you pick it in the trigger and reactivate.

2. Duplicates. There is dedup. “Skip Repeated Deliveries” is on by default and compares delivery_id, which stays the same across ZapZap retries (backoff of 30s, 2min, 10min and 1h). It keeps the last 500 IDs in workflow static data, so it is a bounded window, and it does not persist in test executions. Where a double run is costly, also dedupe on messageId downstream (it is in the quick fields). I will make this more visible in the README.

3. Create, then QR fails. Two cases. If the provider call fails during creation, ZapZap refunds the charge and removes the instance automatically. If creation succeeds and only the QR fetch fails, the node does not retry or clean up: the instance stays as a valid pending one that you can connect later (run Get QR Code again) or delete. So yes, it can sit there already charged until you act. A retry on Get QR Code is a fair gap and worth adding.

A correction on point 3, since I answered it too quickly. Get QR Code already retried transient read errors (429, 502/503/504 and network errors). What it did not retry was the 409 that ZapZap returns while the QR code is still being generated, which is exactly what you can hit right after creating an instance. That is now handled in the repo: it waits and asks again up to 3 times (version 0.1.4, the npm release is still pending), and a 409 on any other call is still treated as a real conflict.

The READMEs now also cover the three things you asked about: what happens on reconnect, how repeated deliveries are skipped (last 500 delivery IDs, so also deduplicate on messageId when a double run is costly), and what to do when Create succeeds but the QR still fails (the instance already exists and was charged: run Get QR Code again or delete it, do not run Create twice).

Hi @orodrigodamazio,

This is a great contribution. I recently saw a few Upwork clients looking for simple WhatsApp survey bots and appointment reminders, but they were getting stuck on the official Meta Business API approval process. This node is a perfect solution for those smaller use cases.

Regarding the caveats you mentioned: Do you have any recommendations for handling reconnection if the phone loses internet and the QR session drops? Does the ZapZap API automatically reconnect, or does the n8n trigger fail?

Thanks for building this!