Connector guide2-minute read14 MCP toolsEnglish · Deutsch · Italiano

如何将 WhatsApp Business 连接到 ChatGPT — 通过 MCP 从 ChatGPT 发送 WhatsApp

使用 AnythingMCP 将 Meta 的 WhatsApp Business Cloud API 连接到 ChatGPT(Plus / Pro / Team / Enterprise)。从 ChatGPT 以自然语言发送文本、模板、媒体、语音消息和交互按钮。

HCBy HelpCode teamUpdated 2 min read Open source on GitHub

No credit card · 7-day trial · Self-host alternative available

WhatsApp Business Cloud API

MCP connector

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.

Tools

14

Region

INTL

Category

Messaging

Authentication

Required env vars

WHATSAPP_ACCESS_TOKENWHATSAPP_BUSINESS_ACCOUNT_ID
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Source-available BSL-1.1
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

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.

Open Cloud

💡 无需安装?直接使用 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 凭证

  1. 打开 https://developers.facebook.com/ → 你的 App → WhatsApp → API Setup。记下 WhatsApp Business Account ID (WABA ID)。
  2. 前往 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 次点击)

  1. 打开 ChatGPT → Settings → Connectors(或点击 composer 中的 🔧 图标 → Manage connectors)。
  2. 点击 "Add custom connector"
  3. 填入:
    • Name: WhatsApp Business
    • MCP server URL: https://cloud.anythingmcp.com/mcp
    • Authentication: Bearer token → 粘贴你的 MCP API Key(来自 AnythingMCP → Profile → MCP API Keys → New Key
  4. 点击 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 接收器处理入站。

下一步

Ready to ship

Your WhatsApp agent is one click away.

Install the connector, paste the key, prompt ChatGPT. Free for 7 days, no credit card.