All protocolsEmail sequence
protocol/email-sequence@1.0v1.010 steps · 5 gates · 3 client decisionsEmail sequence
Plan, build and pace a multi-email sequence that gives every send its own reason to buy, previewed, canaried and launched only on the client's go.
When to use
Use for a launch, a seasonal sale or an evergreen nurture in which several emails reach every eligible contact on a schedule. It covers the whole path from a contact file to a paced live send, including the deliverability checks that protect the sending domain.
Pipeline
Inputs
What the work needs before it starts. Every required input is in hand before step one.
| Name | Type | Required | Description |
|---|---|---|---|
sending_domain | configuration | Required | An active sending domain with a webhook signing key and delivery events registered. |
legal_identity | text | Required | The legal company name and mailing address for the compliance footer, supplied by the client. |
contact_file | CSV | XLSX | sheet | Required | The contact list, with the basis on which its contacts may receive marketing email. |
permission_decision | column | attested | unknown | Required | A per-row consent column, a statement from the client, or unknown. Decided by the client, never inferred. |
offer | facts | Required | The offer, its dates, stock and any codes. |
voice_samples | emails | Optional | Past emails and notes on the brand's voice. |
reviews | text | Optional | Customer reviews that may be quoted, verbatim. |
pace | numbers | Optional | Start rate, hourly ramp, daily cap and sending hours, supplied by the client. |
Outputs
| Name | Type | Description |
|---|---|---|
intake_dossier | document | Past emails, voice, offer, stock and reviews in one place. |
sequence_plan | table | The arc: each email's reason to buy, the delay before it and the exit rules. |
emails | HTML + plain text | Each email built from the reusable design system, with a plain-text twin. |
check_report | JSON | Size, subject, preview text, claims, links and layout results for every email. |
public_previews | links | Sample previews of every email for the client's review. |
forecast | report | Reach per email at the client's pace, with any shortfall named. |
live_workflow | workflow | The launched, paced workflow with its post-flight audit. |
Steps
Step 1: Scope and sending readiness
OperatorConfirm the workspace, then check that the sending domain is active, the signing key is saved, delivery events are registered and the legal name and address are on file.
- Tool
cli.ts context- Artifact
- Readiness check
GateSending readiness· decided by System
The domain is active, delivery events are signed, and the compliance footer carries the client-supplied legal name and address.
Step 2: Intake dossier
AgentCollect past emails, the brand's voice, the offer and its dates, stock and verbatim reviews.
- Artifact
- Intake dossier
Step 3: Arc and cadence
AgentGive each email a different reason to buy, set the delay before each send, and define the exits: purchase, unsubscribe or suppression.
- Artifact
- Sequence plan with a delay table
Step 4: Design system
AgentCompose each email from reusable story blocks at 600 px wide, with one call to action and a plain-text twin.
- Artifact
- Email HTML and plain-text twins
Step 5: Build and check
AgentCheck every email: body under 80 KB, subject up to 60 characters, preview text up to 110, claims checked against the offer, every link answering 200 with tracking parameters, no unknown merge tags, and no overflow from 320 to 640 px wide.
- Tool
Email check suite- Artifact
- Check report
GateBuild checks· decided by System
Every check passes on every email. A failure is fixed in the source, never waived.
Step 6: Import contacts
OperatorInspect the file locally, map its columns, record the client's permission decision, run the import dry, then import. New addresses are checked for deliverability before their first email.
- Tool
cli.ts import inspect · import run- Artifact
- Import receipt with counts
GatePermission decision· decided by Client
The client decides the permission basis for every import. It is never inferred from the file.
Step 7: Stage draft and previews
AgentCreate the workflow as a draft, add each email with its delay and dates, and share public sample previews. Creating and publishing a workflow never sends email.
- Tool
cli.ts workflow create · add-step · preview-link- Artifact
- Draft workflow and preview links
GatePreview approval· decided by Client
The client approves every email from its preview before the workflow is activated.
Step 8: Pace and forecast
OperatorApply the client's start rate, ramp, caps and sending hours, then forecast the reach of every email. A target date is never a reason to raise a cap.
- Tool
cli.ts forecast · plan- Artifact
- Forecast per email
Step 9: Canary, then live
OperatorActivate the workflow, send email one to at most five of the client's own seed inboxes, confirm placement and rendering, then go live only on the client's explicit instruction.
- Tool
cli.ts workflow launch --canary · --live- Artifact
- Live, paced workflow
GateGo-live approval· decided by Client
Nothing is sent to the list until the client approves the launch in so many words, and the canary must be accepted first. Paid sending volume is set only by the client's numbers.
Step 10: Run and post-flight audit
AgentWatch the first hour of sending, settle uncertain sends only from the provider's logs, stop contacts who bought elsewhere, and run the post-flight audit after any change.
- Tool
cli.ts workflow status · contacts- Artifact
- Post-flight audit
Gates
A gate must pass before the next step starts. Filled gates are the client's decisions; nothing is spent, published or sent before them.
| Gate | Decided by | Rule |
|---|---|---|
| Sending readiness | System | The domain is active, delivery events are signed, and the compliance footer carries the client-supplied legal name and address. |
| Build checks | System | Every check passes on every email. A failure is fixed in the source, never waived. |
| Permission decision | Client | The client decides the permission basis for every import. It is never inferred from the file. |
| Preview approval | Client | The client approves every email from its preview before the workflow is activated. |
| Go-live approval | Client | Nothing is sent to the list until the client approves the launch in so many words, and the canary must be accepted first. Paid sending volume is set only by the client's numbers. |
Failure modes
| Symptom | Prevention |
|---|---|
| An email step is duplicated after a lost answer | After any error, read the workflow back before retrying. A published duplicate cannot be removed. |
| A contact may receive the same email twice | An uncertain send is never resent. It is settled from the provider's logs, or marked not sent by the operator after checking them. |
| The live send starts faster than planned | The warm-up clock runs whenever a workflow is active. Pause it between the canary and go-live. |
| Customers who bought on another store keep receiving sale emails | Purchases on an external store are not seen automatically. Buyers are stopped from an exported order file, or excluded by imported order counts. |
| A dated email reaches people after the sale has ended | Every dated email carries a send-after time and an expiry. Anyone not reached in time skips it. |
| Bounces damage the sending domain | New addresses are checked before their first email, and addresses rated uncertain wait until everyone else has been emailed. |
Operator commands
Run by our operators and coding agents inside our own tooling. These are workflow commands, not public API endpoints. Every paid, publishing or sending command runs only after the client's approval.
Operator commandOpen a session
CLI="npx tsx --tsconfig scripts/comms/v2/tsconfig.json scripts/comms/v2/cli.ts --host <admin-host> --state <session-file>"
$CLI context # read back the workspace name before anything elseOperator commandImport contacts
$CLI import inspect --file <contacts.csv>
$CLI import run --file <contacts.csv> --mapping <mapping.json> --permission column --dry-run
$CLI import run --file <contacts.csv> --mapping <mapping.json> --permission columnOperator commandBuild the sequence and share previews
$CLI workflow create --name "<campaign name>" --consent opted_in
$CLI workflow add-step <workflow-id> --subject "<subject>" --body-file email-1.html --delay 0
$CLI workflow add-step <workflow-id> --subject "<subject>" --body-file email-2.html --delay 16h-24h
$CLI workflow preview-link <workflow-id>Operator commandForecast and launch, only on the client's go
$CLI forecast --sender <sender-id> --workflow <workflow-id> --target-days 4
$CLI workflow activate <workflow-id>
$CLI workflow launch <workflow-id> --canary <seed-contacts>
$CLI workflow launch <workflow-id> --liveOperator commandAccounts that send from Klaviyo (drafts only)
node scripts/klaviyo/klaviyo.mjs audiences --counts
node scripts/klaviyo/klaviyo.mjs push-email --manifest <manifest.json> --id <email-id> --from-email <sender> --include <list-id>