🇬🇧 EN
🇮🇹 IT

3.5 WhatsApp Accounts

WhatsApp Accounts lets you pair one or more real WhatsApp accounts with your Flusso instance using the self-hosted Baileys gateway. Once connected, an account can be linked to a Questionnaire so that incoming WhatsApp messages are routed through it automatically.

WhatsApp Accounts settings page
Settings → WhatsApp Accounts — account cards showing connection status, paired phone number, linked questionnaire, and per-account action buttons.
Baileys vs Twilio / OpenClaw: The WhatsApp Accounts page manages only Baileys self-hosted connections. Twilio and OpenClaw are configured per questionnaire inside the questionnaire editor's WhatsApp drawer. See Questionnaires — WhatsApp Delivery for details on all three providers.

How It Works

Baileys communicates with WhatsApp using the standard multi-device protocol. When you add an account, Flusso generates a QR code. You scan the QR code with the WhatsApp app on your phone (the same way you pair WhatsApp Web), and the account becomes connected. From that point, Flusso can send and receive messages on behalf of that account.

The connection is maintained by the Baileys gateway running inside your Flusso server process. If the server restarts or the session expires, the account status changes to disconnected and you will need to reconnect it.

Account Statuses

StatusMeaning
pending The account has been added and the Baileys gateway is initialising the session. No action needed — wait a few seconds.
qr_pending A QR code has been generated and is displayed on the account card. Scan it with WhatsApp on your phone within the standard QR timeout (approximately 20 seconds).
connected The account is paired and online. Flusso can send and receive WhatsApp messages through it.
disconnected The session has ended (server restart, logout, or timeout). Click Connect to re-initiate pairing.
reconnecting Flusso is attempting to re-establish the connection automatically. If reconnection does not succeed, the status will fall back to disconnected.

Adding a WhatsApp Account

  1. Click "Add Account" The add-account dialog opens. Optionally enter a display name to help identify this account (e.g. "Support Line", "Sales Bot").
  2. Click "Connect" Flusso creates the account record and starts the Baileys session. The card briefly shows status pending.
  3. Scan the QR code After a moment the card updates to qr_pending and a QR code canvas is displayed directly on the card. Open WhatsApp on your phone, go to Settings → Linked Devices → Link a Device, and scan the QR code.
  4. Wait for confirmation The page polls every 2 seconds. Once pairing succeeds the card status changes to connected and the QR code is replaced by the linked phone number.
QR code timeout: WhatsApp QR codes expire after approximately 20 seconds. If the code expires before you scan it, click Connect on the account card to generate a fresh QR code.
WhatsApp Accounts page with Add Account button
WhatsApp Accounts page — click Add Account to create a new account. After clicking Connect, a QR code canvas appears inline on the account card for you to scan with WhatsApp.

Account Card

Each account is displayed as a card. The card shows:

Per-Account Actions

ActionDescription
Connect Initiate (or re-initiate) the Baileys session. Use when the account is disconnected or the QR code has expired. Generates a new QR code.
Disconnect Gracefully end the active session without deleting the account. The account status changes to disconnected. You can reconnect it later.
Refresh Manually poll the Baileys gateway for the latest status. The page also auto-polls every 2 seconds when any account is in pending or qr_pending state.
Delete Disconnects the session and permanently removes the account from Flusso. Any questionnaire linked to this account will lose its Baileys link and must be reconfigured.

Linking an Account to a Questionnaire

Account-to-questionnaire linking is managed from the questionnaire editor, not from this page. Once a WhatsApp account is connected, it appears in the Baileys tab of the WhatsApp configuration drawer inside the questionnaire editor.

To link:

  1. Open the questionnaire Navigate to Questionnaires, open the questionnaire you want to deliver via WhatsApp, and click the WhatsApp button in the editor top bar.
  2. Choose the Baileys tab Switch to the Baileys tab in the WhatsApp drawer.
  3. Select the connected account Choose the account from the dropdown. Only accounts with status connected are listed.
  4. Click "Save Baileys Link" The questionnaire is now linked. The account card on this page will show the questionnaire name under Linked questionnaire.
One-to-one relationship: Each WhatsApp account can be linked to at most one questionnaire at a time. Linking an account to a different questionnaire automatically removes the previous link.

Tips