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 Chris Hranj
    Build John Mayer's Customer Service Line with Twilio Voice and Python header - Build John Mayer's Customer Service Line with Twilio Voice and Python

    A while back, John Mayer tweeted an oddly brilliant idea.

    John Mayer tweet saying "They should let everyone on hold with customer service talk to one another."

    I recently came across that tweet again and realized that I could build this system using Twilio. In this blog post, we are going to build a simple call center with Twilio Programmable Voice and Python that allows callers to talk to one another until connected with an agent.

    If you’d just like to see the finished code, it can be found on Github here.

    Get Started

    NOTE: If you are confused about anything regarding setting up a Python environment for Twilio apps, refer to this Twilio guide.

    This call center is going to use the Flask microframework, which means you’ll need to have Python installed locally. Instructions to download Pyth …

    Read More
  • By Jamie Corkhill
    Building a NASA Satellite Imagery SMS Bot with Python, Flask, and Twilio Building a NASA Satellite Imagery SMS Bot with Python, Flask, and Twilio

    In this article, you’ll learn how to use Twilio Programmable SMS with Python and Flask to build a bot that permits a user to send a text message containing a location, country code, and date, and receive a satellite image for that time and location in response via NASA’s Earth APIs. In the image below, you can see how the bot was used to provide an image of New York City that was captured on January 1st, 2021.

    Project demo

    Requirements

    • Python 3.6 or newer. You can download a Python interpreter here.
    • A Twilio account with an SMS-capable phone number. If you are new to Twilio, you can create a free account.

    Project Configuration

    Navigate to the directory where you’d like to create your project, and ru …

    Read More
  • By Lizzie Siegle
    Monitor chess progress using Twilio Serverless and SMS header img chess

    After the Queen's Gambit came out, I, alongside many, began playing a lot of chess and completing chess puzzles. This tutorial will go over how to build a chess progress monitor using the chess.com API, Twilio Functions, and the Twilio Serverless Toolkit. Text a chess.com username to +14243260196 (for example below, mine is lizziepika) to see it in action.

    SMS example

    Prerequisites

    1. A Twilio account - sign up for a free one here and receive an extra $10 if you upgrade through this link
    2. A Twilio phone number with SMS capabilities - configure one here
    3. Postman (you could alternatively make cURL requests from the command line)
    4. Node.js installed - download it here

    Make a chess.com API Request  

    cute Disney man chess gif

    Che …

    Read More
  • By Renato Byrro
    Receive SMS Transaction Notifications for your TransferWise Account with Twilio and Python Receive SMS Transaction Notifications for your TransferWise Account with Twilio and Python

    TransferWise is a digital bank that can save us from dread expensive bank fees. I have an account and love the service, but I’m really concerned about bad actors defrauding my card or login credentials.

    What if TransferWise would send proactive alerts on debit transactions? Then I could act quickly to lock it down and minimize losses in case anything bad happens.

    Twilio to the rescue!

    In this tutorial, we’ll build a real time bank account monitor with the Transferwise API and Twilio SMS API. The application will send SMS alerts to a phone number notifying about debit transactions.

    Preparing the requirements

    To follow this tutorial, you will need the following:

    Python: we’ll use Python3.9 (latest stable), but the code should also run on Python3.6+. To download and install, follow instructions on the official website. Python runs on Windows, Linux/UNIX and MacOS.

    TransferWise account: if you …

    Read More
  • By Marcus Battle
    Calculating Script Execution Time in PHP to Send an SMS with Twilio Calculating Script Execution Time in PHP to Send an SMS with Twilio

    New PHP developers may not be aware that every script you run has 30 seconds to complete. If your API requests, database transactions, and data processing don’t complete in time, you will experience a server timeout. This is because PHP's max_execution_time helps prevent poorly written scripts from tying up the server.

    Most developers will spend time Googling workarounds instead of focusing on the fact that this behavior is not a bug. In reality, people shouldn’t wait a whole minute or more for your page to load or process to complete within the browser. It’s just not an ideal user experience.

    In this tutorial, we’ll learn how to measure the time it takes to send an SMS with Twilio Programmable Messaging for better application performance. At the conclusion, you will have learned how to:

    • Build a simple script to send an SMS in PHP
    • Use PHP’s microtime() function to measure script …
    Read More
  • By Shajia Abidi
    Getting Started with Chrome Extensions Chrome's extension page

    Extensions are small software programs that customize your browsing experience. They are used to block ads and popups, format JSON, edit grammar, help with vocabulary, design, programming, among others. In a nutshell, Chrome extensions enhance the functionality of your browsing experience.

    In this tutorial, you will be creating a Chrome extension to track your daily tasks. With the extension enabled, every time you open a new tab, you will see the jobs you want to keep track of for the day.  You will be able to add a task, mark the task complete, and delete it.

    Prerequisites

    To follow this tutorial, you will need working knowledge of the following:

    • HTML
    • CSS
    • JavaScript

    You will also need the Chrome web browser to install and test your extension.

    Introduction to Chrome extensions

    Chrome extensions consist of different components created with web development technologies: HTML, CSS, and JavaScript. These components, including background …

    Read More
  • By Alan Klein
    Automate Flow Deployments with the Studio REST API v2, Now Generally Available Studio REST API v2 Hero

    Twilio Studio has enabled thousands of developers to quickly build and deploy complex communication workflows and scale effortlessly on Twilio Runtime, our Serverless environment. Today Studio has made publishing and deployment of Flows even more powerful.

    We are pleased to announce the general availability of Studio REST API v2, providing full support for publishing of Flows via the REST API, Twilio’s helper libraries, and the Twilio CLI.

    Studio flows and automated deployments

    A Studio flow is created using functional widgets with a drag and drop graphical user interface. Builders and developers alike have used the simple interface to create impressively powerful no-code and low-code workflows based on their specific needs.

    As Studio evolved, customers began asking for ways to programmatically create, read, update, and delete flows. Behind the Studio graphical user interface, flows …

    Read More
  • By Steph Moorhead
    A Year of 1 Trillion Emails: The Customers Who Sent Them A YEAR OF 1 TRILLION EMAILS - 2340x1000 - NO TEXT@2x.png

    This article originally appeared on the Twilio SendGrid blog.

    During a year of change, email has become an even more crucial connection between businesses and their customers. Email engagement increased by 200% in the wake of the COVID-19 pandemic. As more customers stay at home, checking the inbox has become a regular part of customers’ daily routines—day and night, we check-in with our favorite brands and organizations. 

    In 2020, Twilio SendGrid kept businesses connected to their customers by reliably processing over 1 trillion emails. Imagine 1 trillion letter-sized pieces of paper lined up end to end. That’s 173 million miles—long enough to travel to Mars and back when it's closest to Earth. Twice!

    This incredible feat would not have been possible without our customers: senders both large and small who trusted us to deliver email to their customers. To celebrate this milestone, here’s a look at a few …

    Read More
  • By Abhimanyu Shekhawat
    Add Emoji Reactions to Video calls using Twilio Data Track API Add Emojis to Video calls using Twilio Data Track API

    During these unprecedented times, Video conferencing has become the prime medium of social interactions. Fortunately, with Twilio Programmable Video API you can make a fully functional video conferencing application in no time. If you find this too good to be true, I urge you to go check out our basic Video Chat Tutorial to experience the magic of Twilio APIs yourself.

    If you have already implemented the basic Video Chat application, in this article, we will take your experience to a next level by adding real time Emojis using Twilio Data Track API.

    By the end of this tutorial, you will be able to not only express yourself by using your favourite emojis but also understand the nuances of Data Transfer between participants in Twilio Programmable Video rooms.

    Emoji video call demo

    Tutorial requirements

    This article is an extension of the Video Chat Application tutorial, so we will be reusing the code of …

    Read More
  • By Muhammad Nasir
    Integrating OpenCV Object Detection with Twillio Programmable Video OpenCV Meanshift

    Video conferencing doesn’t have to be as basic as just conveying packets of data between users. Using machine learning, we can interpret what those packets of data represent in the real world, and manipulate them in a way to create a more human-centered experience.

    Today we’ll learn how to use OpenCV to do some simple object-detection with Twilio’s Programmable Video. This will allow you to add object detection to your video streams and open the pathway to many more image processing techniques using OpenCV!

    Let’s get started.

    Twilio Programmable Video app with OpenCV object detection

    Prerequisites

    Before we can build our OpenCV integration, you’ll first need a few things.

    Integrate OpenCV and Twilio

    First off, let’s clone Twilio’s Quickstart Video application. Open up a console and run:

    git clone https://github.com/twilio/video-quickstart-js.git
    

    Great! Now we need to initialize …

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