

This is necessary for the development version of the chatbot because your computer is likely behind a router or firewall, so it isn’t directly reachable on the Internet. We will use this handy utility to connect the Flask application running on your system to a public URL that Twilio can connect to. We will create a web application that responds to incoming WhatsApp messages with it. If your operating system does not provide a Python interpreter, you can go to to download an installer. To follow this tutorial you need the following components: This blog post will show how to handle WhatsApp pictures using the Twilio API for WhatsApp, the Dropbox API, and the Flask framework for Python. All of it will help you improve the customer experience with your product. You can identify products wanted by your clients using image recognition, receive documents needed by them, and more. Of course, solving my mom’s problem is only one of many possibilities brought by working with WhatsApp’s pictures. Instead of deleting pictures, she only would have to forward her pictures to our bot.

I had an idea: building a WhatsApp bot to backup her pictures to my Dropbox.

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.įor her, backups aren’t a trivial task, so I decided to help her on this quest. My mom isn’t really into tech and here and there she has trouble with her phone: “it’s out of space, again!”.
