nevent_create_campaign
Create a new campaign draft (email, SMS, WhatsApp, push, or multi-channel). PREREQUISITES: call nevent_list_segments to get the target segment_id, and nevent_list_templates to get the template_id. The campaign is always created in DRAFT status — no messages are sent. After creation, call nevent_schedule_campaign to schedule delivery. For EMAIL_ONLY (and email multi-channel): email_subject is required. For SMS_ONLY/WHATSAPP_ONLY/PUSH_ONLY and multi-channel involving those: message is required. Optional fields: from_name, preview_text, template_id, segment_ids, utm_source/medium/campaign/content/term/custom_params, reply_to (email address for reply routing — useful when replies should go to a different mailbox than the From address), sender_identity_id (the sender to send the email campaign with; list the eligible ones and the default with nevent_get_sending_profile; omitted = the organization's default sender; a sender that is not eligible is refused with sender_unavailable). Always confirm the segment audience count with the user before scheduling.
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>",
"channel": "<channel>"
},
"name": "nevent_create_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Campaign name (required, max 255 characters) | |
| channel | Yes | Delivery channel (nev-api CommunicationChannel enum). Use EMAIL_ONLY, SMS_ONLY, WHATSAPP_ONLY, PUSH_ONLY for single-channel; EMAIL_AND_SMS, EMAIL_AND_WHATSAPP, PUSH_AND_SMS, PUSH_AND_WHATSAPP, SMS_AND_WHATSAPP for multi-channel; ALL_CHANNELS or OMNICHANNEL for broad delivery. Legacy values EMAIL/SMS/WHATSAPP are accepted but deprecated. | |
| message | No | Message text body (required when channel=SMS or WHATSAPP) | |
| reply_to | No | Reply-To email address (optional). Recipients' replies go to this address instead of the From address. Must be a valid email, max 254 chars. Only meaningful for email-bearing channels. | |
| utm_term | No | UTM term parameter — paid search keyword. Max 100 chars. | |
| from_name | No | Sender display name (optional, defaults to tenant sender name) | |
| email_body | No | HTML body content of the email (optional, can be set later) | |
| utm_medium | No | UTM medium parameter (e.g. "email", "sms"). Max 100 chars. Auto-detected from channel if omitted. | |
| utm_source | No | UTM source parameter (e.g. "nevent", "newsletter"). Max 100 chars. | |
| segment_ids | No | Array of segment IDs to target (optional, can be set later) | |
| template_id | No | Template ID to pre-populate campaign content (optional) | |
| utm_content | No | UTM content parameter — differentiates links/variants. Max 100 chars. | |
| preview_text | No | Inbox preview text (optional, shown in email client summaries) | |
| utm_campaign | No | UTM campaign parameter (e.g. "summer-sale-2026"). Max 100 chars. Defaults to slugified campaign name. | |
| email_subject | No | Email subject line (required when channel=EMAIL, max 998 chars per RFC 5322) | |
| utm_custom_params | No | Custom tracking parameters as key-value pairs appended to tracked links (optional). | |
| sender_identity_id | No | Sender to send the email campaign with: an identityId from nevent_get_sending_profile → senders.senders[] with selectable=true. Omit it to use the organization's default sender (senders.defaultIdentityId). Only meaningful for email-bearing channels and when senders.perCampaign is true. |