O'Reilly logo

Building Bots with Node.js by Madan Bhintade, Eduardo Freitas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Core bot functionality on Azure

Now that we've implemented and have a working Twilio Node.js template, which can send SMS, let's have a look at expanding our code to do more.

We'll need to be able to somehow hook and listen to incoming SMS and have some very basic Natural Language Processing (NLP), in order to send answers based on the input received.

Listening to incoming SMS requires setting up in our Node.js app a URL that can be configured within your Twilio account as a Request URL. This Request URL will be used by Twilio to push incoming messages on your purchased Twilio number, to our Node.js bot app.

To make our bot publicly available, we'll publish it on Azure websites. Let's create a REST endpoint for our Node.js app, which we will use ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required