An example of an Interactive Voice Response (IVR) system built using Twilio.
The application works, but has not much UI to speak of.
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.
-
Clone the repository locally
-
Push to heroku or similar
-
run ‘heroku run rake db:seed’ to create an appointment, alternately, go to /appointments/new to create one
-
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’
-
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
-
navigate to ‘/say_hi/1’
-
Twilio will call you at the number you specified and direct you to accept the appointment at the chosen times