Automations
email_set_ab_test
Attach or clear an A/B split on a step: weighted template VERSIONS (create variant versions with email_update_template variantKey + publish them first).
write email_set_ab_test
Attach or clear an A/B split on a step: weighted template VERSIONS (create variant versions with email_update_template variantKey + publish them first). Assignment is deterministic per contact-run.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
automation | string | Yes | |
position | integer | Yes | |
variants | object[] | null | Yes | null clears the split (step reverts to the template's current version). |
projectId | string | No | Target company (project id). Org-scoped tokens only; call email_list_projects first. |
preview_automationread
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.
duplicate_automationwrite
Clone an automation and all its steps into a new PAUSED automation (delays, prop overrides, A/B variants, send windows preserved).