Draft an email
postfjord_draft_campaignCreates a branded email draft for a tag, segment, or all confirmed contacts, using custom blocks or a brief, and reports reach plus an editor link; nothing is sent.
Instructions
For one email to the list; a series that starts by itself for each new contact is postfjord_create_email_automation. Creates a new email as a draft, in the workspace's brand colors with its logo on top. Nothing is sent. It can carry who it goes to: tags (contacts with any of these tag names, matched without caring about capitals) or a segment (a saved segment's name or id); without either it goes to everyone who said yes. The answer then says how many confirmed contacts it reaches. Either write it yourself with subject, preheader and blocks (read postfjord_get_brand_profile first and follow its writing rules), or give a brief and Postfjord's own AI drafts it (uses the workspace AI budget). Images are ids from postfjord_list_media. A member opens the draft in the editor from editUrl. To send it, use postfjord_schedule_campaign, which needs the Schedule and publish level. 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 |
|---|---|---|---|
| goal | No | With a brief: what the email should make people do. | |
| logo | No | Put the brand logo on top. Default true. | |
| name | No | An internal name, only the team sees it. | |
| tags | No | Send only to contacts with any of these tags, by tag name (see postfjord_list_tags). Not together with segment. | |
| brief | No | Instead of blocks: what the email is about, for Postfjord's AI. | |
| links | No | With a brief: the only links a button may use. | |
| blocks | No | The email top to bottom. Leave out when you send a brief. | |
| segment | No | Send only to this saved segment, by name or id (see postfjord_mail_overview). Not together with tags. | |
| subject | No | ||
| language | No | Two letter language code of the email, for example en or es. Default: the brand's. | |
| usePosts | No | With a brief: may use recent posts and their photos. Default true. | |
| preheader | No | The line inboxes show after the subject. | |
| 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. |