连接器指南阅读约 2 分钟14 个 MCP 工具7 种语言

将 WhatsApp Business MCP 连接到 ChatGPT

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

HC作者:HelpCode 团队更新于 2 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

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.

个工具

14

区域

INTL

类别

即时通讯

身份验证

Bearer Token

所需环境变量

WHATSAPP_ACCESS_TOKENWHATSAPP_BUSINESS_ACCOUNT_ID
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

摘要

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

引导式设置

2 分钟将 WhatsApp Business Cloud API 连接到 ChatGPT

开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 WhatsApp Business Cloud API,再把你的 MCP URL 添加到 ChatGPT。无需代码,也无需自行运行服务器。

无需信用卡 · 7 天试用 · 提供自托管方案

ChatGPT 插件目录中的 AnythingMCP 插件可在 AnythingMCP Cloud 上回答有关企业数据库的问题(PostgreSQL、MySQL、SQL Server、Oracle、SAP HANA、SQLite、MongoDB,只读):打开插件页面 (在新标签页中打开)并点击 Install plugin。其他所有连接器都以自定义 MCP 服务器的方式添加到 ChatGPT,使用你的 AnythingMCP MCP URL。

试试这样问

WhatsApp Business Cloud API 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

WhatsApp Business Cloud API · 通过 MCP 实时
分享
Opus 4.7

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

💡 无需安装?直接使用 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 在 Plugins 页面把 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 / Business / 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

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

打开 http://localhost:3000/connectors/store,点击 WhatsApp Business,填入令牌 + WABA ID,点击 Install。

步骤 3 — 在 ChatGPT 中添加连接器(无代码,4 次点击)

你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(https://cloud.anythingmcp.com/mcp/…)。本指南中出现 YOUR_SERVER_ID 的地方都用它替换。

  1. 前往 chatgpt.com/plugins,点击 Add,然后选择 Add custom MCP server。
  2. 填写名称,例如 Name: WhatsApp Business。
  3. 在 Connection 下的 Server URL 中填入 https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID,Authentication 保持为 OAuth。
  4. 选择 I understand and want to continue,然后点击 Create as a plugin。ChatGPT 提示时,登录 AnythingMCP 并允许访问。
  5. 在个人插件中安装这个新插件,然后在对话中输入 @ 并选择它。

所有 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 吗? OpenAI 只为付费套餐提供自定义 MCP 服务器的说明,Free 套餐不在其列。

语音消息? 使用 whatsapp_send_audio,文件为托管在公开 HTTPS URL 上的 OGG-Opus — WhatsApp 会显示为真正的语音消息。

ChatGPT 能接收入站 WhatsApp 吗? 通过此连接器不能 — Meta 通过 webhook 投递入站(MCP request/response 模型之外)。在 AnythingMCP 旁边运行一个小型 webhook 接收器处理入站。

下一步

这份指南对你有帮助吗?

2 分钟将 WhatsApp Business Cloud API 连接到 ChatGPT

开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 WhatsApp Business Cloud API,再把你的 MCP URL 添加到 ChatGPT。无需代码,也无需自行运行服务器。

相关指南