Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now
Build the future of communications.
Start building for free
  • By Dotun Jolaoso
    Build a WhatsApp Currency Conversion Bot with Twilio and Laravel Build a WhatsApp Currency Conversion Bot with Twilio and Laravel

    Over the years, we’ve seen a steady increase in the number of bots and chatbots available to us over different platforms. Brands make use of bots as an exciting way to engage customers, while also providing a way to automate what could normally be considered, monotonous conversations. With it’s over 1.5 billion users and growing, and familiar chat technology, WhatsApp presents a strong case for building a chatbot on it’s platform.

    In this tutorial, we’ll be looking at how we can build a WhatsApp Currency Conversion Bot for converting multiple currencies using the Twilio API for WhatsApp.

    Technical Requirements

    You will need the following to complete this tutorial:

    Setting up Laravel

    There are different ways to set up a new Laravel project. You can do so via the Laravel installer or by …

    Read More
  • By Miguel Grinberg
    Play Chess with a Friend on WhatsApp using Python and Twilio Play Chess with a Friend on WhatsApp using Python and Twilio

    While most of the world is under some form of stay-at-home orders to prevent the spread of COVID-19, we are constantly looking for new ways to entertain ourselves and remain connected with family and friends.

    When I was little I used to play chess a lot, so now that I have additional time on my hands I decided to start playing again. The thing is, nobody in my immediate family plays chess, so I had this idea of using WhatsApp to play a game of chess against a remote friend.

    Chess game demo

    By the end of this tutorial you will know how to use the Twilio API for WhatsApp to implement a turn-based game that requires sending messages and images between multiple participants. You will also learn about how to manage a game of chess in Python, but even if chess isn’t your thing, you will be able to replace the chess …

    Read More
  • By Imran Khan
    Build a Live Traffic WhatsApp Chatbot with Python, Flask, Folium and Twilio Build a Live Traffic WhatsApp Chatbot with Python, Flask, Folium and Twilio

    Like most people I am endlessly frustrated by sitting in slow-moving traffic and I often wonder if I just got unlucky or is it always like this?  In this tutorial I’m going to show you how to answer that question by building a basic chatbot for WhatsApp using the Twilio API for WhatsApp and the Flask framework for Python.

    The chatbot will allow users to share their current location and get back a live traffic report and a link to an interactive map.  Here’s an example showing how it works:

    traffic chatbot demo

    Tutorial requirements

    To follow this tutorial you will need the following:

    • Python 3.6 or newer.  You can download an installer from python.org.
    • ngrok. We will use this free utility to connect our Flask application running on our local system to a public URL that Twilio can connect to from the Internet.  Installation instructions for your operating system can …
    Read More
  • By Giuseppe Verni
    Sviluppare un chatbot multilingue per ordinare il caffè tramite WhatsApp whatsapp-coffee-banner-it.png

    Quest'articolo è la continuazione del precedente interessantissimo articolo, in cui Dominik descrive come costruire un sistema per ordinare caffè usando Autopilot. Al momento, Twilio Autopilot supporta solo la lingua inglese, esploreremo quindi come implementare il sistema per ricevere ordini sia in inglese che in italiano.

    A summary of this article in english, along with a one click deploy script is available at this repo on GitHub.

    Prerequisiti

    Se non avete ancora il vostro account Twilio, seguite questo link per crearne uno gratuito. Ci vogliono meno di 2 minuti!

    Nel vostro account Twilio useremo:

    Inoltre, avrete bisogno di un account per Google DialogFlow e Google Cloud platform.

    Diagramma di funzionamento

    Il flusso che andremo ad implementare è il seguente:

    Diagramma di funzionamento
    Diagramma di funzionamento

    Vediamo …

    Read More
  • By Imran Khan
    Build a Soccer Stats WhatsApp Chatbot with Python, Flask and Twilio Build a Soccer Stats WhatsApp Chatbot with Python, Flask and Twilio

    There isn’t much live sport to watch at the moment which gives us the perfect opportunity to analyze historical data about the sport instead!  In this tutorial I’m going to show you how to build a basic chatbot for WhatsApp using the Twilio API for WhatsApp and the Flask framework for Python.

    The chatbot will allow users to get information about soccer teams and match statistics.  Here’s an example showing how it works:

    soccer chatbot demo

    Tutorial requirements

    To follow this tutorial you will need the following:

    • Python 3.6 or newer.  You can download an installer from python.org.
    • Flask.  We will use this web framework to build an application that responds to incoming WhatsApp messages.
    • ngrok. We will use this free utility to connect our Flask application running on our local system to a public URL that Twilio can connect to from the Internet.  Installation instructions for your operating system …
    Read More
  • By Nathaniel Okenwa
    A Socially Distanced Mother’s Day Gift with WhatsApp and Cloudinary A Socially Distanced Mother's Day Gift with WhatsApp and Cloudinary

    It was Mother’s Day last weekend (For those of us in the UK*), and I’m going to be totally honest: I completely forgot! The worst part is that most of the shops were closed so I was not able to go out shopping for a personal gift. Now, I could have just headed online and ordered a generic gift. However, I wanted this gift to be more personalised, something to remind my mum of the amazing influence that she has had on my life and the lives of others. So I decided to crowdsource pictures and messages from my extended family and my mum’s friends to create a scrapbook full of memories and personal messages. Here’s how I did it:

    Step 1: Design an Overlay

    I wanted all the photos that were sent in to have an overlay that has the names of the people in the photo. A bit …

    Read More
  • By Phil Nash
    Build a location-aware WhatsApp weather bot with Ruby, Sinatra and Twilio Build a location-aware WhatsApp bot with Ruby, Sinatra and Twilio

    We've seen how to write a text chatbot using the Twilio API for WhatsApp using Ruby, but WhatsApp also supports sending and receiving location data via their API. In this post we are going to see how to build a WhatsApp bot that can receive and respond to location messages.

    We'll build a weather bot so that you can send your location to the bot to get your local weather forecast.

    What you'll need

    To code along with this post and build your own location-aware WhatsApp bot you will need:

    Configure …

    Read More
  • By Brian Iyoha
    Build a WhatsApp Chatbot with Twilio WhatsApp API, PHP, and Laravel Build a WhatsApp Chatbot with Twilio WhatsApp API, PHP, and Laravel

    Conversations with family and friends about sensitive topics can often lead to arguments. Ironically, many of these conversations don’t take place in person anymore, they happen in real-time via chat apps like WhatsApp.

    When these awkward situations occur, you might find yourself needing to fact check a statement or quickly look up some information. Usually, this would require you to fire up your web browser which could be quite inconveniencing when time is of the essence. In a perfect life, it would be better to use a chatbot to seamlessly connect with for information. With services like the Twilio WhatsApp API, you can build custom solutions like these to power-up your chatting experience.

    In this tutorial, we will build a simple WhatsApp Chatbot that allows you to get information about a developer's GitHub profile using just their username.

    After successfully following this tutorial, you will have learned how to …

    Read More
  • By Brian Iyoha
    Sending One-time Passwords in WhatsApp using PHP, Laravel, and the Twilio API for WhatsApp Send One Time Passwords using Twilio API for WhatsApp

    WhatsApp is often contested as the world’s most popular messaging app, allowing its users to communicate securely and in real-time. As a business owner, you can build upon the speed and security provided by WhatsApp to engage with your customers, send alerts and notifications, provide customer support, or even send One-Time Passwords (OTPs) to your customers.

    In this tutorial, you will learn how to send WhatsApp notifications to your users by sending out one-time passwords (OTP) via WhatsApp using the Twilio API for WhatsApp during registration.

    Prerequisites

    To follow through with this tutorial, you will need the following:

    Project Setup

    This tutorial will make use of Laravel, so the first step is to generate a new Laravel application. Using the Laravel Installer, generate a new Laravel project by running the …

    Read More
  • By Gabriela Cavalcante
    Build a Secret Santa Bot for WhatsApp Using Python and Twilio Build a Secret Santa Bot for WhatsApp Using Python, Flask and Twilio

    In this tutorial we’re going to use Twilio Whatsapp, Flask and Python to build a simple Secret Santa bot. Also, I’ll show you how to use Dynaconf to manage configuration in a Python Project. You can find the complete code for this project on my GitHub repository.

    A user just needs to send a message to the bot to create a Secret Santa contest. The bot will respond by sending a unique code that identifies the event. With this code, the participants can send a message to the bot to join. The creator can then send a text message to carry out the selection of partners. Once the pairings are known, the bot sends a message to each participant with the name of their secret friend.

    secret santa bot screenshot

    Tutorial Requirements

    To follow this tutorial you need the following components:

    • Python 3.7 or newer. If your operating system does not provide …
    Read More
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.