Enrol prospects in a campaign
enrol_prospectsEnrol existing prospects (by prospect_ids or by emails, one of the two, up to 200) into a draft or active campaign, with the same per-person rules as Add prospects in the app: already enrolled, suppressed, active in another campaign and missing snippet fields are skipped and reported per person. Returns 200 with a per-item result and a summary even when nobody was enrolled; 404 for an unknown campaign; 409 when the campaign cannot take prospects in its state. Use when the user wants people who are already in anymail added to a 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": {
"id": "<id>"
},
"name": "enrol_prospects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Campaign id (uuid). | |
| emails | No | Prospect emails to enrol (must already exist in the workspace). | |
| prospect_ids | No | Prospect ids to enrol. |