create_template
Submit WhatsApp Business message templates to Meta for review and approval. Structure headers, body text, and interactive buttons to build templates for marketing and utility campaigns.
Instructions
Create and submit a WhatsApp template to Meta for approval.
The template will go through Meta's review process. Check status with check_template_status after submission.
Args: name: Template name (lowercase, underscores, starts with letter, max 512) category: MARKETING or UTILITY language: Language code (e.g. "en", "en_US", "hi") components: List of component dicts. Each has a "type" (HEADER, BODY, FOOTER, BUTTONS) and type-specific fields. Example: [ {"type": "HEADER", "format": "TEXT", "text": "Hello {{1}}", "example": {"header_text": ["John"]}}, {"type": "BODY", "text": "Your order {{1}} is {{2}}.", "example": {"body_text": [["ORD-123", "confirmed"]]}}, {"type": "FOOTER", "text": "Reply STOP to opt out"}, {"type": "BUTTONS", "buttons": [ {"type": "QUICK_REPLY", "text": "Track Order"}, {"type": "URL", "text": "View Details", "url": "https://example.com/order/{{1}}", "example": ["https://example.com/order/123"]} ]} ]
Returns: JSON with template ID and status on success, or error details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| category | Yes | ||
| language | Yes | ||
| components | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |