Automations
Event-triggered sequences: steps, A/B, status, runs, metrics, pre-launch checks.
email_create_automation
WRITE — Create an event-triggered automation (welcome flow, weekly engagement sequence, win-back).
email_update_automation
WRITE — Update an automation's trigger, filter, priority, exit event, or name.
email_add_automation_steps
WRITE — Append steps to the END of an automation or one of a branch's lanes (allowed while active — in-flight runs are unaffected and will flow into the new steps).
email_update_automation_step
WRITE — Edit one step by position.
email_remove_automation_step
WRITE — Remove a step by position.
email_list_automations
READ — List the company's automations with status, trigger, and step count.
email_get_automation
READ — Full automation detail: config + ordered steps + run counts per status.
email_set_automation_status
WRITE — Enable or pause an automation — an explicit human decision you relay, never originate.
email_list_automation_runs
READ — Per-contact runs of an automation: state, current step, next send time.
email_get_automation_metrics
READ — Per-step and per-variant funnel for an automation: sent, delivered, opened, clicked, bounced (from message + event data).
email_preview_automation
READ — Dry-run the sequence: render every send step with a sample contact (its example props ⊕ any props you pass) and return subject + text (+ html on request), plus the humanized timeline.
email_set_ab_test
WRITE — Attach or clear an A/B split on a step: weighted template VERSIONS (create variant versions with email_update_template variantKey + publish them first).
email_duplicate_automation
WRITE — Clone an automation and all its steps into a new PAUSED automation (delays, prop overrides, A/B variants, send windows preserved).
email_pre_launch_check
READ — Read-only pre-launch checklist for an automation: templates published, verified sending domain, whether the trigger event has ever fired.
email_delete_automation
WRITE — Archive an automation (paused only; running contacts' runs are canceled).