update_sequence_step_tool
Updates a single sequence step BY ITS ID: its content (template, topic), wait days, sending mailboxes, cc, threading, channel, step type, execution mode, LinkedIn and task settings, a condition's window or an A/B split's weights. Each field passed replaces the stored value; omitted fields are kept. It also works on a running campaign: new content and cc reach contacts not yet scheduled for the step, a threading change also applies to its queued emails, a new wait reschedules the step's queued messages, and a new mailbox list moves its queued emails off the removed mailboxes onto the listed ones and rewrites them for the new sender, replacing any hand edits and charging credits for AI work not yet paid for. A new channel, step type, execution mode, topic, invitation note or voice note likewise reaches contacts not yet scheduled for the step; it does not convert messages already queued or tasks already open. sequenceStepId is the step's 24-hex MongoDB id. Fields: template is {subject, body, format ('editor' or 'html')} and cannot be set on an AI-written step. sequenceStepType 'manual' uses that template; 'ai_generated' or 'ai_reply' has AI write each contact's message when the contact is scheduled for the step, costing credits per message (the campaign pauses if credits run out). topic is what AI writes about on an AI-written step; changing it there also regenerates the step's title. channel can move the step to email, linkedin_connection, linkedin_message, linkedin_visit, linkedin_like, inmail, dialer or todo if the sequence's order rules still hold (for example, a LinkedIn connection before any LinkedIn message); no step becomes or stops being a condition (channel 'condition' is accepted only on a step that already is one, where it changes nothing), the channel cannot change once a campaign with a condition has started, and leaving linkedin_message drops the voice note. executionMode 'automatic' has FuseAI send or perform the step through the user's mailbox or LinkedIn account; 'manual' makes it a task for a person, and the contact waits until the task is done or skipped (dialer and todo steps are always manual, linkedin_visit and linkedin_like always automatic). invitationText (linkedin_connection, up to 200 characters; empty removes it) is the note sent with the connection request. voiceNoteScript (automatic linkedin_message steps, up to 100 words, about 45 seconds; empty or null removes it) adds a voice note in the cloned voice of the sending account's owner or the campaign owner; each one LinkedIn accepts costs credits. reactionType (linkedin_like: like, celebrate, support, love, insightful, funny, or auto to choose from the post), postRecencyDays (linkedin_like, 1-365: the reaction goes on the contact's newest post from that many days back, and the step is skipped if there is none) and inmailExhaustionBehavior (inmail: 'skip', the default, skips the InMail when the LinkedIn account has no InMail credits left; 'defer' waits once for the next monthly refill) are read at send time, so they also apply to queued messages. replyInSameThread (email and inmail): true replies in the contact's existing thread, false starts a new thread with the step's subject, null resets it to true; a step done by a person always starts a new thread. cc lists the addresses copied on the step's emails. On a step done by a person, autoSkipAfterDays (1-365; null waits forever) is how long an unstarted task stays open before it expires and the contact moves on, and taskInstructions and taskLinkUrl (http or https) are shown on the task; all three also update the step's open tasks, so a shorter autoSkipAfterDays can expire them. channelSequenceNumber is the step's place among steps of its channel (0 for the first), which AI-written steps use to write an opener or a follow-up; the backend recomputes it when steps are added, removed, reordered or change channel. On a condition step only daysBetween, its window of 1-30 days, can change; on an A/B split (conditionType 'ab_split') only splitArms can change, at any time and also on a running campaign: send both arms ('a' then 'b') with whole-percent weights adding up to 100 and optional names. On a started campaign, contacts the split already routed who were not yet sent anything in their arm then follow the new weights; contacts their arm already contacted, or who replied, bounced or unsubscribed, keep their arm. A step's position moves through reorder_sequence_steps_tool. To choose an email step's sending mailboxes, pass allowedInboxes built from list_email_accounts; it replaces the step's whole list. When editing email content, pass BOTH subject and body together (nested under template); the backend replaces the step's template, so sending only one would drop the other. 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, which costs credits for each message that uses it ({{ :: }} rewrites existing words, keeping them as the fallback). Anything else is sent to the prospect literally.
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": {
"sequenceStepId": "<sequenceStepId>"
},
"name": "update_sequence_step_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| topic | No | ||
| channel | No | ||
| template | No | ||
| splitArms | No | ab_split steps only: both arms, arm 'a' then arm 'b', each { key, label?, weight }. Weights are whole percents adding up to 100: each contact reaching the split is routed to an arm in these weights' proportions, by a fixed hash of the contact and the split, and stays in it. They can change at any time, also on a running campaign: contacts already routed but not yet sent anything in their arm then follow the new weights. | |
| daysBetween | No | ||
| taskLinkUrl | No | ||
| reactionType | No | ||
| executionMode | No | ||
| allowedInboxes | No | Email steps only: the user's mailboxes this step sends from; each contact is sent from one of them. Build every entry from list_email_accounts, using only accounts with isActive and isConnected true that are the user's own (isOwner) or have USE_IN_CAMPAIGN in sharedPermissions. Entries are not checked on save and the email is sent from inboxId as given. Replaces the step's whole list: omit to keep it, or pass [] to let the backend pick among all the user's usable mailboxes again. | |
| invitationText | No | ||
| sequenceStepId | Yes | ||
| postRecencyDays | No | ||
| voiceNoteScript | No | ||
| sequenceStepType | No | ||
| taskInstructions | No | ||
| autoSkipAfterDays | No | ||
| replyInSameThread | No | ||
| channelSequenceNumber | No | ||
| inmailExhaustionBehavior | No |