Dashboard
Real-time AI calling analytics
Recent Calls
Loading...
Call History
All incoming AI-handled calls
Loading...
Qualified Leads
Lead data collected by AI agent
Loading...
⚙️ Settings
Configure API keys and service credentials
📖 How It Works
Step-by-step guide to set up and run AI calling
🔑 Get Your API Keys
Go to platform.openai.com/api-keys
Create a new key → Copy it → Paste in Settings → OpenAI API Key
Go to twilio.com/try-twilio
Sign up → Get a phone number → Copy Account SID + Auth Token
Paste all three in Settings → Twilio Configuration
🌐 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: localtunnelnpx localtunnel --port 3000
Copy the https:// URL you get → Paste in Settings → Webhook Base URL
📞 Configure Twilio Webhook
Tell Twilio to send calls to your server:
- Go to Twilio Console
- Click Phone Numbers → Manage → Active Numbers
- Click your phone number
- Scroll to "Voice & Fax" section
- Under "A CALL COMES IN":
- Select: Webhook
- URL:
https://your-url.ngrok.io/incoming-call - Method: HTTP POST
- Click Save
💾 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.
📱 Make a Test Call!
Call your Twilio phone number from any phone.
The AI will:
- Answer automatically
- Greet you in Hinglish: "Namaste! RapidTrade AI assistant..."
- Ask qualification questions one by one
- Save your answers as lead data
- End with a polite goodbye
Check the Dashboard and Call History to see the transcript!
System Architecture
WebSocket Bridge
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