What you'll need to run the frontend:
What you'll need to run the server:
- Python >3.10
- Pip
- Uvicorn
- Ngrok
- OpenAI API Key
- Retell API Key and a Retell Agent
- Go to the frontend directory
cd frontend
- Install the dependencies
bun install
- Start the frontend
bun dev
- Open in your browser: http://localhost:3000
- Navigate to the backend directory
cd backend
- Install the requirements
pip install -r requirements.txt
- Add your OpenAI API and Retell API keys to the
.env
file
OPENAI_API_KEY=[YOUR_OPEN_AI_KEY]
RETELL_API_KEY=[YOUR_RETELL_AI_KEY]
- Start server
uvicorn main:app --reload
- Tunnel the server to the internet using ngrok
ngrok http 8000
- Set the
Custom LLM URL
for your Retell agent the ngrok url + /voice/llm-websocket
Example:
https://e253-128-195-97-137.ngrok-free.app/voice/llm-websocket