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.
This project is built using Ruby on Rails Framework.
To run this locally on your machine.
-
First clone this repository and
cd
into it.$ git clone git@github.com:TwilioDevEd/ivr-phone-tree-rails.git $ cd ivr-phone-tree-rails
-
Install the dependencies.
$ bundle install
-
Make sure the tests succeed.
$ bundle exec rails test
-
Start the server.
$ bundle exec rails s
-
Check it out at http://localhost:3000.
-
Expose the application to the wider Internet using ngrok.
$ ngrok http 3000
-
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
. -
Grab your phone and call your newly-provisioned number!
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.