Marketing · draft_newsletter
Draft newsletter
HTML content of a newsletter.
- Price
- plan AI usage
- Requirements
- No connector
- runs on platform keys
- Human approval
- No
- read or internal write
Input
| Field | Type | Description |
|---|---|---|
| subject * | string | Email subject line (≤ 50 chars, action-oriented) |
| htmlBody | string | Optional complete HTML email you built yourself — stored as-is instead of the built-in template |
| preheader | string | Preview text shown next to subject in inbox |
| sections * | array | Content sections with heading and body text |
| ctaText | string | Call-to-action button text |
| ctaUrl | string | Call-to-action button URL |
| language | fr | en | Language (default: en) |
| campaignId | string | Optional campaign UUID |
Call this tool
Through the HTTP API, or from the MCP server with the run meta-tool.
curl https://api.ezyagents.fr/gateway/v1/run \
-H "Authorization: Bearer ezk_…" -H "Content-Type: application/json" \
-d '{"tool":"draft_newsletter","input":{"subject":"…","htmlBody":"…","preheader":"…","sections":[]}}'$
run({ "tool": "draft_newsletter", "input": {"subject":"…","htmlBody":"…","preheader":"…","sections":[]} })