Draft Email Campaign
draft_email_campaignSave an email campaign for the owner to review: a subject, a plain-text body, the customers to email (lead_ids, each with recorded email permission) and the verified sender. Returns the campaign id and the fingerprint of this exact revision. Sends nothing; the owner approves it with approve_email_campaign and it only goes out after launch_email_campaign. Needs an admin of the business. Campaign email only goes from the business’s own verified sending domain, to customers with recorded email permission who are not on the do-not-email list, within the daily amount the business’s Kai level allows.
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": {
"business_id": "<business_id>",
"sender_id": "<sender_id>",
"subject": "<subject>",
"text": "<text>",
"lead_ids": "<lead_ids>"
},
"name": "draft_email_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The plain-text email body. | |
| design | No | Optional structured email design. text must equal its rendered text version; no raw HTML. The owner approves the exact HTML and text. | |
| subject | Yes | The email subject. | |
| lead_ids | Yes | The customers (lead ids) to email; each needs recorded email permission. | |
| sender_id | Yes | The verified sender to send from. | |
| business_id | Yes | The business that sends the email. | |
| daily_limit | No | Optional: most emails sent per day (default: the most the sender and the Kai level allow). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| code | No | ||
| error | No | Present when success is false | |
| action | No | ||
| status | No | ||
| success | Yes | Whether the tool completed successfully | |
| senderId | No | ||
| fingerprint | No |