Vonage uses WebSocket audio streams for real-time media. When a call connects, Vonage opens a WebSocket to Rapida carrying linear PCM audio. Rapida handles all codec conversion and resampling transparently.
How It Works
Prerequisites
Vonage Account
An active Vonage account with at least one phone number and a Vonage Application
Rapida Account
An active Rapida account with a configured voice assistant
Step 1: Set Up Provider Credentials
Store your Vonage API credentials in Rapida so the platform can authenticate with Vonage for outbound calls and webhook handling.Navigate to External Integrations
Go to Integration > Tools in the Rapida dashboard. You will see a grid of available external integrations.

Enter Your Vonage Credentials

| Field | Description | Where to Find |
|---|---|---|
| Key Name | A friendly name for this credential (e.g., “Production Vonage”) | Your choice |
| Application ID | Your Vonage Application ID | Vonage Dashboard → Applications → Your App |
| Private Key | Your Vonage Application private key (full PEM content) | Downloaded when creating the Vonage Application |
Step 2: Configure Phone Deployment
With credentials saved, configure your assistant’s phone deployment to use Vonage.Select Vonage as Telephony Provider
In the Telephony section:
- Select Vonage from the telephony provider dropdown
- Choose the Vonage credential you created in Step 1 from the Credential dropdown
- Enter your Phone number — the Vonage virtual number for inbound calls and outbound caller ID (e.g.,
+15551234567)
Configure Experience Settings
Set up the conversation experience:
| Setting | Description | Default |
|---|---|---|
| Greeting | The first message the AI speaks when answering | (optional) |
| Error Message | Message spoken when an error occurs | (optional) |
| Idle Timeout | Seconds before prompting an idle caller | 30 |
| Idle Message | Message spoken when caller is idle | "Are you there?" |
| Idle Timeout Retries | How many times to retry before ending call | 2 |
| Max Call Duration | Maximum call length in seconds | 300 |
Configure Audio Providers
Select your Speech-to-Text (STT) and Text-to-Speech (TTS) providers. These determine how audio is transcribed and synthesized during the call.
Step 3: Configure Your Vonage Application
Point your Vonage Application’s webhook URLs to Rapida so incoming calls are routed to your AI assistant.Open Vonage Dashboard
Go to Vonage Dashboard → Applications and select your application.
Set Voice Webhooks
Under Capabilities → Voice, configure:
Replace
| Field | Value |
|---|---|
| Answer URL | https://websocket-01.in.rapida.ai/v1/talk/vonage/call/{your-assistant-id}?x-api-key={your-api-key} |
| Event URL | https://websocket-01.in.rapida.ai/v1/talk/vonage/ctx/{contextId}/event?x-api-key={your-api-key} |
| HTTP Method | POST |
{your-assistant-id} with your Rapida assistant ID.Link Phone Number
Under Numbers, link your Vonage virtual number to this application so inbound calls are routed through it.
Making Outbound Calls
Once your phone deployment is configured, you can initiate outbound calls using the Rapida API or SDKs.- Python
- Node.js
- cURL
Features
| Feature | Description |
|---|---|
| Inbound Calls | Customers call your Vonage number and speak with your AI assistant |
| Outbound Calls | Initiate calls programmatically via SDK or API |
| Real-time Streaming | Bidirectional audio via Vonage WebSocket streams |
| Call Recording | Automatic conversation capture for review and compliance |
| Status Callbacks | Receive call lifecycle events via Vonage event webhooks |
| Number Insight | Get detailed information about phone numbers |
| Global Numbers | Use Vonage virtual numbers from 80+ countries |
Troubleshooting
Calls don't reach Rapida
Calls don't reach Rapida
- Verify the Answer URL in your Vonage Application settings
- Ensure the URL uses
https://and the correct assistant ID - Confirm the phone number is linked to the correct Vonage Application
One-way audio or no audio
One-way audio or no audio
- Verify your Vonage credential (Application ID + Private Key) is correct in Rapida
- Ensure the private key is the complete PEM content
- Check that your STT and TTS providers are configured in the phone deployment
Outbound calls fail
Outbound calls fail
- Verify the Vonage credential is connected in Integration > Tools
- Ensure the
from_numberis a valid Vonage number linked to your application - Check that the phone deployment is configured and saved
Event callbacks not received
Event callbacks not received
- Ensure the Event URL is configured in Vonage Application settings
- Verify the URL format includes the correct path
- Check the Vonage API Dashboard for webhook delivery logs
Related Resources
Create an Assistant
Build your voice AI assistant
Phone Deployment
Overview of phone deployment options
Outbound Call API
API reference for creating calls
Conversation Logs
View call history and transcripts