📞
0 Total Calls
🟢
0 Active Now
0 Completed
0 Avg Score
⏱️
0s Avg Duration

Recent Calls

Loading...

Loading...

Loading...

Loading status...
📞

Twilio Configuration

Phone number & API credentials for receiving calls

Found in Twilio Console → Account Info
Found in Twilio Console → Account Info
Your Twilio phone number (with country code)
Your ngrok / tunnel public URL
🤖

OpenAI Realtime API

Powers the AI voice conversation

From platform.openai.com → API Keys
Default: gpt-4o-realtime-preview-2024-12-17
🏢

Company Branding

Customize how the AI introduces itself on calls

AI will say "Main [Company] ka assistant bol raha hoon"
Display name for the AI agent
🔌

ElevenLabs & Optional Services

For natural human-like voices (overrides OpenAI voice)

Choose which AI voice engine to use
Voice ID from ElevenLabs Dashboard
Server will restart to apply new settings
1

🔑 Get Your API Keys

OpenAI API Key

Go to platform.openai.com/api-keys

Create a new key → Copy it → Paste in Settings → OpenAI API Key

⚠️ You need a paid OpenAI account with Realtime API access
Twilio Account

Go to twilio.com/try-twilio

Sign up → Get a phone number → Copy Account SID + Auth Token

Paste all three in Settings → Twilio Configuration

2

🌐 Set Up a Public URL (Tunnel)

Twilio needs to reach your server from the internet. Use a tunnel:

# Option A: ngrok (recommended)
ngrok http 3000

# Option B: localtunnel
npx localtunnel --port 3000

Copy the https:// URL you get → Paste in Settings → Webhook Base URL

💡 Example: https://abc123.ngrok.io
3

📞 Configure Twilio Webhook

Tell Twilio to send calls to your server:

  1. Go to Twilio Console
  2. Click Phone Numbers → Manage → Active Numbers
  3. Click your phone number
  4. Scroll to "Voice & Fax" section
  5. Under "A CALL COMES IN":
    • Select: Webhook
    • URL: https://your-url.ngrok.io/incoming-call
    • Method: HTTP POST
  6. Click Save
✅ Your URL = whatever you pasted in Settings + /incoming-call
4

💾 Save Settings & Restart

Go to the Settings page, fill in all your keys, and click "Save Settings & Restart"

The server will restart with your new credentials.

🔄 After restart, refresh this page in your browser
5

📱 Make a Test Call!

Call your Twilio phone number from any phone.

The AI will:

  1. Answer automatically
  2. Greet you in Hinglish: "Namaste! RapidTrade AI assistant..."
  3. Ask qualification questions one by one
  4. Save your answers as lead data
  5. End with a polite goodbye

Check the Dashboard and Call History to see the transcript!

System Architecture

📱 Phone Call
📞 Twilio
🖥️ Your Server
WebSocket Bridge
🤖 OpenAI
Realtime API

Audio flows both ways in real-time:

Phone → Twilio → WebSocket → Server → OpenAI (listens, thinks, speaks)

OpenAI → Server → WebSocket → Twilio → Phone (plays AI voice)

Zero transcoding — same audio codec (g711_ulaw) on both sides = ultra-low latency