Create WP Campaign
create_wp_campaign[write] Creates a DRAFT WhatsApp campaign (the result has its id and uuid); nothing is sent until it is started in the panel, which needs the merchant's confirmation that the recipients opted in.
wp_account_id / wp_account_uuid is the sending account and the template (wp_template_id / wp_template_uuid) must be APPROVED and belong to it (see list_wp_templates); a campaign sends that one template
to everyone. wp_campaign_params are the recipient variable names that fill the template body parameters {{1}}, {{2}}, ... in order (as many as the body has), e.g. ["name", "code"].
Templates with a media header are not supported. wp_campaign_schedule_datetime (ISO 8601) is when it goes out once started. A saved list (wp_list_id or wp_list_uuid; see list_wp_lists)
adds all its numbers as recipients; numbers on the opt-out list are kept as skipped.
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": {
"wp_campaign_title": "<wp_campaign_title>"
},
"name": "create_wp_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wp_list_id | No | ||
| wp_list_uuid | No | ||
| wp_account_id | No | ||
| wp_template_id | No | ||
| wp_account_uuid | No | ||
| wp_template_uuid | No | ||
| wp_campaign_title | Yes | ||
| wp_campaign_params | No | ||
| wp_campaign_schedule_datetime | No |