Write campaign sequence
set_sequenceWrite the shared email sequence of a MULTI campaign — the emails every lead in it receives, with {{variables}} filled in per lead at send time. THIS REPLACES THE ENTIRE SEQUENCE: any step you leave out is deleted. Call get_sequence first and resend the existing steps unless the user asked to start over. Does not apply to 'single' campaigns, which use generate_lead_sequence per lead. Nothing is sent — the campaign still has to be launched, and that stays with the user.
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": {
"campaign_id": "<campaign_id>",
"steps": "<steps>"
},
"name": "set_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | THE COMPLETE SEQUENCE. This REPLACES every email currently on the campaign — steps you leave out are deleted. Call get_sequence first and include the existing steps unless the user asked to start over. Each step: step_number (0-based, so the first email is 0), subject, body, delay_minutes (how long to wait after the previous step, 1 to 43200), and condition ('no_reply' to skip the step once the lead has replied, which is the default, or 'always'). subject and body may contain {{variables}} such as {{client_name}} or {{company}}, filled in per lead at send time. | |
| campaign_id | Yes | The MULTI campaign to write. Single campaigns have no shared sequence — use generate_lead_sequence per lead instead. | |
| idempotency_key | No | Optional. Send the SAME value when retrying a call you are unsure completed. Omit it and identical calls within a minute are collapsed. |