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_CONNECTIONS with toolkit whatsapp
- Always call
RUBE_SEARCH_TOOLS first 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_TOOLS responds
- Call
RUBE_MANAGE_CONNECTIONS with toolkit whatsapp
- 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 content
phone_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 template
language_code: Template language (e.g., 'en_US')
to: Recipient phone number
components: 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]
OR
WHATSAPP_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 to
to: Recipient phone number
body: 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:
phone_number_id: Business phone number ID
template_name: Name for the new template
category: Template category (MARKETING, UTILITY, AUTHENTICATION)
language: Template language code
Pitfalls:
- New templates require Meta review before they can be used
- Template names must be lowercase with underscores (no spaces)
- Category affects pricing and approval criteria
- Templates have specific formatting requirements for headers, body, and buttons
6. Share Contacts
When to use: User wants to send contact information via WhatsApp
Tool sequence:
WHATSAPP_SEND_CONTACTS - Send contact cards [Required]
Key parameters:
to: Recipient phone number
contacts: Array of contact objects with name, phone, email details
Pitfalls:
- Contact objects must follow the WhatsApp Business API contact schema
- At least a name field is required for each contact
- Phone numbers in contacts should include country codes
Common Patterns
24-Hour Messaging Window
- Customers must message you first to open a conversation window
- Within 24 hours of their last message, you can send free-form messages
- After 24 hours, only approved template messages can be sent
- Template messages can re-open the conversation window
Phone Number Resolution
1. Call WHATSAPP_GET_PHONE_NUMBERS
2. Extract phone_number_id for your business number
3. Use phone_number_id in all send operations
Media Upload Flow
1. Call WHATSAPP_UPLOAD_MEDIA with the file
2. Extract media_id from response
3. Call WHATSAPP_SEND_MEDIA_BY_ID with media_id
4. OR use WHATSAPP_SEND_MEDIA with a public URL directly
Known Pitfalls
Phone Number Format:
- Always use E.164 format: +[country code][number] (e.g., '+14155551234')
- Do not include dashes, spaces, or parentheses
- Country code is required; local numbers without it will fail
Messaging Restrictions:
- Business-initiated messages require templates outside the 24-hour window
- Template messages cost money per conversation
- Rate limits apply per phone number and per account
Media Handling:
- Uploaded media expires; use promptly after upload
- Media URLs must be publicly accessible HTTPS
- Stickers have specific requirements (WebP format, 512x512 pixels)
Template Management:
- Template review can take up to 24 hours
- Rejected templates need to be fixed and resubmitted
- Template variables use double curly braces: {{1}}, {{2}}, etc.
Quick Reference
| Task |
Tool Slug |
Key Params |
| Send message |
WHATSAPP_SEND_MESSAGE |
to, body |
| Send template |
WHATSAPP_SEND_TEMPLATE_MESSAGE |
template_name, to, language_code |
| Upload media |
WHATSAPP_UPLOAD_MEDIA |
(file params) |
| Send media by ID |
WHATSAPP_SEND_MEDIA_BY_ID |
media_id, to, type |
| Send media by URL |
WHATSAPP_SEND_MEDIA |
media_url, to, type |
| Reply to message |
WHATSAPP_SEND_REPLY |
message_id, to, body |
| Send contacts |
WHATSAPP_SEND_CONTACTS |
to, contacts |
| Get media |
WHATSAPP_GET_MEDIA |
media_id |
| List phone numbers |
WHATSAPP_GET_PHONE_NUMBERS |
(none) |
| Get phone number |
WHATSAPP_GET_PHONE_NUMBER |
phone_number_id |
| Get business profile |
WHATSAPP_GET_BUSINESS_PROFILE |
phone_number_id |
| Create template |
WHATSAPP_CREATE_MESSAGE_TEMPLATE |
template_name, category, language |
| List templates |
WHATSAPP_GET_MESSAGE_TEMPLATES |
(none) |
| Check template status |
WHATSAPP_GET_TEMPLATE_STATUS |
template_id |
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Source: sickn33/agentic-awesome-skills → skills/whatsapp-automation/SKILL.md
Also appears in: sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills/skills/whatsapp-automation/SKILL.md, sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills-claude/skills/whatsapp-automation/SKILL.md
1---2name: whatsapp-automation3description: "Automate WhatsApp Business tasks via Rube MCP (Composio): send messages, manage templates, upload media, and handle contacts. Always search tools first for current schemas."4category: mcp-and-integrations5source_repo: sickn33/agentic-awesome-skills6source_path: "skills/whatsapp-automation/SKILL.md"7source_url: https://github.com/sickn33/agentic-awesome-skills/blob/HEAD/skills/whatsapp-automation/SKILL.md8metadata:9 source: https://skillmd.com/skills/sickn33/whatsapp-automation10---111213# WhatsApp Business Automation via Rube MCP1415Automate WhatsApp Business operations through Composio's WhatsApp toolkit via Rube MCP.1617## Prerequisites1819- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)20- Active WhatsApp connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `whatsapp`21- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas22- WhatsApp Business API account required (not regular WhatsApp)2324## Setup2526**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.2728291. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds302. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `whatsapp`313. If connection is not ACTIVE, follow the returned auth link to complete WhatsApp Business setup324. Confirm connection status shows ACTIVE before running any workflows3334## Core Workflows3536### 1. Send a Text Message3738**When to use**: User wants to send a text message to a WhatsApp contact3940**Tool sequence**:411. `WHATSAPP_GET_PHONE_NUMBERS` - List available business phone numbers [Prerequisite]422. `WHATSAPP_SEND_MESSAGE` - Send a text message [Required]4344**Key parameters**:45- `to`: Recipient phone number in international format (e.g., '+14155551234')46- `body`: Message text content47- `phone_number_id`: Business phone number ID to send from4849**Pitfalls**:50- Phone numbers must be in international E.164 format with country code51- Messages outside the 24-hour window require approved templates52- The 24-hour window starts when the customer last messaged you53- Business-initiated conversations require template messages first5455### 2. Send Template Messages5657**When to use**: User wants to send pre-approved template messages for outbound communication5859**Tool sequence**:601. `WHATSAPP_GET_MESSAGE_TEMPLATES` - List available templates [Prerequisite]612. `WHATSAPP_GET_TEMPLATE_STATUS` - Check template approval status [Optional]623. `WHATSAPP_SEND_TEMPLATE_MESSAGE` - Send the template message [Required]6364**Key parameters**:65- `template_name`: Name of the approved template66- `language_code`: Template language (e.g., 'en_US')67- `to`: Recipient phone number68- `components`: Template variable values and parameters6970**Pitfalls**:71- Templates must be approved by Meta before use72- Template variables must match the expected count and format73- Sending unapproved or rejected templates returns errors74- Language code must match an approved translation of the template7576### 3. Send Media Messages7778**When to use**: User wants to send images, documents, or other media7980**Tool sequence**:811. `WHATSAPP_UPLOAD_MEDIA` - Upload media to WhatsApp servers [Required]822. `WHATSAPP_SEND_MEDIA_BY_ID` - Send media using the uploaded media ID [Required]83 OR843. `WHATSAPP_SEND_MEDIA` - Send media using a public URL [Alternative]8586**Key parameters**:87- `media_url`: Public URL of the media (for SEND_MEDIA)88- `media_id`: ID from upload response (for SEND_MEDIA_BY_ID)89- `type`: Media type ('image', 'document', 'audio', 'video', 'sticker')90- `caption`: Optional caption for the media9192**Pitfalls**:93- Uploaded media IDs are temporary and expire after a period94- Media size limits vary by type (images: 5MB, videos: 16MB, documents: 100MB)95- Supported formats: images (JPEG, PNG), videos (MP4, 3GPP), documents (PDF, etc.)96- SEND_MEDIA requires a publicly accessible HTTPS URL9798### 4. Reply to Messages99100**When to use**: User wants to reply to an incoming WhatsApp message101102**Tool sequence**:1031. `WHATSAPP_SEND_REPLY` - Send a reply to a specific message [Required]104105**Key parameters**:106- `message_id`: ID of the message being replied to107- `to`: Recipient phone number108- `body`: Reply text content109110**Pitfalls**:111- message_id must be from a message received within the 24-hour window112- Replies appear as quoted messages in the conversation113- The original message must still exist (not deleted) for the quote to display114115### 5. Manage Business Profile and Templates116117**When to use**: User wants to view or manage their WhatsApp Business profile118119**Tool sequence**:1201. `WHATSAPP_GET_BUSINESS_PROFILE` - Get business profile details [Optional]1212. `WHATSAPP_GET_PHONE_NUMBERS` - List registered phone numbers [Optional]1223. `WHATSAPP_GET_PHONE_NUMBER` - Get details for a specific number [Optional]1234. `WHATSAPP_CREATE_MESSAGE_TEMPLATE` - Create a new template [Optional]1245. `WHATSAPP_GET_MESSAGE_TEMPLATES` - List all templates [Optional]125126**Key parameters**:127- `phone_number_id`: Business phone number ID128- `template_name`: Name for the new template129- `category`: Template category (MARKETING, UTILITY, AUTHENTICATION)130- `language`: Template language code131132**Pitfalls**:133- New templates require Meta review before they can be used134- Template names must be lowercase with underscores (no spaces)135- Category affects pricing and approval criteria136- Templates have specific formatting requirements for headers, body, and buttons137138### 6. Share Contacts139140**When to use**: User wants to send contact information via WhatsApp141142**Tool sequence**:1431. `WHATSAPP_SEND_CONTACTS` - Send contact cards [Required]144145**Key parameters**:146- `to`: Recipient phone number147- `contacts`: Array of contact objects with name, phone, email details148149**Pitfalls**:150- Contact objects must follow the WhatsApp Business API contact schema151- At least a name field is required for each contact152- Phone numbers in contacts should include country codes153154## Common Patterns155156### 24-Hour Messaging Window157158- Customers must message you first to open a conversation window159- Within 24 hours of their last message, you can send free-form messages160- After 24 hours, only approved template messages can be sent161- Template messages can re-open the conversation window162163### Phone Number Resolution164165```1661. Call WHATSAPP_GET_PHONE_NUMBERS1672. Extract phone_number_id for your business number1683. Use phone_number_id in all send operations169```170171### Media Upload Flow172173```1741. Call WHATSAPP_UPLOAD_MEDIA with the file1752. Extract media_id from response1763. Call WHATSAPP_SEND_MEDIA_BY_ID with media_id1774. OR use WHATSAPP_SEND_MEDIA with a public URL directly178```179180## Known Pitfalls181182**Phone Number Format**:183- Always use E.164 format: +[country code][number] (e.g., '+14155551234')184- Do not include dashes, spaces, or parentheses185- Country code is required; local numbers without it will fail186187**Messaging Restrictions**:188- Business-initiated messages require templates outside the 24-hour window189- Template messages cost money per conversation190- Rate limits apply per phone number and per account191192**Media Handling**:193- Uploaded media expires; use promptly after upload194- Media URLs must be publicly accessible HTTPS195- Stickers have specific requirements (WebP format, 512x512 pixels)196197**Template Management**:198- Template review can take up to 24 hours199- Rejected templates need to be fixed and resubmitted200- Template variables use double curly braces: {{1}}, {{2}}, etc.201202## Quick Reference203204| Task | Tool Slug | Key Params |205|------|-----------|------------|206| Send message | WHATSAPP_SEND_MESSAGE | to, body |207| Send template | WHATSAPP_SEND_TEMPLATE_MESSAGE | template_name, to, language_code |208| Upload media | WHATSAPP_UPLOAD_MEDIA | (file params) |209| Send media by ID | WHATSAPP_SEND_MEDIA_BY_ID | media_id, to, type |210| Send media by URL | WHATSAPP_SEND_MEDIA | media_url, to, type |211| Reply to message | WHATSAPP_SEND_REPLY | message_id, to, body |212| Send contacts | WHATSAPP_SEND_CONTACTS | to, contacts |213| Get media | WHATSAPP_GET_MEDIA | media_id |214| List phone numbers | WHATSAPP_GET_PHONE_NUMBERS | (none) |215| Get phone number | WHATSAPP_GET_PHONE_NUMBER | phone_number_id |216| Get business profile | WHATSAPP_GET_BUSINESS_PROFILE | phone_number_id |217| Create template | WHATSAPP_CREATE_MESSAGE_TEMPLATE | template_name, category, language |218| List templates | WHATSAPP_GET_MESSAGE_TEMPLATES | (none) |219| Check template status | WHATSAPP_GET_TEMPLATE_STATUS | template_id |220221## When to Use222This skill is applicable to execute the workflow or actions described in the overview.223224## Limitations225- Use this skill only when the task clearly matches the scope described above.226- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.227- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.228229---230231**Source:** [`sickn33/agentic-awesome-skills`](https://github.com/sickn33/agentic-awesome-skills) → `skills/whatsapp-automation/SKILL.md`232233**Also appears in:** `sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills/skills/whatsapp-automation/SKILL.md`, `sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills-claude/skills/whatsapp-automation/SKILL.md`