Overview
Twilio is a cloud communications platform that enables voice calling, messaging, and video capabilities. Dograh AI’s Twilio integration provides seamless connectivity for your voice agents.Prerequisites
Before setting up Twilio integration, you’ll need:- A Twilio account
- Account SID and Auth Token from your Twilio Console
- At least one Twilio phone number
- Dograh AI instance running and accessible
Video Tutorial
Watch this step-by-step guide to set up Twilio with Dograh AI:Configuration
Step 1: Get Twilio Credentials
- Log in to your Twilio Console
- Find your Account SID and Auth Token on the dashboard
- Navigate to Phone Numbers → Manage → Active Numbers
- Copy your phone number(s)
Step 2: Configure in Dograh AI
- Navigate to Workflow → Phone Call → Configure Telephony
- Watch the Twilio setup video tutorial above for detailed guidance
- Select Twilio as your provider
- Enter your credentials:
- Account SID
- Auth Token
- From Phone Number (with country code, e.g., +1234567890)
- Click Save Configuration
Step 3: Test Your Configuration
- Create a test workflow
- Click “Test Call” to verify connection
- Check call logs for successful connection
How It Works
Outbound Calling
When you initiate a call through Dograh AI:- The system selects a phone number from your configured pool
- Twilio places the call to your recipient
- Once connected, audio streams through WebSocket for real-time voice interaction
- Call status updates are tracked throughout the lifecycle
Campaign Features
When using Twilio with campaigns:- Rate Limiting: Enforced per organization to prevent overwhelming
- Automatic Retry: Failed calls (busy/no-answer) are retried automatically
- Concurrent Call Management: System manages call slots to optimize throughput
Troubleshooting
Invalid phone number error
Invalid phone number error
Ensure phone numbers include country code in E.164 format:
+1234567890Authentication failed
Authentication failed
- Verify Account SID and Auth Token are correct
- Check for extra spaces in credentials
- Ensure credentials haven’t been regenerated in Twilio Console
Webhook signature validation failing
Webhook signature validation failing
- Confirm your Auth Token matches exactly
- Verify the webhook URL matches what Twilio sends
- Check if you’re behind a proxy that modifies requests
No audio on calls
No audio on calls
- Verify WebSocket connection is established
- Check firewall rules for WebSocket traffic
- Ensure audio pipeline is configured correctly
Best Practices
- Store credentials securely in the database
- Test your configuration with a single call before running campaigns
- Monitor Twilio Console for usage and billing