Skip to content

Make outbound call with OpenAI Realtime API (+ Twilio)

Notifications You must be signed in to change notification settings

soulee-dev/AICaller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AICaller

Make outbound call with ChatGPT Realtime API.

Prerequisites

  • Twilio
  • OpenAI
    • API Key (You can signup here)

Setup

Update the .env

Rename .env.example into .env and type the credentials for Twilio and OpenAI.

Run

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

Open an ngrok tunnel

Copy Forwarding URL. It will look something like: https://[ngrok-subdomain].ngrok.app

Test the app

http://localhost:8000/docs

  1. Access to interactive docs
  2. Choose create-call endpoint
  3. Fill the parameters and call the API.

For stream_url, type wss://[ngrok-subdomain].ngrok.app/media-stream

About

Make outbound call with OpenAI Realtime API (+ Twilio)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages