Campaigns
Reach thousands of customers with targeted WhatsApp campaigns. Use templates, track delivery, and analyze performance.
Overview
Campaigns allow you to send bulk messages to your contacts using approved WhatsApp templates. Perfect for promotions, announcements, and automated bot replies.
Bulk Send
Send to all contacts or specific groups
Templates
Use approved templates with dynamic variables
Analytics
Track sent, delivered, and read metrics
Creating a Campaign
Select Template
Choose an approved WhatsApp template for your campaign.
Configure Variables
Map template variables to contact data (name, phone, custom fields).
Set Audience
Target all contacts, a specific group, or individual contacts.
Send & Monitor
Launch campaign and track real-time delivery metrics.
Variable Replacement
Campaigns support dynamic variable replacement in templates:
Variable Mapping
| Parameter | Type | Required | Description |
|---|---|---|---|
| -1 | system | Optional | Replaced with contact name |
| 0 | system | Optional | Replaced with contact phone number |
| -2 | static | Optional | Replaced with static value from variables array |
| -3 | runtime | Optional | Replaced with contact runtime extra value (e.g., order.id) |
| {field_id} | custom | Optional | Replaced with custom field value |
API Usage
curl -X POST "https://api.wacm.in/api/v1/campaigns/send" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Summer Sale 2025",
"template_id": 1,
"group_id": null,
"variables": {
"1": "Summer Sale",
"2": "50% OFF"
}
}'API Endpoints
Campaign Analytics
Track campaign performance with these metrics:
| Metric | Description |
|---|---|
| send_to | Total contacts targeted |
| sended_to | Successfully sent count |
| delivered_to | Delivered count |
| read_by | Read count |
Retry Failed Messages
If some messages fail to send, you can retry them:
curl -X POST "https://api.wacm.in/campaigns/{id}/retry"Note
Failed messages do not refund credits. Retrying will deduct credits again for each resend attempt.
Bot Campaigns
Campaigns can also function as automated bot replies. Set is_bot=true and define trigger keywords to auto-reply when contacts message you.
{
"name": "Support Auto-Reply",
"template_id": 5,
"is_bot": true,
"is_bot_active": true,
"trigger": "help,support,issue",
"bot_type": 3
}
// bot_type: 2 = exact match, 3 = containsAI Flow Builder
Create advanced automation flows with AI processing.