A while back, John Mayer tweeted an oddly brilliant idea.
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.
NOTE: If you are confused about anything regarding setting up a Python environment for Twilio apps, refer to this Twilio guide.
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.
- 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.
Navigate to the directory where you’d like to create your project, and ru …
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.
- A Twilio account - sign up for a free one here and receive an extra $10 if you upgrade through this link
- A Twilio phone number with SMS capabilities - configure one here
- Postman (you could alternatively make cURL requests from the command line)
- Node.js installed - download it here
Make a chess.com API Request
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!
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 …
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 …
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.
To follow this tutorial, you will need working knowledge of the following:
You will also need the Chrome web browser to install and test your extension.
Introduction to Chrome extensions
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.
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 …
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 …
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.
This article is an extension of the Video Chat Application tutorial, so we will be reusing the code of …
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.
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 …