create_campaign
Create a marketing campaign (email, SMS, or WhatsApp) in DRAFT. For email channelConfig, use subject + htmlBody + optional plainTextBody. recipientSource="list" is accepted as an alias for "individual".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Campaign name (internal) | |
| status | No | Default DRAFT | |
| channel | Yes | email | sms | whatsapp | push | |
| segmentId | No | Required if recipientSource="segment" | |
| scheduledAt | No | ISO datetime for scheduled send (status must be SCHEDULED) | |
| recipientIds | No | Required if recipientSource="individual", "list", or "csv"; values are account IDs | |
| channelConfig | No | Channel-specific config: subject + htmlBody for email, body for sms/whatsapp, templateId, etc. Legacy email html is normalized to htmlBody. | |
| recipientSource | No | Where to source recipients from. "list" is normalized to "individual". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Tool result payload — shape varies per tool, see the tool description | |
| summary | Yes | One-line human-readable summary of the action | |
| renderType | Yes | UI rendering hint for the result |