Robocalls: nobody likes them, except maybe the robots. Twilio is working hard to eliminate robocalls. For the moment we need additional ways of fighting back. Let’s build a tool with Node.js, Nomorobo, and Twilio Lookup to detect robocalls. It’s easier than a Voight-Kampff test, I promise.
Getting Started
What you’ll need:
- A Twilio account (sign up for a free one here)
- Node.js and npm or another JavaScript package manager
Nomorobo is a company that maintains a huge database of known spammers and bots, as well as providing a service for filtering out unwanted calls. To take advantage of these features, install the Nomorobo add-on from the Twilio Console.
Click the install button and agree to the terms of service. Keep the unique name as nomorobo_spamscore
. Under USE IN
, check the Lookups
box and click Save
.
Making The Initial Lookup
Install the Twilio Node helper library from the command line: