WhatsApp¶
Scope: standalone Python Runtime. For Desktop operations, see the Desktop guide.
Connect Echo Agent via WhatsApp Business API.
Overview¶
The WhatsApp channel uses Meta's WhatsApp Business API (Cloud API) and receives messages via Webhook.
Configuration¶
channels:
whatsapp:
enabled: true
phoneNumberId: "your-phone-number-id"
accessToken: "your-access-token"
appSecret: "your-meta-app-secret"
verifyToken: "your-verify-token"
webhookPath: "/whatsapp"
host: "0.0.0.0"
port: 8085
Capabilities¶
| Capability | Supported |
|---|---|
| Edit messages | ❌ |
| Reactions | ❌ |
| File send | ✅ |
| Realtime | ✅ |
| Group chat | ✅ |
Setup¶
- Create an app at Meta for Developers
- Add WhatsApp product
- Get Phone Number ID and Access Token
- Configure Webhook URL:
https://your-domain/whatsapp - Set Verify Token to match your config
- Subscribe to
messagesevents
Both verifyToken (subscription setup) and appSecret (POST HMAC authentication) are required. Missing credentials fail channel startup; unauthenticated callbacks cannot enter Runtime. Admission failure returns 503, and a native redelivery retains its server event identity.
Local files are uploaded first and sent by the returned media ID; HTTP(S) media can use links. Text and attachments share durable part receipts. Server errors, transport failures and missing message IDs remain unknown outcomes, with automatic replay withheld until the platform result is resolved in Dashboard delivery recovery.