/twilio-ivr

An example IVR (Interactive Voice Response) application using Rails 4 and Twilio

Primary LanguageRuby

README

An example of an Interactive Voice Response (IVR) system built using Twilio.

The application works, but has not much UI to speak of.

Deployment

If you wish to try to use the application it must be deployed on an Internet facing host such as Heroku. Twilio requires that the URL be accessible to its servers.

  1. Clone the repository locally

  2. Push to heroku or similar

  3. run ‘heroku run rake db:seed’ to create an appointment, alternately, go to /appointments/new to create one

  4. Create an environment variable on your host with the name PHONE_NUMBER set to your phone number as a string

ie heroku config:set PHONE_NUMBER=‘13125551212’

  1. Create an account for Twilio and set environment variables for, TWILIO_APPLICATION_SID, TWILIO_AUTH_TOKEN, TWILIO_FROM_NUMBER using the approriate values from twilio

  2. navigate to ‘/say_hi/1’

  3. Twilio will call you at the number you specified and direct you to accept the appointment at the chosen times