save_email_sequence
Create or edit a sequence (email, text, WhatsApp, Instagram, Messenger)
Description
Create (no id) or edit (id) a SEQUENCE: timed one-to-one messages to people on the brand's list. Steps may mix channels: email from the brand's own mailboxes, or channel sms / rcs / imessage / whatsapp / instagram / facebook (Messenger) / telegram / line / x / bluesky / slack from its connected accounts (enroll_contacts starts those). WhatsApp beyond 24 hours of the person's last message needs an approved template (step.template); Instagram and Messenger reach only people who wrote to the brand in the last 24 hours. A reply or STOP stops the person on that channel. Email: step 1 { subject, body }, then { waitDays, body } per follow-up (no subject = same thread). variants [{ subject?, body }]: up to 3 more versions for A/B tests, one per lead; list_email_sequences with id shows results per version. Merge fields: {{first_name}}, {{company}} or any lead column (a message is never sent half-filled). mailboxes: addresses from list_email_mailboxes send in turn, a lead stays on its first (mailbox: one only). window { days, start, end, timeZone, leadTimeZone }: when it sends (default Mon-Fri 09:00-17:00). dailyCap: send up to this many emails a day (default 50, 1 to 2000). ramp { start, days }: slow start, OFF unless given. Each mailbox keeps its own ceiling (set_email_mailbox). review:true holds emails as drafts (list_email_drafts, review_email_drafts). onReply { enroll, keywords?, channel? } (or a list, first match wins) moves a replier into another sequence. Steps may carry attachments. {{fact}}: find_lead_facts. Company rules default on (onePerCompany, stopCompanyOnReply, skipContactedDays 90). hubspot:true sends replies to HubSpot. Every message ends with the opt-out line (optOutLine rewords it), the sender's name and postal address (set_email_sender) and an unsubscribe link. Saving sends nothing: enroll_email_leads starts it. A reply, bounce or complaint stops that lead (stop_email_lead for any other way). You are the sender and are responsible for having consent or another lawful reason to email each person. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | sequence id to edit; omit to create |
name | string | a name for the sequence |
mailbox | string | one sending address or mailbox id from list_email_mailboxes |
mailboxes | string[] | several sending addresses, sent from in turn |
steps | object[] | 1 to 10 steps, in order |
steps[].channel | "email" | "sms" | "whatsapp" | "instagram" | "facebook" | default email. sms = a text from the brand's Twilio/Telnyx number; whatsapp, instagram, facebook (Messenger) = from its own connected account; no subject, words in text |
steps[].text | string | a message step's words with {{merge_fields}} (sms 1,600, WhatsApp 4,096, Instagram 1,000, Messenger 2,000 characters) |
steps[].template | object | whatsapp: an APPROVED template, sent when the 24-hour window is closed (or always, with no text) |
steps[].template.namerequired | string | |
steps[].template.language | string | |
steps[].template.variables | string[] | the template's {{1}}, {{2}}… in order; merge fields allowed |
steps[].from | string | sms: the brand number it is sent from; whatsapp: the phone number id (needed when the brand has several) |
steps[].account | string | instagram / facebook: the brand's Instagram account or Page id, when it has several |
steps[].subject | string | required on step 1; omit on a later step to reply in the same thread |
steps[].body | string | plain text or simple markdown, with {{merge_fields}}; or pass html |
steps[].html | string | the step as rich text (p, br, b, i, a, ul, ol, li), with {{merge_fields}} |
steps[].waitDays | number | whole days after the step before it, 1 to 90; step 1 has none |
steps[].format | "markdown" | "text" | markdown (default) or text |
steps[].variants | object[] | up to 3 other versions of this step, for A/B testing |
steps[].variants[].subject | string | |
steps[].variants[].body | string | |
steps[].variants[].html | string | |
steps[].attachments | string | object[] | files sent with this step, every version of it: links (a Library item, an upload_file link or any https link) or { url, name }; 10 at most, 25 MB in total. Large files on a first email to someone can hurt delivery; a link in the words often works better there |
window | object | when the sequence may send |
window.days | string[] | mon, tue, wed, thu, fri, sat, sun |
window.start | string | 24-hour time, e.g. 09:00 |
window.end | string | 24-hour time, e.g. 17:00 |
window.timeZone | string | the brand's time zone, e.g. America/New_York; UTC when omitted |
window.leadTimeZone | boolean | true = the hours are read in each lead's own timeZone |
dailyCap | number | send up to this many emails a day for the sequence, across its mailboxes: 1 to 2000, default 50 |
ramp | boolean | object | start slow and build up to dailyCap; OFF unless given; false switches it off |
ramp.on | boolean | |
ramp.start | number | emails on the first day, default 10 |
ramp.days | number | how long the build-up lasts: 7 to 42 days, default 21 |
ramp.restart | boolean | begin the build-up again today |
optOutLine | string | the one line that ends every message and tells the reader how to opt out |
fromName | string | a sender name; an Outlook / Microsoft 365 mailbox always sends under its own account name |
review | boolean | true = every email waits as a draft until approved (review_email_drafts) |
onePerCompany | boolean | one person per company domain at a time (default true for a new sequence) |
stopCompanyOnReply | boolean | when one person at a company replies, stop the others (default true for a new sequence) |
skipContactedDays | number | skip anyone the brand's other sequences wrote to in the last N days (default 90 for a new sequence, 0 = off) |
hubspot | boolean | true = send this sequence's replies, their labels and the leads to HubSpot |
onReply | object | object[] | null | one rule or a list (first match wins); null removes it |
status | "active" | "paused" | active (default) or paused |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/save_email_sequence.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"save_email_sequence","arguments":{}}}
CLI
hermoso call save_email_sequence --json '{}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
enroll_contactsEnrol contacts in a sequencelist_email_sequencesList email sequences and their statelist_email_mailboxesList the mailboxes this brand sends fromset_email_mailboxSet a mailbox’s daily ceiling or pause itlist_email_draftsList emails waiting for reviewreview_email_draftsApprove, skip or stop emails waiting for reviewfind_lead_factsFind a sourced fact for each leadset_email_senderSet the sender name and postal addressenroll_email_leadsEnrol leads in an email sequencestop_email_leadStop the emails to one lead