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

"sms" posts

  • By Miguel Grinberg
    Build a SMS Chatbot With Python, Flask and Twilio Build an SMS Chatbot with Python, Flask and Twilio

    In a previous article I showed you how to build a WhatsApp chatbot with Python, Flask and Twilio. Today I’m going to use similar techniques to build a chatbot that communicates with users through text messages using Twilio’s Programmable SMS.

    The chatbot that I’m going to build performs a simple analysis of what the user writes to find keywords of interest, which trigger the response of the chatbot. The two keywords in my implementation are “quote” and “cat”, which trigger responses of famous quotes and cat pictures respectively.

    Below you can see the chatbot in action:

    Chatbot demonstration

    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.
    • Flask. We will create a web application that responds to incoming SMS messages with it.
    • ngrok. We …
    Read More
  • By Dominik Kundel
    Sending SMS from GitHub Actions Decorative header image "Sending SMS from GitHub Actions"

    At GitHub Universe 2019, GitHub announced that Actions have been moved into General Availability. We are very excited about this launch and as part of it have launched the Twilio SMS for GitHub Action. In this blog post we'll look at how you can get started with that and some use cases for it.

    Getting Started

    You can find the Twilio SMS Action in the GitHub Marketplace. Before using it, you'll need a Twilio account. Sign up for free to get your account details.

    Once you have an account, we'll need two additional things.

    Get a phone number

    If you haven't gotten a phone number yet, head over to the Phone Numbers section of the Twilio Console and select your preferred phone number. Make sure it has SMS capabilities enabled.

    screenshot of Twilio Console with arrow pointing at SMS capability checkbox in Phone Numbers screen

    Once you have that phone number, make sure to note it down somewhere. We'll need it later when …

    Read More
  • By Tilde Thurium
    SMS Affirmations With Twilio And Flic Buttons SMS affirmations with Twilio and Flic buttons

    Earlier this year I built an affirmations button with Twilio Internet of Things. When I’m feeling insecure or anxious (which is often), the button lets me ground myself with a physical gesture and receive a reassuring text message in return.

    A wooden box with a blue button on the top sits on a table. The box has turquoise, teal, and neon yellow stripes.

    The box holding the button looks cool but it's not as portable as I’d like, since it contains a Raspberry Pi. As a Twilio Developer Evangelist, I’m on the road writing code fairly often. I needed something that takes up less space in my luggage.

    Today I’ll show you how to build a more portable affirmations button with Flic.

    What is a Flic button?

    Flic buttons are hardware buttons that are small enough to fit in a pocket. Out of the box, they can be configured to do various things when pushed, such as:

    You can …

    Read More
  • By Scott Sturdivant
    Build A Fax Portal with Twilio, Python and Flask Build a Fax Portal with Twilio, Python and Flask

    It's nearly 2020 and can you believe that faxes are still alive?  

    Without fail, it seems that when the weather turns nasty, it's inevitable that we'll be forced to drive to the local business center and pay too much per sheet for what should just be an email.

    Follow along as we utilize Twilio's fax enabled numbers and a simple web portal to send our own faxes, quickly and cost effectively, and from the comfort of your residence!

    Project Dependencies

    We'll be using a Twilio Programmable Fax number, Python 3, Flask, and the Twilio Python Helper library as our core requirements. Optionally, we'll add in Twilio SMS to receive the status of our submissions.


    We're not going anywhere if we don't have a Twilio Fax-Enabled number, so if you do not already have one, head on over and sign up for a free account.

    Once you …

    Read More
  • By Felistas Ngumi
    Serverless SMS Messaging using JavaScript and Twilio Functions Serverless SMS Messaging using JavaScript and Twilio Functions

    Function As A Service is a solution that allows developers to develop, deploy, and run event-driven functions in the cloud that are fully managed. Without the need for maintaining infrastructure, "serverless" architecture is achieved. In this tutorial, you will learn how to send Twilio Programmable SMS using the new Twilio CLI.

    Project Setup

    You will need the following items in order to get started:

    1. A Twilio account
    2. Twilio CLI
    3. Node Version 8 and above.

    Getting Started

    First, install the Twilio CLI. I'm currently using version 1.8.1. Run the following command in your preferred terminal if on a Mac:

    $ brew tap twilio/brew && brew install twilio

    If you are on a different platform, you can find the setup instructions here.

    To confirm a successful installation of the CLI has occurred, type twilio in a new terminal session and the output below should appear.

    Twilio CLI console

    Login to your Twilio account by …

    Read More
  • By Matt Makai
    How to Broadcast SMS Text Messages from Python 3 Django Web Applications Broadcasting SMS Text Messages from Python Django Web Applications Tutorial

    Short Message Service (SMS) text messages are ubiquitous for time-sensitive communication. They’re also easy to send at scale by combining a Django web application with an application programming interface (API).

    In this tutorial, we will build a straightforward Django project with SMS capability that transmits messages to multiple recipients.

    If you want to go further in learning either Python or the Twilio SMS API, check out the amazing TwilioQuest training game.

    Required Project Dependencies

    Python 3 is required for this tutorial because Python 2 will no longer be supported after December 31, 2019. We’ll use Python 3.8 to build this tutorial.

    We will also use the following application dependencies in our application:

    If …

    Read More
  • By Chuks Opia
    Create SMS Notifications from Tweets, Retweets, and Mentions with JavaScript and Twilio SMS Copy of Generic Blog Header 3-6.png

    Social media has become one of the biggest hits of the 21st century. It has become predominant in both personal and professional lives of millions of people. This has made social media marketing a powerful tool for businesses of all sizes to reach prospects and customers.

    Twitter recently announced Q1 2019 revenues of $787 million, a year-on-year increase of around 20%. This means the platform is seeming ever more attractive to advertisers looking for high return on spend. Receiving real-time SMS notifications for activities on a Twitter account is a good way for businesses to build better customer engagement.

    In this post you will learn how to get SMS notifications whenever an event occurs on your Twitter account.


    To build the case study project for this post you need to have the following development tools installed on your system:

    Node.js JavaScript runtime environment (The Node.js installer includes the npm …

    Read More
  • By Brian Iyoha
    Build an SMS Event Reminder in PHP with Laravel, MySQL and Twilio SMS Build an SMS Event Reminder in PHP with Laravel, MySQL and Twilio SMS.png

    In our day to day activities, we might get too busy for seemingly simple tasks. Too busy to drop a message, check up on loved ones or to remember an appointment. You could solve this by setting alarms right? But what if there was a more efficient way for reminders to send a message to your loved one, or request your lunch at a set time without you having to do it?

    In this tutorial, we will learn how to use Twilio’s Programmable SMS to create an SMS reminder system with Laravel. At the end of this tutorial, you would have developed a custom SMS reminder system that alerts your users at a specific time via SMS.


    In order to follow this tutorial, you will need the following:

    Read More
  • By Fernando Larranaga
    Build an SMS Panic Button with Twilio Functions Blog post header: Build an SMS Panic Button with Twilio Functions

    Are you part of a nonprofit or social enterprise that wants to build things for social good? At Twilio.org, we offer discounts and credits to help you get started! Learn more.

    In an emergency such as an accident, an insecure situation, or a natural disaster, a successful response time is often measured in seconds. Communicating a call for help quickly is essential. If someone is unable to make a phone call or send a text message, a readily accessible panic button can enable them to make an urgent call for help discreetly and efficiently.

    In this guide, we'll show you how to build an SMS Panic Button in a couple of steps using an IoT button and Twilio Functions.


    How will this work?

    IoT buttons, such as Flic, offer the …

    Read More
  • By Michael Okoko
    Create a Database Queue to Send SMS in PHP with Laravel Queues and Twilio SMS Create a Database Queue to Send SMS in PHP with Laravel Queues and Twilio SMS.png

    Queues are ways in which we enable our application to listen and act based on predefined events. They allow us to delay tasks that would otherwise interfere with the user experience or our application’s performance.  

    From the Laravel docs, "Laravel queues provide a unified API across a variety of different queue backends, such as Beanstalk, Amazon SQS, Redis, or even a relational database."

    What are we Building?

    In this tutorial, we will be creating an application that utilizes Laravel queues to send our users “Happy Birthday” messages on their birthday. We will create a command that fetches all users whose birthdays are today, and sends them to the queue to be processed.


    Setting Up our Application

    As our application is Laravel-based, we will create a new Laravel application. If you're not …

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