Content Deep Dive
Send Automated Surveys by SMS with Python and Twilio
Blog post from Twilio
Post Details
Company
Date Published
Author
Miguel Grinberg
Word Count
2,234
Language
English
Hacker News Points
-
Summary
This tutorial by Miguel Grinberg teaches users how to create an SMS survey management application using Python and Twilio Programmable Messaging. To work on this project, users need a Python 3.7 or newer interpreter, a Twilio account, and a phone capable of sending and receiving SMS. The application will use Flask as the web framework to handle incoming messages from Twilio and respond accordingly. Users are guided through setting up a virtual environment, installing dependencies, and configuring a webhook with Twilio. They are also shown how to implement survey logic using global variables for flexibility. The tutorial includes an example of how to manage user sessions and store answers in the session variable.