Marketing · generate_email_campaign
Email campaign
Create and schedule a Mailchimp or Brevo campaign.
- Price
- included
- Requirements
- Mailchimp or Brevo
- set it up in Settings → Integrations
- Human approval
- Yes, by default
- outside-facing write: a human validates
Input
| Field | Type | Description |
|---|---|---|
| name * | string | Campaign name |
| subject * | string | Email subject line |
| htmlContent * | string | HTML email body |
| audienceId | string | Audience UUID from segment_audience (Mailchimp/Brevo: the provider list/segment id is resolved from it) |
| providerListId | string | Provider list id to target directly (Mailchimp list id / Brevo list id) when no audienceId |
| providerSegmentId | string | Mailchimp saved segment id inside the list (optional) |
| recipients | array | Internal sending (no Mailchimp/Brevo): explicit recipient list, max 500. Each: {email, firstName?}. |
| fromName | string | Sender name |
| fromEmail | string | Sender email address |
| scheduleAt | string | ISO 8601 datetime to schedule sending (optional) |
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":"generate_email_campaign","input":{"name":"…","subject":"…","htmlContent":"…","audienceId":"…"}}'$
run({ "tool": "generate_email_campaign", "input": {"name":"…","subject":"…","htmlContent":"…","audienceId":"…"} })