Skip to content
API Blog

WhatsApp

Lobu’s WhatsApp adapter supports direct chats, group controls, and media-aware workflows. Under the hood, Lobu uses the WhatsApp Business Cloud API for message delivery and media handling.

  1. Obtain a WhatsApp Business access token, phone number ID, app secret, and verify token from the Meta Developer Portal.
  2. Use Agents → Connections in the web app to add WhatsApp, or declare a whatsapp connection in lobu.config.ts.
  3. Configure the webhook URL in the Meta Developer Portal to point to your gateway’s webhook endpoint.
  4. Start the stack with lobu run — the bot starts handling messages on the configured phone number.
FieldRequiredTypeDescription
accessTokenNostringSystem User access token for WhatsApp Cloud API.
phoneNumberIdNostringWhatsApp Business phone number ID.
appSecretNostringMeta App Secret for webhook HMAC-SHA256 signature verification.
verifyTokenNostringVerify token for webhook challenge-response.
apiVersionNostringMeta Graph API version (default: v21.0).
userNameNostringBot display name.
  • Cloud API integration via the WhatsApp Business Platform.
  • Group controls with allow/deny behavior and optional mention requirement.
  • Typing indicator status while responses are being generated.
  • Inbound media handling for documents, images, audio, and voice notes received from users.
  • Conversation history window with configurable retention limits.
  • Personal assistant over WhatsApp chats.
  • Group assistant that only responds when mentioned.
  • Media-aware workflows (voice notes, files, images).