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 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 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
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.