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 Ana Paula Gomes
    Implement a Support Helpline with Queuing using Python and Twilio Implement a Support Helpline with Queuing using Python and Twilio

    It’s never been so easy to set up your own call center and be in touch with your customers. With Twilio you can manage queues, assign agents and even get metrics about how the queues are working. All of it with little amount of code. In this tutorial we will show you how to accept incoming calls, place them into a queue, and then connect live agents to these callers, using Twilio Voice API, and the Flask framework for Python.

    Tutorial requirements

    To follow this tutorial you need the following components:

    • Python 3.6 or newer. If your operating system does not provide a Python interpreter, you can go to python.org to download an installer.
    • ngrok. We will use this handy utility to connect the Flask application running on your system to a public URL that Twilio can connect to. This is necessary for the development version of the …
    Read More
  • By Ana Paula Gomes
    Testing Your Twilio Applications in Python with pytest Testing Your Twilio Applications in Python with pytest

    Many applications have to connect to different services such as document managers, building tools, vendor APIs, and so on. A few services offer sandboxes or staging environments in order to allow testing, but usually this is some kind of infrastructure that we cannot control. What if the vendor staging server goes down? Also, tests that require connecting with external services are slow and often expensive.

    In this blog post we will talk about strategies to test your Python code when using REST APIs. That’s right, APIs in general. With the techniques learned here you can test code that includes connections to third-party services including Twilio APIs.

    We are going to go on an adventure based on my current journey: learning German. We’ll build a simple SMS bot that sends a new German word every day using Twilio’s Programmable SMS API and then we’ll build tests for it. Even though this …

    Read More
  • By Ana Paula Gomes
    Saving My Mom's Pictures: Building a Backup WhatsApp Chatbot With Python, Flask, Dropbox and Twilio Saving My Mom's Pictures

    My mom isn’t really into tech and here and there she has trouble with her phone: “it’s out of space, again!”. She, like everybody else, uses WhatsApp everyday to solve business issues, to ask when we’re coming back home, and to receive and send tons of pictures.

    For her, backups aren’t a trivial task, so I decided to help her on this quest. I had an idea: building a WhatsApp bot to backup her pictures to my Dropbox. Instead of deleting pictures, she only would have to forward her pictures to our bot. How does it sound?

    Of course, solving my mom’s problem is only one of many possibilities brought by working with WhatsApp’s pictures. You can identify products wanted by your clients using image recognition, receive documents needed by them, and more. All of it will help you improve the customer experience with your product.

    This blog post …

    Read More
  • Newer
    Sign up and start building
    Not ready yet? Talk to an expert.