How to Receive and Respond to a Text Message with Python, Flask and Twilio

PythonHeaderImage

Here’s all the code you need to receive an SMS message and to send a response using Python, Flask, and Twilio:

If you’d like to know how that works, check out this short video: Can you walk me through this step by step? When someone texts your Twilio number, Twilio makes an HTTP request to your app. Details about that SMS are passed via the request parameters…. Read More

Pokemon Faux: Create Fake Pokemon Go Screenshots with Python, Flask and Twilio MMS

PokemonFauxBanner

Pokemon Go is awesome and we all want to show off when we catch rare Pokemon. Let’s build a quick hack using Python and Twilio MMS that will allow you to trick your friends into thinking that you’ve encountered legendary Pokemon. You can continue reading to find out how to build this, or try it out now by texting an image and the name of a legendary Pokemon… Read More

SMS Sentiment Analysis in Python with Flask and the IBM Watson Twilio Add-on

watson

With Twilio’s new Add-ons marketplace developers can reap the benefits of third party APIs with the flip of a switch. The IBM Watson Message Sentiment Add-on adds sentiment analysis information to every SMS request sent to your web application. Let’s build a Flask app that will determine the sentiment of text messages sent to your Twilio number. Getting started Before writing any code make sure you have: Python… Read More

Check Stock Prices with Python and Twilio SMS

gordon

In the movie Wall Street, one dimension of the main character Gordon Gecko that the film disappointingly fails to explore is his love of the outdoors.  That’s right, he loves to go camping.  Unexpected, right? Gordon’s never going to get a data connection out there, but with a bit of Python and Twilio SMS he can still check his stock prices with only a few of those precious… Read More

How to Build an SMS Slack Bot in Python

Slack powered SMS bots.

Bots can be a super useful bridge between Slack channels and external applications. Let’s code a simple Slack bot as a Python application that combines the Slack API with the Twilio SMS API so a user can send and receive Slack messages via SMS. Tools We Need Our bot, which we’ll call “twiliobot”, requires Python, Slack and Twilio APIs and libraries. To write and run our Python code we… Read More

iOS and Web Browser Video Calls with Python and Swift

Vintage video phone.

Twilio Video makes it easy for you connect the people you care about via video on the devices they already own by coding with the programming language you already know. In this post, we’ll use the JavaScript and iOS SDKs to do the heavy lifting so that you can quickly add video to your applications. Follow along and you’ll be up and running with video calls between web browsers… Read More

Warm Phone Call Transfers with Python, Flask and Twilio Voice

Warm Phone Call Transfers with Python, Flask and Twilio Voice

Have you ever had your call disconnect while you were on hold with customer service and waiting for a transfer from one department to another? You probably felt like this when the call dropped: A warm phone call transfer, where a caller is on the phone with an agent then the agent brings on another agent and introduces them to the customer, shouldn’t be so difficult…. Read More

Intro to ROM/RAM hacking: Building an SMS powered Game Genie with Lua and Python

mariobanner

Old video games are notorious for being insanely difficult. As a child I was astonished to discover a magical item appropriately named Game Genie that allowed me to beat certain games. “Cheating” to make games easier was great, but some Game Genie codes made things more fun rather than just providing infinite lives. Some of these codes manipulated the games in absurdly interesting ways such as making all… Read More

Choose Your Own Adventure Presentations: Wizard Mode Part 3 of 3 with Flask, Reveal.js and WebSockets

choose-your-own-adventure

You’ve coded your way through the original Choose Your Own Adventure Presentations story, the Wizards Only gatekeeper and the Web Forms trials blog posts. Now it’s time to pull out our magical wands for one more trick and complete our application-building quest. Voting with a wand (or smartphone) In this final tutorial we’ll wrap up our Flask application with a new ability that will allow the audience to vote… Read More