[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-a0e49fcb-1efd-4ec2-af15-5825e8837dde":3,"$fsdI_3QzRxswzE-2rPlpHi4WcuT40wFIZ0KsMqTspAnI":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"a0e49fcb-1efd-4ec2-af15-5825e8837dde","whatsapp-automation","通过Rube MCP（Composio）自动化WhatsApp Business任务：发送消息、管理模板、上传媒体和处理联系人。始终首先搜索当前架构的工具。","cat_prod_automation","mod_productivity","sickn33,productivity","---\nname: whatsapp-automation\ndescription: \"Automate WhatsApp Business tasks via Rube MCP (Composio): send messages, manage templates, upload media, and handle contacts. Always search tools first for current schemas.\"\nrisk: unknown\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# WhatsApp Business Automation via Rube MCP\n\nAutomate WhatsApp Business operations through Composio's WhatsApp toolkit via Rube MCP.\n\n## Prerequisites\n\n- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)\n- Active WhatsApp connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `whatsapp`\n- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas\n- WhatsApp Business API account required (not regular WhatsApp)\n\n## Setup\n\n**Get Rube MCP**: Add `https:\u002F\u002Frube.app\u002Fmcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.\n\n\n1. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds\n2. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `whatsapp`\n3. If connection is not ACTIVE, follow the returned auth link to complete WhatsApp Business setup\n4. Confirm connection status shows ACTIVE before running any workflows\n\n## Core Workflows\n\n### 1. Send a Text Message\n\n**When to use**: User wants to send a text message to a WhatsApp contact\n\n**Tool sequence**:\n1. `WHATSAPP_GET_PHONE_NUMBERS` - List available business phone numbers [Prerequisite]\n2. `WHATSAPP_SEND_MESSAGE` - Send a text message [Required]\n\n**Key parameters**:\n- `to`: Recipient phone number in international format (e.g., '+14155551234')\n- `body`: Message text content\n- `phone_number_id`: Business phone number ID to send from\n\n**Pitfalls**:\n- Phone numbers must be in international E.164 format with country code\n- Messages outside the 24-hour window require approved templates\n- The 24-hour window starts when the customer last messaged you\n- Business-initiated conversations require template messages first\n\n### 2. Send Template Messages\n\n**When to use**: User wants to send pre-approved template messages for outbound communication\n\n**Tool sequence**:\n1. `WHATSAPP_GET_MESSAGE_TEMPLATES` - List available templates [Prerequisite]\n2. `WHATSAPP_GET_TEMPLATE_STATUS` - Check template approval status [Optional]\n3. `WHATSAPP_SEND_TEMPLATE_MESSAGE` - Send the template message [Required]\n\n**Key parameters**:\n- `template_name`: Name of the approved template\n- `language_code`: Template language (e.g., 'en_US')\n- `to`: Recipient phone number\n- `components`: Template variable values and parameters\n\n**Pitfalls**:\n- Templates must be approved by Meta before use\n- Template variables must match the expected count and format\n- Sending unapproved or rejected templates returns errors\n- Language code must match an approved translation of the template\n\n### 3. Send Media Messages\n\n**When to use**: User wants to send images, documents, or other media\n\n**Tool sequence**:\n1. `WHATSAPP_UPLOAD_MEDIA` - Upload media to WhatsApp servers [Required]\n2. `WHATSAPP_SEND_MEDIA_BY_ID` - Send media using the uploaded media ID [Required]\n   OR\n3. `WHATSAPP_SEND_MEDIA` - Send media using a public URL [Alternative]\n\n**Key parameters**:\n- `media_url`: Public URL of the media (for SEND_MEDIA)\n- `media_id`: ID from upload response (for SEND_MEDIA_BY_ID)\n- `type`: Media type ('image', 'document', 'audio', 'video', 'sticker')\n- `caption`: Optional caption for the media\n\n**Pitfalls**:\n- Uploaded media IDs are temporary and expire after a period\n- Media size limits vary by type (images: 5MB, videos: 16MB, documents: 100MB)\n- Supported formats: images (JPEG, PNG), videos (MP4, 3GPP), documents (PDF, etc.)\n- SEND_MEDIA requires a publicly accessible HTTPS URL\n\n### 4. Reply to Messages\n\n**When to use**: User wants to reply to an incoming WhatsApp message\n\n**Tool sequence**:\n1. `WHATSAPP_SEND_REPLY` - Send a reply to a specific message [Required]\n\n**Key parameters**:\n- `message_id`: ID of the message being replied to\n- `to`: Recipient phone number\n- `body`: Reply text content\n\n**Pitfalls**:\n- message_id must be from a message received within the 24-hour window\n- Replies appear as quoted messages in the conversation\n- The original message must still exist (not deleted) for the quote to display\n\n### 5. Manage Business Profile and Templates\n\n**When to use**: User wants to view or manage their WhatsApp Business profile\n\n**Tool sequence**:\n1. `WHATSAPP_GET_BUSINESS_PROFILE` - Get business profile details [Optional]\n2. `WHATSAPP_GET_PHONE_NUMBERS` - List registered phone numbers [Optional]\n3. `WHATSAPP_GET_PHONE_NUMBER` - Get details for a specific number [Optional]\n4. `WHATSAPP_CREATE_MESSAGE_TEMPLATE` - Create a new template [Optional]\n5. `WHATSAPP_GET_MESSAGE_TEMPLATES` - List all templates [Optional]\n\n**Key parameters**:\n- `phone_number_id`: Business phone number ID\n- `template_name`: Name for the new template\n- `category`: Template category (MARKETING, UTILITY, AUTHENTICATION)\n- `language`: Template language code\n\n**Pitfalls**:\n- New templates require Meta review before they can be used\n- Template names must be lowercase with underscores (no spaces)\n- Category affects pricing and approval criteria\n- Templates have specific formatting requirements for headers, body, and buttons\n\n### 6. Share Contacts\n\n**When to use**: User wants to send contact information via WhatsApp\n\n**Tool sequence**:\n1. `WHATSAPP_SEND_CONTACTS` - Send contact cards [Required]\n\n**Key parameters**:\n- `to`: Recipient phone number\n- `contacts`: Array of contact objects with name, phone, email details\n\n**Pitfalls**:\n- Contact objects must follow the WhatsApp Business API contact schema\n- At least a name field is required for each contact\n- Phone numbers in contacts should include country codes\n\n## Common Patterns\n\n### 24-Hour Messaging Window\n\n- Customers must message you first to open a conversation window\n- Within 24 hours of their last message, you can send free-form messages\n- After 24 hours, only approved template messages can be sent\n- Template messages can re-open the conversation window\n\n### Phone Number Resolution\n\n```\n1. Call WHATSAPP_GET_PHONE_NUMBERS\n2. Extract phone_number_id for your business number\n3. Use phone_number_id in all send operations\n```\n\n### Media Upload Flow\n\n```\n1. Call WHATSAPP_UPLOAD_MEDIA with the file\n2. Extract media_id from response\n3. Call WHATSAPP_SEND_MEDIA_BY_ID with media_id\n4. OR use WHATSAPP_SEND_MEDIA with a public URL directly\n```\n\n## Known Pitfalls\n\n**Phone Number Format**:\n- Always use E.164 format: +[country code][number] (e.g., '+14155551234')\n- Do not include dashes, spaces, or parentheses\n- Country code is required; local numbers without it will fail\n\n**Messaging Restrictions**:\n- Business-initiated messages require templates outside the 24-hour window\n- Template messages cost money per conversation\n- Rate limits apply per phone number and per account\n\n**Media Handling**:\n- Uploaded media expires; use promptly after upload\n- Media URLs must be publicly accessible HTTPS\n- Stickers have specific requirements (WebP format, 512x512 pixels)\n\n**Template Management**:\n- Template review can take up to 24 hours\n- Rejected templates need to be fixed and resubmitted\n- Template variables use double curly braces: {{1}}, {{2}}, etc.\n\n## Quick Reference\n\n| Task | Tool Slug | Key Params |\n|------|-----------|------------|\n| Send message | WHATSAPP_SEND_MESSAGE | to, body |\n| Send template | WHATSAPP_SEND_TEMPLATE_MESSAGE | template_name, to, language_code |\n| Upload media | WHATSAPP_UPLOAD_MEDIA | (file params) |\n| Send media by ID | WHATSAPP_SEND_MEDIA_BY_ID | media_id, to, type |\n| Send media by URL | WHATSAPP_SEND_MEDIA | media_url, to, type |\n| Reply to message | WHATSAPP_SEND_REPLY | message_id, to, body |\n| Send contacts | WHATSAPP_SEND_CONTACTS | to, contacts |\n| Get media | WHATSAPP_GET_MEDIA | media_id |\n| List phone numbers | WHATSAPP_GET_PHONE_NUMBERS | (none) |\n| Get phone number | WHATSAPP_GET_PHONE_NUMBER | phone_number_id |\n| Get business profile | WHATSAPP_GET_BUSINESS_PROFILE | phone_number_id |\n| Create template | WHATSAPP_CREATE_MESSAGE_TEMPLATE | template_name, category, language |\n| List templates | WHATSAPP_GET_MESSAGE_TEMPLATES | (none) |\n| Check template status | WHATSAPP_GET_TEMPLATE_STATUS | template_id |\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,167,1930,"2026-05-16 13:46:58",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"效率工具","productivity","mdi-lightning-bolt-outline","文档处理、数据分析、自动化工作流",4,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"自动化","automation","mdi-robot-outline","工作流自动化、批处理",3,101,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"9797054e-bc06-4477-804c-a7ff60744335","1.0.0","whatsapp-automation.zip",3304,"uploads\u002Fskills\u002Fa0e49fcb-1efd-4ec2-af15-5825e8837dde\u002Fwhatsapp-automation.zip","8557ce5fa4f1b88bb904428171a1ebca88c63d8a48f68603e110a3550d22f948","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":8645}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]