# Command: launch-campaign

Launch a coordinated Email Marketing + Messaging Hub campaign with scheduled sends across multiple channels and segments.

## Inputs

- **campaign_name** — identifier for campaign tracking and reporting; defaults to auto-generated slug {campaign-name-YYYYMMDD}
- **audience_segment** — audience filter (organization ID, user tag, or custom SQL); defaults to all active subscribers
- **email_template** — pre-built email template ID or inline HTML body; required if email_marketing channel selected
- **sms_template** — SMS message text (160 chars max); optional, required only for SMS sends
- **scheduled_at** — UTC send time(s) as ISO 8601 or cron expression; defaults to immediate
- **channel_list** — comma-separated channels (email, sms, whatsapp); defaults to email only

## Steps

1. Create campaign draft in email_marketing or messaging_hub depending on primary channel selection
2. Define and validate audience segment using newx-platform-segment-audience agent; confirm contact count
3. Configure message templates (email subject/body, SMS text, WhatsApp format) via newx-platform-template-configurator
4. Schedule send window and timezone via newx-platform-scheduling-coordinator; verify cron expression and daylight savings
5. Activate campaign and enable delivery tracking via newx-platform-delivery-monitor for real-time webhook logging
6. Execute test send to sample segment (5-10 contacts) and verify delivery across all channels
7. Deploy to full audience and generate post-send report with delivery rates, engagement metrics, and conversion attribution

## Constraints

- Email Marketing and Messaging Hub must be synced via registered webhook (verify in agentshq integrations dashboard)
- All message templates must comply with brand guidelines and platform compliance policies before activation
- Scheduled sends respect organization timezone setting (America/Sao_Paulo configured globally; override per campaign if needed)

Done when: All selected channels have received and logged the campaign send, first batch delivers at scheduled_at, and delivery receipts are visible in agentshq audit trail with zero failed sends or escalations required.