add_contacts_to_campaign_tool
Adds specific saved contacts, by CRM contact id (1-60 per call), straight into an ACTIVE campaign, without adding them to any of its lists, and starts its sequence for the ones added: each gets its first email or LinkedIn action from the user's connected accounts, over as many sending days as their daily limits need, and AI writing in those messages is charged in credits as each message is written. With enrichMissingContactData, contacts without a valid work email are first looked up, charged in credits for each email found. Answers one outcome per contact: added, already_in_campaign, missing_valid_email (the campaign sends email and the contact has no valid work email), missing_linkedin (the campaign has LinkedIn steps and the contact has no LinkedIn URL), contact_not_found or enrolment_failed. Refused with CAMPAIGN_NOT_ACTIVE for a campaign that is not active (a draft or a paused one), NO_ACTIVE_EMAIL_ACCOUNTS or NO_ACTIVE_LINKEDIN_ACCOUNTS when no sending account is active for a channel the campaign uses, and CAMPAIGN_LIST_FULL when the campaign holds as many contacts as it can.
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": {
"campaignId": "<campaignId>",
"contactIds": "<contactIds>"
},
"name": "add_contacts_to_campaign_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaignId | Yes | The campaign to add the contacts to; it must be active. | |
| contactIds | Yes | CRM contact ids (24 hex) of the people to add: 1 to 60, each once. | |
| enrichMissingContactData | No | When the campaign sends email, first run an email enrichment for each contact without a valid work email, as the app's Add to Campaign does (charged at the enrichment price, only when an email is found). Left false, those contacts are not added and come back as missing_valid_email. |