Skip to content

ajoshi1/voice-data-collection

Repository files navigation

IVR Phone Tree: IVR for beginners. Powered by Twilio - Python/Flask

Build Status

This is an application example implementing an automated phone line using Python 2.7 and Flask web framework.

Read the full tutorial here!

Local development

To run the app locally

  1. Clone this repository and cd into it.

  2. Create a new virtual environment.

    • If using vanilla virtualenv:

      virtualenv venv
      source venv/bin/activate
      
    • If using virtualenvwrapper:

      mkvirtualenv account-verification-flask
      
  3. Install the requirements.

    pip install -r requirements.txt
    
  4. Start the development server.

    python manage.py runserver
    
  5. Expose the application to the wider Internet using ngrok.

    ngrok http 5000 -host-header="localhost:5000"
    
  6. Provision a number under the Twilio's Manage Numbers page on your account. Set the voice URL for the number to http://[your-ngrok-subdomain].ngrok.io/ivr/welcome

That's it!

Run the tests

You can run the tests locally through coverage:

  1. Run the tests.

    $ coverage run manage.py test
    

You can then view the results with coverage report or build an HTML report with coverage html.

Meta

  • No warranty expressed or implied. Software is as is. Diggity.
  • MIT License
  • Lovingly crafted by Twilio Developer Education.

About

Twillio Data Collection App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors