Make outbound call with ChatGPT Realtime API.
- Twilio
- Twilio number with Voice capabilities (Here are instructions to purchase a phone number)
- API key
- OpenAI
- API Key (You can signup here)
Rename .env.example
into .env
and type the credentials for Twilio and OpenAI.
Highly recommend to use virtual env to run this project.
git clone https://github.com/soulee-dev/AICaller
pip install -r requirements.txt
python main.py
Copy Forwarding
URL. It will look something like: https://[ngrok-subdomain].ngrok.app
- Access to interactive docs
- Choose
create-call
endpoint - Fill the parameters and call the API.
For stream_url, type wss://[ngrok-subdomain].ngrok.app/media-stream