Create a campaign draft
flow_create_campaign_draftSaves a new campaign as a draft: its name, audience (groups and segments), delivery steps and, optionally, its send time and pacing. Nothing is sent: the user reviews it and schedules or sends it in the portal (where an A/B test and notifications are set too) or, on a connection approved to send, with flow_schedule_campaign. steps is the delivery chain, first step first: each a channel, sender and live template of that sender, each channel once and SMS only last; a contact moves on to the next step when the step's message is not delivered (or not answered, moveOnWhen NO_ANSWER). sendAt and pacing are stored on the draft as the editor's Schedule and Pace sections save them, and need steps; the draft stays a draft and nothing is sent. The plan states them in the user's time zone. The answer gives the draft's id, how many contacts it would reach, its link and, with steps, preview: each step's message as a recipient sees it.
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": {
"name": "<name>"
},
"name": "flow_create_campaign_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| note | No | ||
| steps | No | ||
| pacing | No | Sends in batches, as the editor's Pace section; null sends every message at once | |
| sendAt | No | When the campaign sends once it is scheduled: "now" (the moment it is scheduled), or an ISO date-time with its zone, e.g. 2026-12-03T09:00:00+01:00. Stored on the draft only; nothing is sent. | |
| 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. | |
| groupIds | No | From flow_list_groups | |
| timezone | No | The time zone the campaign is scheduled in, as the editor's time zone field. Left out, a new send time keeps the draft's zone, or takes the user's own (flow_whoami). Alone, it changes the zone of the draft's stored send time | |
| segmentIds | No | From flow_list_segments | |
| messageType | No | TRANSACTIONAL also reaches contacts who opted out themselves, never ones an admin blocked | MARKETING |