Draft email with AI

POST /ai/draft

Write an email in the team's brand voice from a web page, a brief, or both. Returns subject, preview text and editor blocks. With target, writes it straight into a template or draft broadcast, and anyone with it open sees it arrive.

FieldTypeDescription
urlstringA page to write from: a blog post, changelog, product or event page.
briefstringWhat the email is for. Provide url, brief or both.
kindstringbroadcast or template.
lengthstringshort, medium or long.
tonestringA tone for this email, on top of the brand voice.
variablesstring[]Variables the email may use, like first_name.
targetobject{ type: "template" | "broadcast", id } to write into.

More guides