Overview
Vonage (formerly Nexmo) is a cloud communications platform that provides global voice, messaging, and video capabilities. Dograh AI’s Vonage integration enables high-quality voice interactions with your agents using Vonage’s robust infrastructure.Prerequisites
Before setting up Vonage integration, you’ll need:- A Vonage account
- Vonage Application with Voice capability enabled
- Application ID and Private Key from your Vonage Dashboard
- At least one Vonage phone number
- Dograh AI instance running and accessible
Video Tutorial
Watch this step-by-step guide to set up Vonage with Dograh AI:Configuration
Step 1: Create Vonage Application
- Log in to your Vonage Dashboard
- Navigate to Applications → Create a new application
- Enable Voice capability
- Generate a private key (save this securely - you’ll need it)
- Note your Application ID
Step 2: Get API Credentials
- Find your API Key and API Secret in the dashboard under API Settings
- Navigate to Numbers → Your Numbers
- Copy your phone number(s)
- Link your numbers to your application
Step 3: Configure in Dograh AI
- Navigate to Workflow → Phone Call → Configure Telephony
- Watch the Vonage setup video tutorial above for detailed guidance
- Select Vonage as your provider
- Enter your credentials:
- Application ID
- Private Key (entire key including BEGIN/END lines)
- API Key (Optional - for some operations)
- API Secret (Optional - for webhook verification)
- From Phone Number (without ’+’ prefix, e.g., 14155551234)
- Click Save Configuration
Step 4: Test Your Configuration
- Create a test workflow
- Click “Test Call” to verify connection
- Check call logs for successful connection
How It Works
Technical Details
Vonage integration differs from other providers in key ways:- Audio Format: Uses 16kHz Linear PCM (vs Twilio’s 8kHz μ-law)
- Protocol: NCCO (Nexmo Call Control Objects) instead of TwiML
- Authentication: JWT-based authentication using private keys
- WebSocket: Binary audio frames instead of base64-encoded
Call Flow
- Dograh AI generates a JWT token using your private key
- Call is initiated via Vonage Voice API
- Vonage requests NCCO instructions at the webhook URL
- Dograh returns WebSocket connection details
- Audio streams as 16kHz PCM over WebSocket
- Real-time voice interaction occurs with your agent
NCCO Response Example
Campaign Features
When using Vonage with campaigns:- Global Reach: Excellent international call quality and coverage
- Number Pool Management: Automatic rotation of configured numbers
- Call Analytics: Detailed metrics via Vonage Dashboard
- Cost Tracking: Per-call cost calculation for billing
Audio Quality Optimization
Vonage uses higher quality audio (16kHz) which provides:- Clearer voice reproduction
- Better speech recognition accuracy
- More natural-sounding TTS output
- Reduced transcription errors
Troubleshooting
Voice application capabilities error
Voice application capabilities error
- Ensure “Voice” is enabled in your Vonage application
- Verify the application ID matches your configuration
- Check that your phone numbers are linked to the application
JWT authentication failed
JWT authentication failed
- Verify your private key is complete (including BEGIN/END lines)
- Check the Application ID is correct
- Ensure the private key hasn’t been regenerated in Vonage Dashboard
Invalid phone number error
Invalid phone number error
- Remove the ’+’ prefix for Vonage (use
14155551234not+14155551234) - Ensure numbers are in E.164 format without the ’+’
- Verify numbers are active in your Vonage account
No audio on calls
No audio on calls
- Verify WebSocket connection is established
- Check audio pipeline is configured for 16kHz PCM
- Monitor WebSocket for binary audio frames
- Review VAD (Voice Activity Detection) settings
Calls disconnecting early
Calls disconnecting early
- Check WebSocket heartbeat/ping-pong frames
- Verify no timeout in load balancer/proxy
- Monitor for audio pipeline errors
- Review max call duration settings
Best Practices
- Security: Private keys are stored securely in the database
- Testing: Use Vonage Voice Inspector for debugging call issues
- Numbers: Configure multiple numbers for redundancy
- Monitoring: Set up alerts in Vonage Dashboard for failures
- Cost Management: Monitor usage to control costs
Cost Considerations
Vonage pricing includes:- Per-minute charges for calls
- Phone number rental fees
- Optional features (recording, transcription)
Advanced Configuration
Custom Headers
Add custom headers to WebSocket connections:Call Recording
Enable call recording via NCCO:API Differences from Twilio
| Feature | Twilio | Vonage |
|---|---|---|
| Audio Format | 8kHz μ-law | 16kHz Linear PCM |
| Control Format | TwiML (XML) | NCCO (JSON) |
| Authentication | Basic Auth | JWT |
| WebSocket Data | Base64 text | Binary frames |
| Phone Format | With ’+‘ | Without ’+‘ |
Next Steps
- Test your Vonage integration with a simple workflow
- Configure VAD settings for optimal voice detection
- Set up monitoring and alerts
- Explore advanced features like call recording