Campaigns & Analytics
Run outbound lead campaigns, track batch performance, and A/B test agent scripts from the client dashboard.
Lead batches
Import CSV leads per agent under Agents → Leads. Each import creates a lead batch you can target for outbound dialing and SMS follow-up.
POST /dashboard/agents/leads/import— CSV upload (server-side)POST /dashboard/agents/{id}/campaign— start outbound campaign for a batchGET /dashboard/agents/{id}/lead-batches— list batches and stats
SMS follow-up campaigns
After calls complete, queue SMS templates to recent callers or an entire lead batch (requires Telnyx configured in admin).
POST /dashboard/sms-campaigns— create campaign (target_mode:recent_callsorlead_batch)POST /dashboard/sms-campaigns/{id}/send— send batch
Script A/B variants
Add weighted script variants on an agent to split traffic and compare completion rates.
GET /dashboard/agents/{id}/script-variantsPOST /dashboard/agents/{id}/script-variants—name,weight,system_prompt
Variant completed_count increments automatically when calls finish.
Analytics
View usage, call volume, and campaign stats in the dashboard Usage and Analytics panels. Webhook events (call.ended, call.analyzed) feed external BI tools.