generate_ai_sequence_tool
AI-generate a campaign's outreach sequence, for when the user wants the sequence written for them. It deletes all of the campaign's current steps (hand-written content and attachments included) and replaces them with one new step per channel in the sequence list, with AI-written step topics and automatic wait days. The sequence list takes at most 10 channels, each one of email, linkedin_connection, linkedin_message, linkedin_visit, linkedin_like, dialer, inmail or todo; a longer list or any other channel name is refused and nothing changes, and an omitted or empty list gives three email steps. Each lead'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 leads continue on the new steps, and because every step is new, leads part-way through may be sent the new sequence from its first step, while messages already queued still go out as written. With a linked knowledge hub it may also replace the campaign's stored company description. Refused for a sequence with conditions or A/B splits once the campaign has started. It is the same operation as generate_campaign_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_ai_sequence_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sequence | No | Optional ordered list of step channels, e.g. ["email","linkedin_message","email"]. Omit to let the system choose. | |
| campaignId | Yes | The campaign to generate an AI sequence for (its 24-hex MongoDB id). |