Settings & Setup
Configuration guide and environment variables
Setup Guide
Get Gemini API Key
Visit Google AI Studio and create a new API key with access to Gemini Live API.
Set Up Exotel Account
Create an Exotel account, purchase an Exophone number, and get your API credentials.
Configure Exotel Voicebot
In Exotel dashboard, create a Voicebot Applet and set the WebSocket URL to your server.
Deploy to Public Server
Deploy to Railway, Render, or VPS so Exotel can connect to your WebSocket server.
Configure Environment
Copy .env.local and fill in your API keys. Restart the servers.
Environment Variables
Gemini AI
GEMINI_API_KEYrequiredsecretGet from Google AI Studio (aistudio.google.com)
Exotel
EXOTEL_API_KEYrequiredsecretFound in Exotel Dashboard → Settings → API
EXOTEL_API_TOKENrequiredsecretFound alongside the API Key in Exotel Dashboard
EXOTEL_SIDrequiredYour Exotel Account SID
EXOTEL_CALLER_IDrequiredYour Exotel virtual phone number (Exophone)
Server
PORTPort for the Next.js frontend (default: 3000)
INBOUND_WS_PORTPort for the inbound WebSocket server (default: 8080)
OUTBOUND_WS_PORTPort for the outbound WebSocket server (default: 8081)
Audio Processing Pipeline
Inbound (Caller → AI)
Outbound (AI → Caller)
Deployment Commands
npm run devnpm run server:inboundnpm run server:outboundnpm run server:allnpm run build && npm start