Create a campaign (draft)
create_campaignCreates a draft batch-call campaign from JSON contacts for later dialing; contacts are compliance-scrubbed and no calls start until the campaign is explicitly launched.
Instructions
Create a DRAFT batch-call campaign from JSON contacts. Nothing is dialled until control_campaign action=start. Contacts: [{phone, name?, variables?, language?, timezone?}]; DND/compliance scrubbing applies. Safe to retry with the same idempotency_key (one is generated and returned when omitted).
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>",
"agent_id": "<agent_id>",
"contacts": "<contacts>"
},
"name": "create_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| retry | No | {max_attempts, delay_minutes, on: [statuses]} | |
| window | No | {timezone, start: 'HH:MM', end: 'HH:MM', days: [0-6]} | |
| purpose | No | ||
| agent_id | Yes | ||
| contacts | Yes | ||
| language | No | ||
| start_at | No | ISO 8601; omitted = as soon as it is started. | |
| concurrency | No | ||
| from_number | No | E.164 of one of the account's active numbers; omitted = default. | |
| default_country | No | ISO country for numbers without +, e.g. 'IN'. | |
| idempotency_key | No | ||
| show_full_numbers | No |