create_sequence_step_tool
Adds a new sequence step to a campaign at an explicit position, specifying channel, wait days, type, and content. A step placed first in the root list sets the previous first step's wait to 3 days if it was 0. Requires campaignId, sequenceNumber, sequenceStepType ('manual' uses the content given; 'ai_generated' has AI write each contact's message) and daysBetween (whole days to wait after the previous step); channel defaults to 'email'. For sequenceStepType 'ai_generated' on an email, LinkedIn message or InMail step, AI writes the step's topic and title from the campaign's focus and company details, and any topic passed is ignored. sequenceNumber is the 0-based position within the target list: the root list, or the lane named by parentStepId (a condition step's id) and branchKey ('yes' or 'no'; 'a' or 'b' under an A/B split). Nothing can be placed after a list's last step when that step is a condition. To branch, add a step with channel 'condition', conditionType 'invite_accepted' (needs a LinkedIn connection step earlier on its path) or 'clicked_link' (needs an email step earlier on its path), sequenceStepType 'manual' and daysBetween as the window (1-30 days); it is appended to its list, and its lanes are then filled by adding steps with its id as parentStepId. To A/B test two paths, add a step with channel 'condition', conditionType 'ab_split', sequenceStepType 'manual', daysBetween 0 and optionally splitArms [{ key: 'a', label?, weight }, { key: 'b', label?, weight }] (whole percents adding up to 100; omitted means 50/50); it may be the first step, and each contact reaching it goes to one arm in the weights' proportions, by a fixed hash of the contact and the split, and stays there. Fill each arm with steps whose parentStepId is the split's id and branchKey 'a' or 'b'; an arm may stay empty to hold contacts out. Splits and conditions can only be added before the campaign starts, and no step can be added once a campaign with a split or condition has started. On a started campaign without them, the new step joins the live sequence: contacts still in it are sent the new step as well, from the user's connected mailbox or LinkedIn account. To choose which of the user's mailboxes send an email step, pass allowedInboxes built from list_email_accounts, as [{ inboxId: the mailbox's email address, emailAccountType: its account value }]; omitted, any of the user's usable mailboxes may send it. Other fields: template { subject, body, format 'editor' or 'html' } is a 'manual' step's message, and topic the brief an AI-written step is written from; invitationText (linkedin_connection, up to 200 characters) is the note sent with the invite; voiceNoteScript (linkedin_message, up to 100 words) adds a voice note in the sender's cloned voice, and each one sent costs credits; a linkedin_like step reacts with reactionType (like, celebrate, support, love, insightful, funny, or auto for AI's pick; default like) to the contact's newest post from the last postRecencyDays days (1-365, default 30), and is skipped if there is none; inmailExhaustionBehavior (inmail) is 'skip' (default) or 'defer' (once, to the next monthly refill) for when the sending LinkedIn account has no InMail credits left; cc (email) lists extra email addresses copied on every email the step sends; replyInSameThread (email, inmail) false starts a new thread instead of replying in the contact's earlier one; executionMode 'manual' (always for dialer and todo, never for linkedin_visit or linkedin_like) raises a task for a person and holds the contact until it is done or skipped, while 'automatic' (the default) has the campaign perform the step; autoSkipAfterDays (1-365) skips such a task left unstarted that many days after it is due, and taskInstructions and taskLinkUrl (an http(s) link) are shown on it; channelSequenceNumber has no effect, as the server renumbers every step. In email/message content, only these personalization tokens are substituted (single braces, exact names): {Contact Full Name}, {Contact First Name}, {Contact Last Name}, {Contact Company}, {Contact Job Title}, {Contact Industry}, {Sender Full Name}, {Sender First Name}, {Sender Last Name}, {Sender Job Title}, {Sender Signature}. The {Sender …} tokens take the name, title and signature of the mailbox or LinkedIn account that sends the step; the campaign's sender name and job title fill in only when that account has none. Two more token kinds are resolved per contact: {Column: } inserts the contact's value from that column of the campaign's lists, and {{}} has AI write that part for each contact from their data ({{ :: }} rewrites existing words, keeping them as the fallback). Anything else is sent to the prospect literally. When the campaign writes each message, an 'ai_generated' step or a {{...}} part costs credits.
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>",
"sequenceNumber": "<sequenceNumber>"
},
"name": "create_sequence_step_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| topic | No | ||
| channel | No | ||
| template | No | ||
| branchKey | No | Which lane of parentStepId. Under an invite_accepted or clicked_link condition: 'yes' (the signal arrived in time) or 'no'. Under an ab_split: the arm, 'a' or 'b'. Sent together with parentStepId. | |
| splitArms | No | ||
| campaignId | Yes | ||
| daysBetween | No | ||
| taskLinkUrl | No | ||
| parentStepId | No | The condition step whose lane this list is. Omit (or null) for the root list. Sent together with branchKey. | |
| reactionType | No | ||
| conditionType | No | ||
| executionMode | No | ||
| allowedInboxes | No | ||
| invitationText | No | ||
| sequenceNumber | Yes | 0-based position within the target list (the root list, or the lane named by parentStepId + branchKey). Later steps of that list shift down; a condition step is always appended. The server then renumbers the whole campaign in sequence-tree order. | |
| postRecencyDays | No | ||
| voiceNoteScript | No | ||
| sequenceStepType | No | ||
| taskInstructions | No | ||
| autoSkipAfterDays | No | ||
| replyInSameThread | No | ||
| channelSequenceNumber | No | ||
| inmailExhaustionBehavior | No |