Node.js
Install the dependencies
In this tutorial, you will use the express web application framework to create the server and define the routes for your webhook endpoints.
You will access the JSON bodies of the requests that the Vonage API platform makes to your webhooks, so you'll need the body-parser package too.
Create a directory called phone-ivr for your application and change into it:
mkdir phone-ivr
cd phone-ivr
Run npm init to create a node application in the phone-ivr directory and accept all the defaults.
Then, install express and body-parser:
npm install express body-parser
Build a Call Menu
Create an interactive voice response (IVR) menu to handle customer calls
Available on:
Steps
1
Introduction2
Prerequisites3
What you will build4
Install the dependencies5
Create the server6
Create the answer webhook7
Create the DTMF webhook8
Create the event webhook9
Configure your Voice application10
Run it!11
Conclusion12
What's next?