WhatsApp Business Cloud API

WhatsApp Business Cloud API

Send WhatsApp messages (text, templates, images, audio/voice notes, video, documents, location, interactive buttons) from a WhatsApp Business account using Meta's Cloud API. Free tier of 1000 service conversations per month per business account.

7 天免费 · 无需信用卡 · EU 托管

问 WhatsApp 任何事

通过 AnythingMCP 对 WhatsApp Business Cloud API 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。

在 Cloud 上安装 WhatsApp
WhatsApp Business Cloud API · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

2 分钟设置

  1. 1在 cloud.anythingmcp.com 开始免费试用。
  2. 2在连接器商店点击 WhatsApp Business Cloud API。提示时粘贴凭据。
  3. 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
立即安装 WhatsApp Business Cloud API

WhatsApp 指南

面向主流 AI 客户端的逐步设置。

配置 WhatsApp Business Cloud API

直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。

This connector uses Meta's WhatsApp Business Cloud API (Graph API v22.0).

Setup:

  1. Go to https://developers.facebook.com/ → create or pick an App → add the WhatsApp product.
  2. Under WhatsApp → API Setup, you find: a temporary 24h access token (for testing), the test Phone Number ID, and the WhatsApp Business Account ID (WABA ID).
  3. For production, generate a permanent System User access token at Meta Business Suite → Business Settings → System Users → add user → assign the WhatsApp Business Account → generate token with whatsapp_business_messaging and whatsapp_business_management permissions.
  4. Paste the token as WHATSAPP_ACCESS_TOKEN and the WABA ID as WHATSAPP_BUSINESS_ACCOUNT_ID.

Phone Number ID: every business account has one or more sending phone numbers, each identified by a phoneNumberId. Call whatsapp_list_phone_numbers once after setup to discover the IDs available on your WABA. Every send tool requires phoneNumberId — the connector does NOT auto-resolve a default, you must pass it explicitly on each call.

Recipient format: the to field is the recipient's phone number in international format without the + sign, country code first (e.g. 15551234567 for the US, 4915151234567 for Germany).

Templates vs free-form text:

  • Outside the 24-hour customer service window, you can ONLY send pre-approved template messages (whatsapp_send_template_message). Templates must be created and approved in Meta Business Suite before they can be used.
  • Inside the 24-hour window (i.e. the user has messaged your number in the last 24h), you can send free-form text, media, interactive messages, location, etc.

Sending media (image / audio / voice / video / document): WhatsApp accepts media in two ways:

  1. By public URL (recommended on AnythingMCP): use the per-type tools (whatsapp_send_image, whatsapp_send_audio, whatsapp_send_video, whatsapp_send_document) and pass link = a publicly accessible HTTPS URL. The URL must be reachable from Meta's servers and respect WhatsApp size limits (image 5 MB, audio/voice 16 MB, video 16 MB, document 100 MB).
  2. By uploaded media ID: upload a binary first to /PHONE_NUMBER_ID/media (multipart/form-data with a real file) to obtain a media_id, then reference it in a send call. AnythingMCP's REST engine does not currently orchestrate the binary upload step in a single tool — for this flow either pre-upload via your own infrastructure and pass the resulting mediaId to the per-type send tools, or stick to the URL-based path above.

Voice notes specifically: use whatsapp_send_audio with an OGG-Opus or AMR file. WhatsApp renders OGG-Opus as a true voice message (waveform + play button) in the client.

Cost / quota: WhatsApp pricing is per conversation (24-hour session), not per message. Marketing, utility and authentication conversations are priced differently per country — see https://developers.facebook.com/docs/whatsapp/pricing/.

Inbound messages (webhook): this connector does NOT receive inbound messages. Meta delivers them via a webhook you must host yourself; AnythingMCP's current architecture is request/response only. If you need a chatbot that replies to user messages, host a webhook receiver separately and use this connector for the outbound side. Use whatsapp_mark_message_as_read to send read receipts for messages your webhook has processed.

你的 AI 距离 WhatsApp Business Cloud API 仅两次点击。

安装连接器、粘贴凭据、向 AI 提问。7 天免费,无需信用卡。