All tools

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

FieldTypeDescription
name *stringCampaign name
subject *stringEmail subject line
htmlContent *stringHTML email body
audienceIdstringAudience UUID from segment_audience (Mailchimp/Brevo: the provider list/segment id is resolved from it)
providerListIdstringProvider list id to target directly (Mailchimp list id / Brevo list id) when no audienceId
providerSegmentIdstringMailchimp saved segment id inside the list (optional)
recipientsarrayInternal sending (no Mailchimp/Brevo): explicit recipient list, max 500. Each: {email, firstName?}.
fromNamestringSender name
fromEmailstringSender email address
scheduleAtstringISO 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":"…"} })