Prerequisites
- A Meta developer account and Business app with the WhatsApp product enabled
- A WhatsApp Business Account (WABA) linked to the app
- project_contributor access in AgentRuntime
Connect in AgentRuntime
AgentRuntime supports two connection paths:Embedded signup (recommended)
Open Connections
On Connections, click Connect WhatsApp in the Console.
Start embedded signup
Click Connect and complete Meta’s embedded signup flow. You authorize the app and select your business phone number.
Complete registration
The Console exchanges the OAuth code server-side and stores
access_token, business_account_id, and phone_number_id. Tokens never appear in the browser.Manual credentials
If you already have a System User token and IDs from Meta Business Manager:Gather credentials
From Meta Business Settings, collect:
- Access token — System User token with
whatsapp_business_messagingandwhatsapp_business_management - WhatsApp Business Account ID (WABA)
- Phone number ID
Embedded signup for onboarding customers outside your Business Manager requires Meta’s Tech Provider programme. Until approved, embedded signup works for accounts you administer in dev mode. Manual tokens work for production messaging on your own WABA.
What you can build
- Order updates — Shopify
get_shopify_order→send_messageorsend_template_messagewhen status changes. - Appointment reminders — Schedule workflow → template message with date/time parameters (24h+ outbound requires approved templates).
- Support handoff — Inbound webhook message → LLM draft → human_task →
send_messagereply. - Ops alerts — Workflow failure →
send_messageto on-call number with run summary.
Tools
| Tool | Description |
|---|---|
send_message | Send a text message |
send_media | Send image, audio, document, sticker, or video |
send_template_message | Send a pre-approved template with parameters |
list_phone_numbers | List phone numbers on the WABA |
list_message_templates | List message templates (optionally filter by status) |
phone_number_id override. Otherwise the connector uses the ID from your connection.
Example
Send a notification after a workflow step completes:send_template_message with an approved template.
Templates
WhatsApp requires pre-approved templates for most outbound business messaging:- Call
list_message_templatesto find an approved template name and language - Use
send_template_messagewith header, body, and button parameters
Configuration
Stored in your connection / MCP instance profile:| Key | Required | Description |
|---|---|---|
access_token | Yes | System User or exchanged OAuth token |
business_account_id | Yes | WABA ID |
phone_number_id | Recommended | Default sender phone number |
api_base | No | Default https://graph.facebook.com |
api_version | No | Default v20.0 |
Troubleshooting
| Issue | Fix |
|---|---|
401 / token errors | Regenerate System User token; update connection |
| Message not delivered (dev mode) | Add recipient as a test number in Meta API setup |
| Template rejected | Use only APPROVED templates from list_message_templates |
| Wrong sender | Pass phone_number_id explicitly or update connection default |