This IVR🤙 will tell you price of some famous crypto currencies💰. The IVR is based on Twillio voice and fetched crypto price from coin market cap api. This project is used flask framewok for the webhooks of Twillio incoming calls.
- Call to the number that you get from twillio.
- IVR will tell you all the crypto currencies available and ask you to make a selection.
- According to the selection e.g. 1 for Bitcoin, IVR connected web app will fetch the real time prize of crypto currency.
- IVR will tell/ say the price of selected crypto currency.
- If user make invalid selection then IVR will revert it back to the main menu.
- First clone this repository and cd into it.
$ git clone git@github.com:shivamarora1/crypto-ivr.git
$ cd crypto-ivr
- Create a new virtual environment.
python3 venv -m .venv
source .venv/bin/activate
-
Install the dependencies.
pip install -r requirements.txt
-
Set coin market api key in environment variables.
COIN_MARKET_KEY
-
Start the server.
make run
-
Expose the application to the wider Internet using ngrok.
-
Configure Twilio to call your webhooks
- requests to make http request.
- objects and classes.