This is a quick Programmable Voice demo using Node, Express.js, and the Twilio Node Helper library.
If you'd like to try out this repo on your own, there are some prerequisites:
- Nodejs version 14.0 or higher.
- Purchase a Twilio Phone Number
- Download ngrok in order to expose your local development server to the internet.
- npm
- nodemon
- Clone this repo using the following command in your terminal:
git clone https://github.com/bld010/superclass-voice-demo-2021.07.15.git
- In your terminal, change into the repo's directory using the following command:
cd superclass-voice-demo-20201.07.15
- Run
npm install
to install the dependencies - Run
nodemon server.js
to run your server locally. - In a new terminal window, run
http ngrok 3000
. Take note of thehttps
url shown. - Go to the Twilio Console > Active Numbers, click on your phone number, and scroll down to
Voice & Fax
. - Scroll down to
A CALL COMES IN
and selectWebhook
, enter your ngrok https url with/welcome
on the end (example:https://12345.ngrok.io/welcome
), and select HTTP POST. - Click save.
You should now be able to dial your Twilio Number and hear the poll, be able to respond to the poll, and leave a voice recording.