Create a broadcast
create_broadcastCreate a mass message to the CRM contacts of one account. Without scheduledAt it is a DRAFT: nothing goes out until send_broadcast. WITH scheduledAt it is scheduled for real: at that time it goes out to every recipient on its own, and each recipient uses one DM of the plan quota right away (on X, also X credits); if the quota does not cover them all, nothing is created. Confirm the date, the audience and the text with the user before passing scheduledAt; cancel_broadcast stops it before it goes out and returns the DMs not yet sent. Instagram and Facebook do not allow broadcasts (Meta policy), and WhatsApp requires an approved template.
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": {
"accountId": "<accountId>",
"name": "<name>"
},
"name": "create_broadcast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Internal name of the campaign. | |
| tags | No | Only contacts carrying these tags. Omit for all subscribers. | |
| message | No | ||
| template | No | WhatsApp only, and REQUIRED there: {"name":"approved_template","language":"es","variables":["Ana","20%"]}. The variables go in the order of the {{1}}, {{2}} placeholders. List the approved ones with list_whatsapp_templates. | |
| accountId | Yes | Ignix account id that sends. | |
| attachments | No | Media sent with the message: [{"url":"https://…","type":"image"}]. Types: image, video, audio, file. Whatever the network does not accept in a direct message is dropped — see dmAttachments in get_network_rules. | |
| scheduledAt | No | ISO 8601. Schedules the real send for that time (no send_broadcast needed) and charges one DM of the quota per recipient now. Omit it to create a draft. | |
| idempotencyKey | No | Optional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice. |