- Twilio — Managed webhook + REST API. Paid. Production-ready. No QR login.
- Baileys — Self-hosted via Node.js sidecar. Free. Full protocol access (polls, reactions, groups, QR login).
Quick Start (Baileys)
The fastest way to get a WhatsApp agent running — no API keys, no webhooks, just scan a QR code.auth_dir and subsequent runs connect automatically.
Baileys requires Node.js >= 18 on the host. The bridge dependencies (
@whiskeysockets/baileys, ws) are auto-installed on first run via npm install.Quick Start (Twilio)
For production deployments using the Twilio WhatsApp Business API.http://your-server:8000/whatsapp/webhook.
Provider Comparison
WhatsAppInterface Parameters
Provider Selection
Twilio Parameters
Baileys Parameters
Shared Parameters
Sender access control policy. See Access Control below.
Convert Markdown formatting in agent responses to WhatsApp-compatible formatting (
**bold** to *bold*, etc.).Access Control
UseWhatsAppPolicy to control which messages reach the agent.
Policy Options
Direct message policy:
"allowlist" (only allow_from), "open" (all DMs), or "disabled" (block all DMs).Media Support
Both providers handle media, but with different capabilities:
Incoming media is converted to Definable’s
Image, Audio, Video, and File types and passed to the agent.
Voice Notes
WhatsApp voice notes work withaudio_transcriber=True:
Sending Media
Agents can send media back via tool responses:Markdown Conversion
Whenmarkdown_conversion=True (default), agent responses are automatically converted to WhatsApp-compatible formatting:
Fenced code blocks are preserved as-is (WhatsApp renders triple backticks natively).
Baileys Features
QR Login
The Baileys provider supports programmatic QR login:Polls
Reactions
Health Check
Phone Number Normalization
Phone numbers are automatically normalized to bare E.164 (digits only, no+):