Create a campaign
create_campaignCreate a draft outbound campaign: agent, caller-id numbers, contact list, purpose, consent_basis (existing_customer | explicit_consent), calling windows, retry policy (or a preset: sales, collections, single_attempt), concurrency and optional schedule. It starts only when launched with launch_campaign.
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": {
"project_id": "<project_id>",
"name": "<name>",
"agent_id": "<agent_id>",
"from_number_ids": "<from_number_ids>",
"contact_list_id": "<contact_list_id>",
"purpose": "<purpose>",
"consent_basis": "<consent_basis>"
},
"name": "create_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| ends_at | No | ||
| purpose | Yes | Optional, free-form outbound purpose, recorded when sent; no purpose or token is ever refused. The documented advisory catalog is: appointment, booking_confirmation, callback_requested, customer_outreach, delivery_notification, ops_alert, other, payment_reminder, personal_errand, reservation, status_check, support. | |
| agent_id | Yes | ||
| language | No | ||
| time_zone | No | IANA time zone (default UTC), matched and stored like a contact's time_zone: ignoring case, another spelling of a zone stored as the zone it names, an offset such as UTC-5 refused. | |
| project_id | Yes | ||
| retry_policy | No | ||
| consent_basis | Yes | ||
| max_callbacks | No | How many call-backs one contact may be granted in this campaign. A request beyond it finishes the contact with skip_reason callback_limit_reached. | |
| time_zone_mode | No | ||
| calling_windows | No | {weekday: [{start: 'HH:MM', end: 'HH:MM'}]}; defaults per destination country. | |
| contact_list_id | Yes | ||
| from_number_ids | Yes | ||
| max_concurrency | No | ||
| organization_id | No | Optional. Defaults to the authenticated workspace; when supplied it must be that workspace's id. | |
| followup_context | No | What a follow-up call (a retry or a call-back) is told about the previous conversation with the contact. summary: its summary reaches the call as the built-in variables campaign.previous_summary and campaign.previous_follow_up; campaign.previous_summary_status says whether there is one. Every campaign call carries campaign.call_kind (first_contact, retry, callback or reopened). | none |
| scheduled_start_at | No | ||
| followup_transcript | No | Free-form AI agents only: a follow-up call (a retry or a call-back) is given the previous conversation's transcript, newest turns first, at most 4,000 characters, as quoted data at the end of its prompt. Not given on a workflow agent or Eleven Realtime, on a call with a keypad variable, or when the earlier call held a value back or keyed one. Independent of followup_context. | |
| retry_policy_preset | No | ||
| reserved_concurrency | No |