Create an email automation (draft)
postfjord_create_email_automationCreates a draft email automation series of 1 to 10 emails triggered by a form signup, tag, or segment, with delays between each send. Nothing sends until approved.
Instructions
For a series of emails that starts by itself; one email to a list is postfjord_draft_campaign, and DM replies on Instagram and Facebook are postfjord_create_automation. Creates an email automation as a draft: a series of 1 to 10 emails that go by themselves to each person who confirmed they want the emails, once something starts it. Triggers: form (they confirm through a signup form, formId from postfjord_list_signup_forms or "any"), tag (a confirmed contact gets the tag, named; a new name makes the tag) or segment (a saved segment id from postfjord_mail_overview). The first email goes right away unless it has a delay; each later one waits delayDays (default 2) or delayHours after the one before. Write the emails in the brand voice (postfjord_get_brand_profile). Nobody gets anything yet: show the person each email and what starts it, then start it with postfjord_set_email_automation only after they approve. Needs email switched on and the Draft scope. On a retry after a timeout or error, send the same idempotency_key: the first answer comes back and nothing is made or sent twice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name on the Automations screen, for example "Welcome to the spring program". | |
| emails | Yes | ||
| trigger | Yes | ||
| idempotency_key | No | Your own id for this one action, for example post-20261006-launch. Make a new one for each new thing; send the same one again only when you retry. Left out, the exact same call within 10 minutes counts as a retry. |