WACM.in Logo
Back to Documentation

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

1

Select Template

Choose an approved WhatsApp template for your campaign.

2

Configure Variables

Map template variables to contact data (name, phone, custom fields).

3

Set Audience

Target all contacts, a specific group, or individual contacts.

4

Send & Monitor

Launch campaign and track real-time delivery metrics.

Variable Replacement

Campaigns support dynamic variable replacement in templates:

Variable Mapping

ParameterTypeRequiredDescription
-1systemOptionalReplaced with contact name
0systemOptionalReplaced with contact phone number
-2staticOptionalReplaced with static value from variables array
-3runtimeOptionalReplaced with contact runtime extra value (e.g., order.id)
{field_id}customOptionalReplaced with custom field value

API Usage

Create Campaign
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

GET/campaigns - List all campaigns
POST/campaigns/send - Create and send campaign

Campaign Analytics

Track campaign performance with these metrics:

MetricDescription
send_toTotal contacts targeted
sended_toSuccessfully sent count
delivered_toDelivered count
read_byRead count

Retry Failed Messages

If some messages fail to send, you can retry them:

Retry Request
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.

Bot Campaign Example
{
  "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 = contains

AI Flow Builder

Create advanced automation flows with AI processing.

Learn More