Create a newsletter draft
create_newsletterSaves a new newsletter draft from plain fields (subject, title, introduction, sections, button). Nothing is sent. This action uses the supplied content without AI generation or template selection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | Optional: a full HTML body instead of the blocks (it is sanitized; the brand header, address and unsubscribe footer are added). | |
| name | Yes | Internal name. | |
| title | Yes | The headline. | |
| ctaUrl | Yes | Button link (https). | |
| layout | No | ||
| eyebrow | No | Small line above the title. | |
| signoff | No | Closing line. | |
| subject | Yes | Subject line. | |
| audience | No | Who it goes to: contacts in ANY (match "any") or ALL (match "all") of the included segments, tags and filters, minus the excluded ones. Nothing included means every contact of the product. Consent and suppressions are always applied on top. | |
| ctaLabel | Yes | Button label. | |
| sections | No | Body sections, each with a heading and body text. | |
| subjectB | No | Optional second subject for an A/B test (half the audience gets each). | |
| preheader | No | Preview text after the subject. | |
| productId | No | Product id from list_products. | |
| introduction | Yes | Opening paragraph(s). {{first_name}} and other merge tags work. |