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.
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. | |
| outside_steps | No | Steps when a lead arrives outside business hours: at most one sms (body) and one ai-call. 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. Defaults to true on create. |