
WhatsApp by QR code (legacy connection)
The Baileys WhatsApp (WhatsApp via Baileys) integration links a phone to PiGi by scanning a QR code, like WhatsApp Web. It is an older, unofficial connection that can get the number banned by WhatsApp; WhatsApp Business Cloud is the recommended route, and it takes over automatically once it is set up.
Updated 2026-10-01
Quick answers
What is Baileys WhatsApp in PiGi?
An older way of connecting WhatsApp: you link an ordinary WhatsApp phone to PiGi by scanning a QR code, the same way you link WhatsApp Web. PiGi then sends from that number. It appears on the Integrations screen as Baileys WhatsApp or WhatsApp via Baileys.
Should I connect WhatsApp by QR code?
No, not for a new number. QR pairing is not an official WhatsApp business connection, and WhatsApp can ban a number used to send automated messages this way. Set up WhatsApp Business Cloud instead, which is Meta's official route.
Can WhatsApp ban my number for this?
Yes. WhatsApp's terms forbid automated and bulk messaging outside its business products, and WhatsApp can suspend or disable an account that breaks them. A ban applies to the WhatsApp account on that number, so it affects the phone itself, not only PiGi.
I have both WhatsApp Business Cloud and a QR-paired phone. Which one sends?
WhatsApp Business Cloud, as soon as it is connected and has its access token and phone number ID saved. The QR-paired phone is then only used if WhatsApp Business Cloud is switched off or incomplete. Which provider is picked on the notification methods screen makes no difference.
Does anything still use the QR-paired phone once WhatsApp Business Cloud is set up?
Only group announcements, such as a driver's trip post to the crew group, and only if no Telegram group has been set up for them. WhatsApp Business Cloud cannot post to groups, so move those announcements to Telegram.
What happens if the phone is disconnected and nothing else is set up?
WhatsApp notifications fail until someone scans a new QR code with the phone. If you have an SMS method set up, some notifications can go by SMS instead.
How do I stop using the QR connection?
Set up WhatsApp Business Cloud and send a test, then open Phone session and click Disconnect this phone, and disconnect the integration.
What this is
The Baileys WhatsApp integration links a real phone to PiGi as a WhatsApp linked device. It needs no API keys and no paid account, which is why schools used it before PiGi supported WhatsApp Business Cloud. It does not use WhatsApp's business platform, so WhatsApp treats the traffic like a personal account sending automated messages.
Current status
- What works: a school that is already paired keeps sending booking and training notifications, chatbot replies and staff messages from that phone, as long as WhatsApp Business Cloud is not set up. Group announcements can go to a WhatsApp group.
- What to know: the connection is unofficial and can get the number banned. Every reconnect needs someone holding the phone to scan a new QR code. One phone per company.
- Recommendation: don't pair a new number by QR. Existing schools should move to WhatsApp Business Cloud.
What to use instead
WhatsApp Business Cloud is the official, recommended way to send WhatsApp from PiGi. It uses your own WhatsApp Business number through Meta's platform for business messaging, and needs message templates that Meta has approved. See Send notifications with WhatsApp Business Cloud. For crew and group announcements, use Telegram groups instead of a WhatsApp group.
If you already use the QR connection
The step-by-step screen guide is Connect WhatsApp. In short, open Settings → Communication → Integrations and click the Baileys WhatsApp tile. On its sheet:
- Phone session shows the status badge — Not connected, Disconnected, Connecting…, Scan QR code, Connected or Error — and the button that fits: Connect WhatsApp, Cancel, Disconnect this phone or Retry connection. The QR code appears here; scan it from the phone under WhatsApp's linked devices.
- Announcement group picks the WhatsApp group trip announcements go to. It is only available while the phone is connected.
- Send a test message sends one message to one number through the linked phone. Enter a Recipient phone number, for example +27 21 000 0000, and a Message, then click Send.
There is no Test connection for this integration; the status badge and a test message are the checks.
Known limitations
- Unofficial: WhatsApp can ban the number.
- Reconnecting always needs the phone and a fresh QR scan.
- One linked phone per company. Linking the same WhatsApp account elsewhere can knock PiGi's session out.
- When WhatsApp Business Cloud is set up, it takes over all individual messages automatically; you cannot choose the QR phone for some messages.