Enroll contacts in automation
enroll_contactsEnrolls contacts in an ACTIVE automation without waiting for its trigger: they enter from the first step and the sending nodes really send. Pass exactly ONE audience among listId (from list_lists), segmentId (from list_segments) and contactIds (from list_contacts, max 1000). On drafts and paused automations it fails with not_active. Execution is asynchronous: the response says it is queued, per-contact outcomes are read with get_automation_log. Contacts already enrolled are ignored (one enrollment per contact).
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": {
"automationId": "<automationId>"
},
"name": "enroll_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| listId | No | ||
| segmentId | No | ||
| contactIds | No | ||
| automationId | Yes |