Create, edit or duplicate a follow-up sequence
save_sequenceCreate a follow-up sequence, update one (its name, steps, after-hours steps and teams), or duplicate one. To edit steps, read them with get_account_setup (sequence_id), change the list and send the whole list back.
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": {
"action": "<action>"
},
"name": "save_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Sequence name (max 255). Required for create. | |
| action | Yes | create: a new sequence. update: change sequence_id (only the arguments you pass change). duplicate: copy sequence_id as "<name> (copy)", with no teams. | |
| team_ids | No | The complete list of teams that should run this sequence (ids from get_settings). Omit to leave team assignments unchanged. A team taken off is moved to another sequence. | |
| sequence_id | No | The sequence to update or duplicate. | |
| during_steps | No | Steps run while the team is available, in order (the whole list; replaces the current steps). Types: - wait: unit immediately|minutes|hours (value = how many) or days (value days later, until time) or same_day (until time, HH:MM). The first wait is the initial delay: immediately, minutes or hours only. - call: ring the team's reps. ai-call: the team's AI agent calls; optional introMessage / voicemailMessage (max 500, blank = the agent's own) and isVoicemail (null = the agent's setting). - sms: text the lead (body; merge tags like {{lead.first_name}}, {{lead.<custom field slug>}}, {{from.company}}). An sms right before a call is sent before dialing; right after a call, only if the call is not answered. - team: reassign the lead to another team (teamId, from get_settings); the steps after it are dialled by that team. - tag / untag: add a tag to the lead, or remove one (tagId, from get_account_setup). - stage: move the lead to a stage (stageId, from get_account_setup). - owner: make a user the lead's owner (userId, from get_settings). - sequence: once the steps above run out, move the lead to another sequence (sequenceId, from get_account_setup) instead of ending; it starts that sequence's steps. Must be the last step, not right after a wait, and can't lead back to this sequence. | |
| outside_steps | No | Steps when a lead arrives outside business hours: at most one sms (body), one ai-call and, last, one sequence (sequenceId: move the lead to that sequence instead of waiting for business hours or ending). Pass [] for none. | |
| reschedule_after_hours | No | For a lead that arrives outside business hours: true = after outside_steps, wait until the team is next available and run during_steps; false = the sequence ends after outside_steps. Ignored when outside_steps ends with a sequence step. Defaults to true on create. |