addWhatsappCampaignContacts
Add up to 500 contacts to a WhatsApp campaign using phone numbers and custom variables. Contacts already in the campaign are skipped, so retries are safe.
Instructions
Add one contact, or up to 500 at once, to a campaign.
On a draft they are stored for launch. On a running campaign they are sent now. A contact already in the campaign is skipped, so a retry is safe.
Each contact needs a phone_number. Every other key is kept and can fill a
template parameter through variable_mapping.
(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": {
"campaign_id": "<campaign_id>",
"requestBody": "<requestBody>"
},
"name": "addWhatsappCampaignContacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaign_id | Yes | Id of a WhatsApp campaign, from `listWhatsappCampaigns`. | |
| requestBody | Yes | One contact object, or an array of 1 to 500. |