Skip to content

WhatsApp

WhatsApp is one of the most popular messaging platforms worldwide. With Selu’s managed WhatsApp bridge, you can chat with your agents directly from WhatsApp on any device — no extra apps needed.

Selu runs a managed bridge container that connects to WhatsApp using the Baileys library (the same technology behind WhatsApp Web). The bridge:

  • Pairs with your WhatsApp account via QR code
  • Receives messages from selected chats
  • Forwards agent responses back to WhatsApp
  • Maintains the connection automatically

All WhatsApp bridge management is handled by Selu — no manual Docker commands or configuration files needed.

The Pipes overview showing active pipes with their connection status.

  1. Open Selu and go to Pipes.
  2. Click Add Pipe and select WhatsApp.
  3. Give your pipe a descriptive name like “Personal WhatsApp” or “Team WhatsApp”.
  4. Optionally, add an authorization header if your setup requires it (most users can leave this blank).
  5. Click Set Up WhatsApp.

Selu will automatically download and start the WhatsApp bridge container in the background. This may take a minute or two on first setup.

  1. After setup completes, you’ll see a QR code on the WhatsApp detail page.
  2. Open WhatsApp on your phone.
  3. Go to Settings → Linked Devices (or Settings → WhatsApp Web on older versions).
  4. Tap Link a Device and scan the QR code.
  5. Wait for the connection status to show “Connected”.

By default, your WhatsApp pipe won’t respond to any messages — you need to explicitly allow specific chats for security.

  1. On the WhatsApp detail page, scroll to “Who can use this pipe?”.
  2. Use the chat search to find conversations from your WhatsApp account.
  3. Select a chat and choose which Selu user it should map to.
  4. Click Add person.

Send a message in any of your allowed WhatsApp chats. Your Selu agent will receive the message and reply directly in WhatsApp — just like texting a friend.

You can message yourself on WhatsApp to create a private chat with your agents. This is especially useful for personal assistants or quick queries.

Just like Telegram and iMessage, WhatsApp supports tool approvals when your agents need permission to act:

  1. Agent needs to use a tool with Ask policy
  2. You receive a WhatsApp message describing the action
  3. Reply with “yes”, “approve”, “ok” or similar to allow it
  4. Reply with “no”, “deny”, “cancel” to block it

Since WhatsApp doesn’t have built-in reply threading, Selu matches your response automatically when there’s only one pending approval. If multiple tools need approval at once, respond to each one in order.

Only explicitly allowed chats can reach your agents. Even if someone has your phone number, they can’t interact with Selu unless you’ve added their chat to the allowlist.

The WhatsApp detail page shows:

  • Bridge status — Whether the bridge container is running
  • Phone connection — Connection state with WhatsApp servers
  • WhatsApp account — Which phone number is connected
  • Allowed chats — Who can message your agents

If WhatsApp messages aren’t reaching Selu:

  1. Check the bridge status — Make sure it shows “Ready” on the detail page.
  2. Verify phone connection — The connection state should be “Connected” or “Open”.
  3. Confirm chat allowlist — The sender must be in your allowed chats list.
  4. Test with a simple message — Try “hello” first before complex requests.

If the connection becomes unstable:

  1. Go to the WhatsApp detail page.
  2. Note the current connection state.
  3. If it shows “Disconnected” or has errors, try refreshing the page.
  4. If problems persist, you may need to re-pair by scanning a new QR code.

To disconnect WhatsApp:

  1. Go to Pipes and find your WhatsApp pipe.
  2. Open the detail page.
  3. Scroll to the bottom and click Remove WhatsApp pipe.
  4. Confirm the removal.

This will:

  • Stop the bridge container
  • Clear your WhatsApp login session
  • Remove all allowed chat mappings
  • Disable message routing from WhatsApp
  • One pipe per instance — Selu currently supports one active WhatsApp pipe at a time
  • Phone dependency — Your phone must have internet access to maintain the WhatsApp Web session
  • Rate limits — WhatsApp may throttle or block accounts that send too many automated messages
  • Group chat complexity — Agent responses in group chats may not always thread properly with the original message

If you’re running Selu behind additional security layers, you can configure the bridge to include custom authorization headers when connecting back to Selu:

  1. During setup, fill in the “Authorization Header” field
  2. Include the full header value (e.g., Bearer your-secret-token)
  3. This header will be sent with all messages from the bridge to Selu

The WhatsApp bridge automatically detects your Docker network configuration. If you’re using a custom Docker setup:

  • Bridge port — The bridge listens on port 3200 inside its container
  • Network discovery — Selu detects your Docker Compose network automatically
  • Fallback mode — If network detection fails, the bridge uses host networking with port mapping

WhatsApp login sessions are stored in a Docker volume called selu-whatsapp-bridge-data. This volume contains:

  • WhatsApp authentication credentials
  • Session state and encryption keys
  • Chat metadata and message history

If the WhatsApp bridge fails to start:

  1. Check Docker — Ensure Docker is running and accessible to Selu
  2. Verify permissions — The Selu container needs access to the Docker socket
  3. Check system resources — The bridge needs at least 512MB of RAM
  4. Review logs — Check the Selu logs for bridge startup errors

If you don’t see a QR code on the detail page:

  1. Wait a moment — The bridge may still be starting up
  2. Refresh the page — QR codes are generated dynamically
  3. Check bridge status — Ensure the bridge shows as “Running”
  4. Restart if needed — Remove and recreate the pipe if the bridge is stuck

If WhatsApp messages aren’t being processed:

  1. Check allowed chats — Verify the sender is in your allowlist
  2. Confirm pipe status — The pipe must be active and connected
  3. Test agent response — Try messaging from the web chat first
  4. Review message format — Very long messages or media files may be filtered

If WhatsApp responses are slow:

  1. Check system load — Multiple agents or complex tasks can cause delays
  2. Verify network — Poor internet connectivity affects both directions
  3. Monitor bridge resources — The bridge may need more memory for busy accounts
  4. Review agent complexity — Simpler agents typically respond faster