whatsapp-automation
它能做什么
这个工具可以自动化 WhatsApp Business 上的任务。你可以发送文字消息、媒体文件(照片、文档),使用预先批准的模板,还可以管理联系人。
适用场景
- ✓给客户发送文字消息。
- ✓给某人发送照片或文档。
- ✓回复你收到的消息。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/whatsapp-automation/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“给 +14155551234 发送一条文字消息,内容是“你好,有什么可以帮你的?””
每周 5 个新技能,1 分钟读完。
工作原理
工具会连接你的 WhatsApp Business 账号,并使用特定命令发送消息、媒体文件,或回复对话。你需要先设置好 Business API 账号。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
WhatsApp Business Automation via Rube MCP
Automate WhatsApp Business operations through Composio's WhatsApp toolkit via Rube MCP.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active WhatsApp connection via
RUBE_MANAGE_CONNECTIONSwith toolkitwhatsapp - Always call
RUBE_SEARCH_TOOLSfirst to get current tool schemas - WhatsApp Business API account required (not regular WhatsApp)
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLSresponds - Call
RUBE_MANAGE_CONNECTIONSwith toolkitwhatsapp - If connection is not ACTIVE, follow the returned auth link to complete WhatsApp Business setup
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Send a Text Message
When to use: User wants to send a text message to a WhatsApp contact
Tool sequence:
WHATSAPP_GET_PHONE_NUMBERS- List available business phone numbers [Prerequisite]WHATSAPP_SEND_MESSAGE- Send a text message [Required]
Key parameters:
to: Recipient phone number in international format (e.g., '+14155551234')body: Message text contentphone_number_id: Business phone number ID to send from
Pitfalls:
- Phone numbers must be in international E.164 format with country code
- Messages outside the 24-hour window require approved templates
- The 24-hour window starts when the customer last messaged you
- Business-initiated conversations require template messages first
2. Send Template Messages
When to use: User wants to send pre-approved template messages for outbound communication
Tool sequence:
WHATSAPP_GET_MESSAGE_TEMPLATES- List available templates [Prerequisite]WHATSAPP_GET_TEMPLATE_STATUS- Check template approval status [Optional]WHATSAPP_SEND_TEMPLATE_MESSAGE- Send the template message [Required]
Key parameters:
template_name: Name of the approved templatelanguage_code: Template language (e.g., 'en_US')to: Recipient phone numbercomponents: Template variable values and parameters
Pitfalls:
- Templates must be approved by Meta before use
- Template variables must match the expected count and format
- Sending unapproved or rejected templates returns errors
- Language code must match an approved translation of the template
3. Send Media Messages
When to use: User wants to send images, documents, or other media
Tool sequence:
WHATSAPP_UPLOAD_MEDIA- Upload media to WhatsApp servers [Required]WHATSAPP_SEND_MEDIA_BY_ID- Send media using the uploaded media ID [Required] ORWHATSAPP_SEND_MEDIA- Send media using a public URL [Alternative]
Key parameters:
media_url: Public URL of the media (for SEND_MEDIA)media_id: ID from upload response (for SEND_MEDIA_BY_ID)type: Media type ('image', 'document', 'audio', 'video', 'sticker')caption: Optional caption for the media
Pitfalls:
- Uploaded media IDs are temporary and expire after a period
- Media size limits vary by type (images: 5MB, videos: 16MB, documents: 100MB)
- Supported formats: images (JPEG, PNG), videos (MP4, 3GPP), documents (PDF, etc.)
- SEND_MEDIA requires a publicly accessible HTTPS URL
4. Reply to Messages
When to use: User wants to reply to an incoming WhatsApp message
Tool sequence:
WHATSAPP_SEND_REPLY- Send a reply to a specific message [Required]
Key parameters:
message_id: ID of the message being replied toto: Recipient phone numberbody: Reply text content
Pitfalls:
- message_id must be from a message received within the 24-hour window
- Replies appear as quoted messages in the conversation
- The original message must still exist (not deleted) for the quote to display
5. Manage Business Profile and Templates
When to use: User wants to view or manage their WhatsApp Business profile
Tool sequence:
WHATSAPP_GET_BUSINESS_PROFILE- Get business profile details [Optional]WHATSAPP_GET_PHONE_NUMBERS- List registered phone numbers [Optional]WHATSAPP_GET_PHONE_NUMBER- Get details for a specific number [Optional]WHATSAPP_CREATE_MESSAGE_TEMPLATE- Create a new template [Optional]WHATSAPP_GET_MESSAGE_TEMPLATES- List all templates [Optional]
Key parameters:
…
常见问题
我需要普通的 WhatsApp 号码吗?
不需要,你需要的是 WhatsApp Business API 账号,它和普通的 WhatsApp 应用不同。
可以发送任何类型的文件吗?
你可以发送图片、文档、音频、视频和贴纸,但需要遵守每种类型的大小限制。
什么是 24 小时窗口?
指客户给你发消息之后的一段时间,在此期间你可以自由发送消息。过了这段时间,就只能使用预先批准的模板发送消息。
详情
作者的原始描述
Automate WhatsApp Business tasks via Rube MCP (Composio): send messages, manage templates, upload media, and handle contacts. Always search tools first for current schemas.
热度
- GitHub 星标
- 48k
- 排名
- #6172
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。