create_campaign
Create a campaign for the caller's tenant (tenant_id, owner_id and created_by are set from the authenticated user). 'name' required. Optional: description, status (draft|active|paused|completed — default 'active'), start_date/end_date (YYYY-MM-DD), daily_call_target (int, default 0), owner_id (override), script_id, notes, from_email, from_name, email_signature. Duplicate names within the tenant are rejected: if a campaign with the same name (case-insensitive) exists, its id is returned with already_exists=true instead of creating a second. Returns { campaign_id }.
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>"
},
"name": "create_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the campaign | |
| notes | No | Free-text notes | |
| status | No | Initial status | |
| end_date | No | End date (YYYY-MM-DD) | |
| owner_id | No | ID of the owner (user) | |
| from_name | No | Sender display name | |
| script_id | No | ID of the script | |
| from_email | No | Sender email address | |
| start_date | No | Start date (YYYY-MM-DD) | |
| description | No | Description of the campaign | |
| email_signature | No | E-mail signature used for this campaign's mails | |
| daily_call_target | No | Number of calls planned per day (integer, default 0) |