Prerequisites
Before starting, ensure you have:- Python 3.10+ installed
- Git for cloning the repository
- Active accounts for:
Installation
Install dependencies
Upgrade pip and install required packages:Core dependencies:
fastapi>=0.95.0- Web frameworkuvicorn[standard]>=0.22.0- ASGI serverpython-dotenv>=1.0.0- Environment variable managementpydantic>=1.10.0- Data validation
Copy environment template
Create your local configuration file:The template includes all required variables (see Configuration for details).
Starting the Server
Development Mode (with ngrok)
The quickest way to get started is using the dev startup script, which launches both the FastAPI server and ngrok tunnels:- Loads environment variables from
.env - Starts uvicorn on the configured port (default: 8000)
- Launches ngrok with two tunnels (API and WebSocket)
- Prints the public ngrok URL for webhook configuration
Manual Start (without ngrok)
For production or custom deployments, start uvicorn directly:Without ngrok, you’ll need to manually configure public URLs for Telnyx webhooks. See Telephony Setup.
Verify Installation
Access debug interface
Open the live calls dashboard in your browser:You should see an empty call list with “Polling /api/v1/live_queue every 1s.”
Next Steps
Configuration
Learn about environment variables and advanced configuration options
Telephony Setup
Configure Telnyx integration and test your first call
Agent Configuration
Customize NLP, emotion detection, and service classification
API Reference
Explore REST endpoints and WebSocket handlers
Troubleshooting
Port Already in Use
If port 8000 is occupied:ngrok Connection Failed
Verify your authtoken is correct:Import Errors
Ensure virtual environment is activated:API Key Issues
Check that.env is loaded correctly: