createWhatsappCampaign
Creates a draft WhatsApp campaign from an approved template so you can add contacts and launch it when ready. Nothing sends until launch; scheduling is not supported.
Instructions
Create a draft campaign from an approved template. It sends nothing until you launch it.
Add contacts and launch it with the next calls. Scheduling is not offered.
(Tags: WhatsApp)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"phone_number_id": "<phone_number_id>",
"template_id": "<template_id>"
},
"name": "createWhatsappCampaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| agent_id | No | The agent that answers replies. | |
| is_dynamic | No | ||
| data_source | No | csv | |
| template_id | Yes | An approved template on that number. | |
| campaign_mode | No | `broadcast_reply` lets the agent answer replies. It needs an agent. | broadcast |
| phone_number_id | Yes | ||
| variable_mapping | No | Template field to contact field or static text. |