generate_campaign_sequence_tool
Write a fresh AI-generated sequence for a campaign, deleting all of its current steps (hand-written content and attachments included) and replacing them with new steps that hold AI-written topics and automatic wait days. Optionally takes the ordered channel list to generate for; without one it writes three email steps. Each contact's message is then AI-written from its step's topic when that step is scheduled, and each AI-written message costs credits. It also runs on a campaign that is already sending: its enrolled contacts continue on the new steps, and because every step is new, contacts part-way through may be sent the new sequence from its first step, while messages already queued still go out as written. When the campaign has a linked knowledge hub, it may also replace the campaign's stored company description with the hub's context. Refused with SEQUENCE_STRUCTURE_LOCKED for a sequence with conditions or A/B splits once the campaign has started. It is the same operation as generate_ai_sequence_tool, so use one or the other: each call replaces the steps again.
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": {
"campaignId": "<campaignId>"
},
"name": "generate_campaign_sequence_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sequence | No | ||
| campaignId | Yes |