Email marketing: prepare a draft campaign
email_marketing_campaign_draftPREPARE a DRAFT e-mail campaign — it is only proposed; the person confirms the card, and even then NOTHING is sent: the draft waits in the cabinet's Email Marketing, where the owner tests, approves and sends it. Give a name, the audience 'segment' (id or name from email_marketing_campaigns) and EITHER an existing 'template' (id or name) OR a new letter: 'subject' + 'body' (plain text, paragraphs separated by a blank line; the unsubscribe footer is added automatically). Never claim a campaign was sent or scheduled. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"segment": "<segment>"
},
"name": "email_marketing_campaign_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| name | Yes | ||
| segment | Yes | ||
| subject | No | ||
| template | No |