Skip to content

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

  1. Create an app at Meta for Developers
  2. Add WhatsApp product
  3. Get Phone Number ID and Access Token
  4. Configure Webhook URL: https://your-domain/whatsapp
  5. Set Verify Token to match your config
  6. Subscribe to messages events

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.