CookbooksMYLO Cookbooks
Place Outbound Reminder Calls
Schedule MYLO outbound calls from a CSV of appointments and track each call to completion.
- Schedule calls with
to,agent_id, andscheduled_at - Launch a batch from CSV without double dialing
- Poll per-call status until each reminder completes Time to complete: ~20 minutes
Prerequisites
SAGEA_API_KEYexported in your shell asBearerauth- Python 3.10+ with
requestsinstalled - A CSV file with
phone,name, andscheduled_atcolumns - Complete Send your first API request
- Read the MYLO overview import from '@/components/Tabs';
Step 1: Prepare your appointments CSV
Create a CSV with E.164 numbers and ISO timestamps for each reminder.
Use +97798XXXXXXXX format and keep times in the recipient local zone.
Step 2: Schedule outbound calls
Call POST /mylo/calls once per row with to, agent_id, and scheduled_at.
Store each returned call_id next to the CSV row for status polling.
Step 3: Poll per-call status to completion
Poll each call until it reaches a terminal state before marking it done.
Retry busy once, and log failed numbers for manual follow up.
Verify
| Error | Cause | Fix |
|---|---|---|
401 Unauthorized | Missing or invalid API key | Export valid SAGEA_API_KEY and retry |
404 session_not_found | Stale call ID in poll loop | Refresh call_id list from Step 2 output |
429 rate_limit_exceeded | Batch scheduled too fast | Add delay between creates, retry with backoff |
422 voice_not_found | Agent uses unknown voice preset | Set agent voice to nova or atlas |
