/ivr-phone-tree-rails

An example application implementing an automated phone line using Twilio

Primary LanguageHTML

Twilio

IVR Phone Tree with Ruby on Rails and Twilio

Build Status

IVRs (interactive voice response) are automated phone systems that can facilitate communication between callers and businesses. If you've ever dialed your credit card company to check on a balance after responding to a series of automated prompts, you've used an IVR. Learn how to build an IVR in minutes using Twilio's powerful TwiML API.

Read the full tutorial here!

Local Development

This project is built using Ruby on Rails Framework.

To run this locally on your machine.

  1. First clone this repository and cd into it.

    $ git clone git@github.com:TwilioDevEd/ivr-phone-tree-rails.git
    $ cd ivr-phone-tree-rails
  2. Install the dependencies.

    $ bundle install
  3. Make sure the tests succeed.

    $ rake test
  4. Start the server.

    $ bundle exec rails s
  5. Check it out at http://localhost:3000.

How to Demo

  1. Expose the application to the wider Internet using ngrok.

    $ ngrok http 3000
  2. Provision a number under the Manage Numbers page on your account. Set the voice URL for the number to http://<your-ngrok-subdomain>.ngrok.io/ivr/welcome.

  3. Grab your phone and call your newly-provisioned number!

Meta

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