Use start_an_outbound_call() to dial any phone number and connect it to your agent.
Get your API key at app.smallest.ai/dashboard/api-keys and export it as SMALLEST_API_KEY, or pass SmallestAI(api_key="sk_...") directly.
Phone numbers must be in E.164 format: +[country code][number]
Examples: +14155551234 (US), +919876543210 (India)
Save this ID to retrieve transcripts and analytics later.
Use a library like phonenumbers to validate before calling. Invalid numbers waste API calls.
Wait 5-10 seconds between calls to avoid rate limits.
Save them in your database to retrieve transcripts later.
Wrap calls in try/except and log failures for retry.