What You Can Do
- Enable inbound and outbound voice calls
- Connect phone numbers to agents
- Configure voice settings
Prerequisites
- A Twilio account (sign up here)
- Twilio Account SID and Auth Token
- At least one Twilio phone number
Why Connect Twilio?
Twilio integration enables:- Inbound calls: Customers can call your AI agent
- Outbound calls: Agents can initiate calls
- Voice conversations: Real-time voice AI interactions
- Call recording: Record conversations for quality assurance
Step-by-Step: Connect Twilio
1
Get Twilio Credentials
- Log in to your Twilio Console
- Find your Account SID and Auth Token on the dashboard
- Copy these values
2
Navigate to Connect Twilio
Go to Settings → Connect Twilio in the sidebar.
3
Enter Credentials
- Paste your Account SID
- Paste your Auth Token
4
Connect
Click Connect to link your Twilio account.
5
Verify Connection
You should see a success message and your available phone numbers.
Step-by-Step: Assign a Phone Number to an Agent
1
Go to Agent Settings
Navigate to your agent’s Channels tab.
2
Select Phone Channel
Click on the Phone channel option.
3
Choose Phone Number
Select a phone number from your connected Twilio numbers.
4
Configure Settings
Set up voice settings:
- Voice provider (Google, AWS Polly, ElevenLabs)
- Language
- Voice style
5
Save
Click Save to activate the phone channel.
Configuration Options
| Setting | Description |
|---|---|
| Account SID | Your Twilio account identifier |
| Auth Token | Secret key for API authentication |
| Phone Numbers | Available numbers from your Twilio account |
Voice Settings
Once connected, configure voice options for each agent:| Setting | Options |
|---|---|
| Voice Provider | Google TTS, AWS Polly, ElevenLabs, Microsoft Speech |
| Language | English, Spanish, French, German, etc. |
| Voice Style | Male, Female, various accents |
| Speech Speed | Slow, Normal, Fast |
Best Practices
Use a dedicated Twilio account
Use a dedicated Twilio account
Create a separate Twilio account for Boty to keep billing and usage clear.
Start with a local number
Start with a local number
Begin with a local phone number before adding toll-free numbers.
Test before going live
Test before going live
Use the Playground to test voice interactions before publishing.
Monitor usage
Monitor usage
Keep an eye on Twilio costs, especially for voice minutes.
Troubleshooting
Connection failed
Connection failed
- Verify Account SID and Auth Token are correct
- Ensure your Twilio account is active
- Check that your Twilio account has available balance
No phone numbers showing
No phone numbers showing
- Purchase a phone number in your Twilio console
- Ensure the number has voice capabilities enabled
- Refresh the page after purchasing
Calls not working
Calls not working
- Verify the phone number is assigned to an agent
- Check that the agent is published
- Ensure voice settings are configured
- Test in the Playground first
Poor voice quality
Poor voice quality
- Check your internet connection
- Try a different voice provider
- Adjust speech speed settings
Twilio Costs
Typical Twilio costs:- Phone number: ~$1/month
- Inbound calls: ~$0.0085/minute
- Outbound calls: ~$0.014/minute