Schedule or send a campaign
flow_schedule_campaignSchedules a campaign draft (ids from flow_list_campaigns) to send at its stored send time, or now when it has none: real messages to every contact it reaches, charged, and not called back once sent. It goes through the portal's own save, with the same checks on audience, senders, WhatsApp numbers and live templates; a balance short of the cost is stated, as the editor warns. The send time and pacing are set on the draft first with flow_update_campaign_draft. An A/B test is started in the portal. Always two calls. The first, without confirmation, changes nothing: it answers a summary (campaign, brand, contacts reached, estimated cost and balance, send time in the user's time zone, pacing) and a confirmation. Show the user every line and ask; only after they say yes, call again with that confirmation, within 15 minutes. If anything in the summary changed in between, nothing happens and a new summary comes back to confirm. Only on a connection approved to send. The answer gives the campaign's status and link.
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": "flow_schedule_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| brandId | No | The id of the brand this change is for: the active brand (flow_whoami). Required when the connection covers several brands; the change is refused when another brand is active. | |
| confirmation | No | Leave out on the first call. After the user confirmed the summary that call answered, the confirmation it gave |