To start the application, you will need to clone the project as well as have Flask, Python, and Twilio. Additionally, you will need a twilio account. This project will work on the free account, but be aware that recording and transcribing does have a fee.
To download Python you can go here.
Here is a good resource for window users to download python.
You will also need to have pip installed.
For Flask, here is the installation page.
To run your webhooks locally, ngrok is a good tool. I recommend reading this before starting the program because it shows were the urls are placed in the twilio app.
- Clone the repo into your perferred text editor
- You will want to setup a virtualenv to install Flask, dotenv, and twilio
- Flask will be
pip install Flask
- Dotenv will be
pip install -U python-dotenv
- Twilio is
pip install twilio
- Flask will be
- You will need a twilio phone number. Here is the page to show you how.
- You will need a .env file that will hold:
TWILIO_ACCOUNT_SID="Account SID from twilio"
TWILIO_AUTH_TOKEN="Authentication token"
REPRESENTATIVE_NUMBER="Phone number here"
TWILIO_NUMBER="Number you get from twilio"
- Now start your localhost machine (this is where ngrok is used). You need to enter the url for a call comes in at your active phone numbers.
- After that is done, run the program:
python __init.py__
- Now call the number that you have as your TWILIO_NUMBER in your env and the program should run.