Internet slang evolves so rapidly that it’s easy to get lost in communication while texting without the help of linguistic services like  Urban Dictionary. Wouldn’t it be great if you could easily query new colloquialisms on the go?

In this tutorial, we will build a handy  WhatsApp bot that gives us the Urban Dictionary definition of words. It will leverage the  Twilio API for WhatsApp and the  Urban Dictionary API to find and provide the definitions we need, on demand.

Prerequisites

In order to follow along with this tutorial, you will need the following:

  • PHP (version 7.2 or higher to use the latest version of Bref)
  • Composer, npm, and the  Serverless CLI installed
  • A  Twilio Account
  • ngrok installed (to use your local server as a webhook URL)

#php #api #whatsapp

Build an Urban Dictionary Chatbot in PHP with Bref and the Twilio API for WhatsApp
3.15 GEEK