No install? Use cloud.anythingmcp.com directly.
Sign in, install the WhatsApp Business Cloud API in one click, paste the credentials, mint an MCP API key — done. No Docker, no git clone, no local server to run.
💡 无需安装?直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → WhatsApp Business、粘贴永久 System User 访问令牌 + WhatsApp Business Account ID、生成 MCP API Key — 完成。无 Docker、无
git clone、无本地服务器。你可以跳过下方的本地安装步骤,直接进入客户端接入章节。
将 WhatsApp Business 连接到 ChatGPT
WhatsApp Business Cloud API 是 Meta 托管的网关,用于通过程序发送 WhatsApp 消息——文本、模板、媒体、语音消息、交互按钮、位置。使用 AnythingMCP,你可以从 ChatGPT 以中文驱动一切。
ChatGPT 通过 Connectors 功能(Plus / Pro / Team / Enterprise 套餐)支持 MCP 服务器。连接后,所有 14 个 WhatsApp 工具会原生出现在 ChatGPT 工具栏中。
你能做什么
- "把『您的预约已确认,周五 18:00』发送到 +86 138 0013 8000。"
- "把
appointment_reminder模板(zh)发送到这个 CSV 中的所有号码,填入名字和日期。" - "把 https://acme.com/inv/9912.pdf 的 PDF 发送给我的客户,附加说明 'Invoice 9912'。"
- "把来自 +86 138 0013 8000 的最后入站消息标记为已读。"
前提条件
- 一个 WhatsApp Business Account (WABA),至少有一个已验证的发送号码。
- 一个具有
whatsapp_business_messaging+whatsapp_business_management权限的 永久 System User 访问令牌。 - 在本地或 cloud.anythingmcp.com 上运行的 AnythingMCP(3 分钟设置)。
- 一个 ChatGPT Plus / Pro / Team / Enterprise 账户(免费套餐不支持自定义 Connectors)。
步骤 1 — 获取 WhatsApp Business 凭证
- 打开 https://developers.facebook.com/ → 你的 App → WhatsApp → API Setup。记下 WhatsApp Business Account ID (WABA ID)。
- 前往 Meta Business Suite → Business Settings → System Users,创建 System User,分配你的 WABA,并使用
whatsapp_business_messaging+whatsapp_business_management生成新令牌。复制它 — 不会再显示。
步骤 2 — 安装 WhatsApp Business adapter
git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d
打开 http://localhost:3000/connectors/store,点击 WhatsApp Business,填入令牌 + WABA ID,点击 Install。
步骤 3 — 在 ChatGPT 中添加连接器(无代码,4 次点击)
- 打开 ChatGPT → Settings → Connectors(或点击 composer 中的 🔧 图标 → Manage connectors)。
- 点击 "Add custom connector"。
- 填入:
- Name:
WhatsApp Business - MCP server URL:
https://cloud.anythingmcp.com/mcp - Authentication: Bearer token → 粘贴你的 MCP API Key(来自 AnythingMCP → Profile → MCP API Keys → New Key)
- Name:
- 点击 Connect 授权。
所有 14 个 WhatsApp 工具现在出现在 ChatGPT 的 🔧 菜单中。
可用工具(共 14 个)
| 组 | 工具 |
|---|---|
| 发现 | whatsapp_list_phone_numbers, whatsapp_list_message_templates, whatsapp_get_message_template |
| 文本与模板 | whatsapp_send_text_message, whatsapp_send_template_message |
| 媒体(URL 或 media ID) | whatsapp_send_image, whatsapp_send_audio, whatsapp_send_video, whatsapp_send_document |
| 交互式与位置 | whatsapp_send_location, whatsapp_send_interactive_buttons |
| 已读确认与资料 | whatsapp_mark_message_as_read, whatsapp_get_business_profile, whatsapp_update_business_profile |
24 小时窗口
WhatsApp 仅允许 自由格式 消息(文本、媒体、交互式、位置)在用户最后入站消息后的 24 小时 内发送。窗口外:仅 预审核模板。adapter 的 instructions 字段把这条规则教给 ChatGPT,所以它会在需要时使用 whatsapp_send_template_message。
FAQ
ChatGPT 免费套餐能用自定义 MCP Connectors 吗? 不能。添加自定义连接器需要 Plus、Pro、Team 或 Enterprise。
语音消息?
使用 whatsapp_send_audio,文件为托管在公开 HTTPS URL 上的 OGG-Opus — WhatsApp 会显示为真正的语音消息。
ChatGPT 能接收入站 WhatsApp 吗? 通过此连接器不能 — Meta 通过 webhook 投递入站(MCP request/response 模型之外)。在 AnythingMCP 旁边运行一个小型 webhook 接收器处理入站。