hermosodocs

save_email_sequence

Create or edit a sequence (email, text, WhatsApp, Instagram, Messenger)

Area: MAILBOX EXTRAS 2026-11-25 · Publishing & scheduling. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
idstringsequence id to edit; omit to create
namestringa name for the sequence
mailboxstringone sending address or mailbox id from list_email_mailboxes
mailboxesstring[]several sending addresses, sent from in turn
stepsobject[]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[].textstringa message step's words with {{merge_fields}} (sms 1,600, WhatsApp 4,096, Instagram 1,000, Messenger 2,000 characters)
steps[].templateobjectwhatsapp: an APPROVED template, sent when the 24-hour window is closed (or always, with no text)
steps[].template.namerequiredstring
steps[].template.languagestring
steps[].template.variablesstring[]the template's {{1}}, {{2}}… in order; merge fields allowed
steps[].fromstringsms: the brand number it is sent from; whatsapp: the phone number id (needed when the brand has several)
steps[].accountstringinstagram / facebook: the brand's Instagram account or Page id, when it has several
steps[].subjectstringrequired on step 1; omit on a later step to reply in the same thread
steps[].bodystringplain text or simple markdown, with {{merge_fields}}; or pass html
steps[].htmlstringthe step as rich text (p, br, b, i, a, ul, ol, li), with {{merge_fields}}
steps[].waitDaysnumberwhole days after the step before it, 1 to 90; step 1 has none
steps[].format"markdown" | "text"markdown (default) or text
steps[].variantsobject[]up to 3 other versions of this step, for A/B testing
steps[].variants[].subjectstring
steps[].variants[].bodystring
steps[].variants[].htmlstring
steps[].attachmentsstring | 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
windowobjectwhen the sequence may send
window.daysstring[]mon, tue, wed, thu, fri, sat, sun
window.startstring24-hour time, e.g. 09:00
window.endstring24-hour time, e.g. 17:00
window.timeZonestringthe brand's time zone, e.g. America/New_York; UTC when omitted
window.leadTimeZonebooleantrue = the hours are read in each lead's own timeZone
dailyCapnumbersend up to this many emails a day for the sequence, across its mailboxes: 1 to 2000, default 50
rampboolean | objectstart slow and build up to dailyCap; OFF unless given; false switches it off
ramp.onboolean
ramp.startnumberemails on the first day, default 10
ramp.daysnumberhow long the build-up lasts: 7 to 42 days, default 21
ramp.restartbooleanbegin the build-up again today
optOutLinestringthe one line that ends every message and tells the reader how to opt out
fromNamestringa sender name; an Outlook / Microsoft 365 mailbox always sends under its own account name
reviewbooleantrue = every email waits as a draft until approved (review_email_drafts)
onePerCompanybooleanone person per company domain at a time (default true for a new sequence)
stopCompanyOnReplybooleanwhen one person at a company replies, stop the others (default true for a new sequence)
skipContactedDaysnumberskip anyone the brand's other sequences wrote to in the last N days (default 90 for a new sequence, 0 = off)
hubspotbooleantrue = send this sequence's replies, their labels and the leads to HubSpot
onReplyobject | object[] | nullone 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.

All 728 Publishing & scheduling tools · tools.json