Draft a journey
draft_journeySave a DRAFT automation journey: an event starts it, then it waits and emails, in order — "when someone joins the VIP segment, email them after 15 minutes, then again 3 days later". It is saved switched OFF: nothing is sent until it is switched on — by the owner in the journey editor, or with set_journey_enabled only when the user asks. audience_entered / audience_exited need segment_id (from list_contact_filter_vocabulary; create_contact_segment if it does not exist) — without one it would fire for every segment, so it is refused. Up to 5 emails; each delay is measured from the previous step. Write the copy yourself. Branches are added afterwards in the editor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Shown in the journeys list, e.g. "Welcome new enquiries" | |
| emails | Yes | The emails, in order | |
| site_id | Yes | The site, from list_sites | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| segment_id | No | Required for audience_entered / audience_exited; not allowed for other triggers | |
| trigger_event | Yes | What starts it: audience_entered (joined a segment — the usual welcome/nurture), form_submitted, order_paid, order_shipped, abandoned_cart, booking_completed, booking_confirmed |