send_template_message
Send approved WhatsApp template messages to phone numbers using dynamic parameters for headers, body text, and media. Automate customer notifications from Claude, ChatGPT, and MCP-compatible AI clients.
Instructions
Send an approved template message to a phone number.
Args: to: Recipient phone number with country code (e.g. "+919876543210") template_name: Name of the approved template to send language: Language code matching the template (default "en") components: Optional list of component parameter dicts for dynamic values. Example for a template with header image and body params: [ {"type": "header", "parameters": [ {"type": "image", "image": {"link": "https://example.com/img.jpg"}} ]}, {"type": "body", "parameters": [ {"type": "text", "text": "John"}, {"type": "text", "text": "ORD-123"} ]} ]
Returns: JSON with message ID on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| template_name | Yes | ||
| language | No | en | |
| components | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |