Skip to main content
Exotel is a cloud telephony platform widely used across India and Southeast Asia, offering programmable voice and messaging APIs. Rapida integrates with Exotel to enable AI-powered phone conversations using Exotel’s media streaming capabilities.
Exotel is particularly well-suited for businesses operating in India and SEA, offering local virtual numbers, regulatory compliance, and reliable connectivity in those regions.

How It Works


Prerequisites

Exotel Account

An active Exotel account with at least one virtual number and an Exotel App (applet)

Rapida Account

An active Rapida account with a configured voice assistant
You will need your Account SID, Client ID, and Client Secret, which you can find in the Exotel Dashboard.

Step 1: Set Up Provider Credentials

Store your Exotel API credentials in Rapida so the platform can authenticate with Exotel for outbound calls and webhook handling.
1

Navigate to External Integrations

Go to Integration > Tools in the Rapida dashboard. You will see a grid of available external integrations.External Integrations Page
2

Select Exotel

Find the Exotel card and click “Setup Credential”.
3

Enter Your Exotel Credentials

Exotel CredentialsA modal will appear. Fill in the following fields:
FieldDescriptionWhere to Find
Key NameA friendly name for this credential (e.g., “Production Exotel”)Your choice
Account SIDYour Exotel Account SIDExotel Dashboard → Settings → API
Client IDYour Exotel API Client IDExotel Dashboard → Settings → API Credentials
Client SecretYour Exotel API Client SecretExotel Dashboard → Settings → API Credentials
Click “Configure” to save.
Keep your Client Secret secure. It is used for API authentication and should not be shared publicly.
4

Verify Connection

After saving, the Exotel card should display “Connected”. Click on it to see credential details, last updated time, and management options.

Step 2: Configure Phone Deployment

With credentials saved, configure your assistant’s phone deployment to use Exotel.
1

Open Your Assistant

Navigate to Assistants and select the assistant you want to deploy via phone.
2

Go to Phone Deployment

Click “Deploy”“Phone” to open the phone deployment configuration page.
3

Select Exotel as Telephony Provider

In the Telephony section:
  1. Select Exotel from the telephony provider dropdown
  2. Choose the Exotel credential you created in Step 1 from the Credential dropdown
  3. Enter your Phone number — the Exotel virtual number for inbound calls and outbound caller ID
  4. Enter the App ID — your Exotel applet identifier that routes calls to Rapida
The App ID is the Exotel applet (flow) identifier. You create this in the Exotel dashboard and configure it to forward calls to Rapida’s webhook URL.
4

Configure Experience Settings

Set up the conversation experience:
SettingDescriptionDefault
GreetingThe first message the AI speaks when answering(optional)
Error MessageMessage spoken when an error occurs(optional)
Idle TimeoutSeconds before prompting an idle caller30
Idle MessageMessage spoken when caller is idle"Are you there?"
Idle Timeout RetriesHow many times to retry before ending call2
Max Call DurationMaximum call length in seconds300
5

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.
6

Save Deployment

Click “Deploy” to save. Your assistant is now ready to handle phone calls via Exotel.

Step 3: Configure Your Exotel App

Point your Exotel app (applet) to Rapida so incoming calls are routed to your AI assistant.
1

Open Exotel Dashboard

Go to the Exotel Dashboard and navigate to App Bazaar or Flows.
2

Create or Edit an App

Create a new app or edit an existing one. Configure the app to connect incoming calls to an external URL.Set the webhook URL to:
https://websocket-01.in.rapida.ai/v1/talk/exotel/call/{your-assistant-id}?x-api-key={your-api-key}
Replace {your-assistant-id} with your Rapida assistant ID.
3

Link Phone Number

Assign your Exotel virtual number to this app so inbound calls are routed through it.
4

Save

Save the app configuration. Your Exotel number is now connected to Rapida.

Making Outbound Calls

Once your phone deployment is configured, you can initiate outbound calls using the Rapida API or SDKs.
from rapida import Rapida

client = Rapida(api_key="rpd-xxx-your-key")

call = client.calls.create(
    assistant_id=123456789,
    to_number="+919876543210",
    from_number="+911234567890",  # optional, uses deployment default
    metadata={"campaign": "follow-up"},
)

print(f"Call queued: conversation_id={call.conversation.id}")

Features

FeatureDescription
Inbound CallsCustomers call your Exotel number and speak with your AI assistant
Outbound CallsInitiate calls programmatically via SDK or API
Real-time StreamingBidirectional audio via Exotel media streams
Call RecordingAutomatic conversation capture for review and compliance
India & SEA NumbersLocal virtual numbers for Indian and Southeast Asian markets
Number MaskingProtect customer and agent phone numbers during calls
Regulatory ComplianceCompliant with TRAI and regional telecom regulations

Troubleshooting

  • Verify the webhook URL in your Exotel App configuration
  • Ensure the URL uses https:// and the correct assistant ID
  • Confirm the phone number is assigned to the correct Exotel App
  • Verify your Exotel credential (Account SID, Client ID, Client Secret) is correct in Rapida
  • Check that your STT and TTS providers are configured in the phone deployment
  • Ensure the App ID in your phone deployment matches the Exotel app
  • Verify the Exotel credential is connected in Integration > Tools
  • Ensure the from_number is a valid Exotel number assigned to your account
  • Check that the phone deployment is configured and saved with the correct App ID
  • The App ID should match the Exotel applet/flow identifier exactly
  • Verify the app is active and not paused in the Exotel dashboard
  • Ensure the app has the correct webhook URL configured

For more information on Exotel’s platform, visit the Exotel Developer Documentation.