Build the future of communications.
Start Building for Free

SMS posts

  • By Dhruv Patel
    Send and Receive SMS Messages via Discord with Twilio and Node.js Send and Receive SMS messages via discord header

    In recent years, Discord has become the central messaging platform for communities especially with the help of Discord bots. Through Discord’s extensive API, developers are able to build robust bots that are capable of various actions such as automating tasks and chatting with users.

    With the gaining traction of Discord bots, I decided to think of ways that Twilio can be used alongside it. A fitting integration would be to use Twilio Programmable Messaging; you can communicate with those who don’t have Discord or SMS, or even be notified on important events such as if you’ve been mentioned or if members have left or joined your server.

    In this article, you’ll learn how to build a Discord bot that’s able to notify you on important events on your server and allow you to send messages to your server all through SMS.

    Phone screenshots of discord app and SMS app showing notification of new user joining and two way messaging

    Prerequisites

    Here’s what you’ll need for this …

    Read More
  • By Angela Wieber
    Identify Phone Number Line Type with Twilio Lookup to Alert Customers over SMS or Voice Lookup Line Type Hero

    Although landlines have been decreasing in popularity with the rise of mobile phones, some households continue to use them as a primary means of contact. According to the National Center for Health Statistics, 10.4% of adults aged 65 and older have a landline alone without mobile service. This demographic is important to account for when sending critical alerts and time-sensitive notifications to customers.

    In this tutorial, we are going to build a demo that checks an end user’s phone number type and sends an instant alert as a voice call or SMS depending on whether the device is a landline or mobile. You can build this in the Twilio console or programmatically. We’ll use the console in this blog post.

    Prerequisites

    What we will build

    1. A Twilio Function that uses the Twilio Lookup API to determine a phone number line …
    Read More
  • By Johnny Nguyen
    How to Find Your Classes with Twilio SMS, Python, and Airtable How to Find Your Classes with Twilio SMS, Python, and Airtable

    You can always count on the fact that I will get lost the first week of each college semester. I can have a physical copy of my schedule, my schedule set as my phone wallpaper, or a web page with my schedule pulled up. However, it can still take me a while to sift through webpages, find the building, search up the building, open up the directions, and then find the classroom.

    With the new school semester coming around the corner, this problem came to mind during a coding workshop, and I programmed it in less than an hour. In this tutorial, you will learn how to use Twilio SMS, Python, and Airtable to send you an SMS message of your classes with directions for the day, so you can find your classes on time.

    Prerequisites

    To continue with this tutorial, you will need:

    Read More
  • By Bill Higbee
    SMS Marketing: How to Decide Whether to Build or Buy a Solution People working on computer

    There are a number of reasons why a company might choose to build a customized SMS marketing solution. For example, they may need to integrate with an expanding MarTech stack or support high growth and expansion. But for other companies, out-of-the-box (OOTB) software may provide all they want and need.

    Regardless of the final decision, there are some key factors that every business should consider before deciding whether to build or buy an SMS solution. But first, let’s talk about the difference between the two.

    Building an SMS marketing solution

    For purposes of this blog post, we define ‘Build’ as:

    • An internal team of stakeholders is assembled for collaboration. This team generally includes marketing members as well as product managers, engineering leads, and sometimes IT.
    • The business requirements are documented, while taking into consideration the immediate needs as well as future desires.
    • A provider is selected. An example of a …
    Read More
  • By Niels Swimberghe
    Use Visual Studio Port Tunneling to handle Twilio Webhooks Use Visual Studio Port Tunneling to handle Twilio Webhooks

    Visual Studio recently introduced a new feature called port tunneling. By using port tunneling, Visual Studio will create a new public URL (tunnel URL) for you, and HTTP requests sent to the tunnel URL will be forwarded to your ASP.NET Core project running on localhost.

    Port tunneling has a lot of use cases. You could use this to easily test your web application on other devices like mobiles phone and tablets. You could also use this to make your application temporarily, publicly available for doing interactive demos and inviting your audience to participate.

    How to use port tunneling with Twilio

    The most exciting use case for Twilio is that you can use port tunneling to test webhooks. What are webhooks again?

    "Webhooks are user-defined HTTP callbacks. They are triggered by some event in a web application and can facilitate integrating different applications or third-party APIs, like Twilio." …

    Read More
  • By Hayden Powers
    Learn How to Use Twilio Functions by Building an SMS Measurement Converter for JavaScript Beginners How to use Twilio Functions JavaScript Beginners Header image

    There I was, in a desolate cabin with nothing except my maladaptive daydreams, 2G coverage, and ingredients for the only dish I had ever managed to write down splayed out on the countertops. There was just one problem. After desperately rummaging through the rental’s kitchen cabinets, I found only a single tablespoon hanging lonesomely on an otherwise empty ring.

    The proportions of ingredients were important in this dish, but I hadn’t actually sat down and memorized all the conversion rates before. Without internet service, not even Google could save me, but I did my best to eyeball it and make due.

    Someone about to eat but being disgusted by the smell of the food

    It turned out terrible, and I vowed to never be in such a predicament again.

    With some beginner-friendly JavaScript and hosting by Twilio Functions, we could make a measurement converter that can be used anywhere with cell service. In this tutorial, we will do just that! May our recipes …

    Read More
  • By Ath Tripathi
    Enable Multiple OTP Methods in your Django Application with Twilio Enable Multiple OTP Methods in your Django Application with Twilio

    In this tutorial, you will learn how to make a one-time password (OTP) verification system in Django using Twilio. This application will allow users to select their preferred method of receiving the OTP.

    We will be using the Twilio SMS service and Twilio WhatsApp sandbox to deliver OTPs through SMS and WhatsApp channels to users.

    Let’s talk about our main focus for this tutorial.

    Our primary focus will be to make a pipeline of delivering OTPs and verifying them. That’s all we are going to do today.

    What are we not going to do?

    We will not make an entire Django user management and authentication system using the default Django login setup — we will be simply using cookies to see if the user is OTP verified or not.

    Keeping these things in mind, let’s get started.

    Prerequisites

    • Python 3.6 or above installed
    • Basic knowledge of Django (You'll have a …
    Read More
  • By Johnny Nguyen
    How to Build a Linear Regression Model Using Twilio SMS and Python How to Build a Linear Regression Model Using Twilio SMS and Python

    Linear regression is a common and useful approach for modeling the relationship between a dependent variable and one or more independent variables. Its use spans many applications, such as economics, medicine, and science. Whether you're an expert in a lab or a beginner on a laptop, linear regression is a way to achieve valuable results built on relatively simple formulas.

    In this tutorial, you will implement a linear regression model using Python and scikit-learn. To add more functionality, you will use Flask and Twilio's Programmable Messaging API to help you build your data and make predictions from the convenience of your phone.

    Prerequisites

    To continue with this tutorial, you will need:

    • Python 3.10 or higher installed on your machine.
    • A Twilio account. If you haven’t yet, sign up for a free Twilio trial.
    • A Twilio phone number. After having an account, you will need to obtain a Twilio phone …
    Read More
  • By Neil Ruaro
    How to Create an API Texting Service using Twilio SMS and Python How to Create an API Texting Service using Twilio SMS and Python

    Texting is one of the most common forms of communication in the modern age. Twilio provides a simple and easy-to-use interface for sending SMS text messages through their SMS API.

    In this tutorial, you’ll be using the Twilio SMS API to create your very own API texting service using Python and the FastAPI framework.

    Additionally, you’ll also learn about testing backend servers created with FastAPI, as well as how to deploy the API to Heroku using Docker.

    If you're unfamiliar, FastAPI is a Python web framework for creating fast API applications. FastAPI also has default integration with Swagger documentation and makes it easy to configure and update.

    Docker, on the other hand, is an industry staple in software engineering, as it is one of the most popular containerization softwares out there. Docker is used for developing, deploying, and managing applications in virtualized environments called containers.

    The main selling point …

    Read More
  • By Niels Swimberghe
    SMS/ボイスアプリの動作確認にTwilio Dev Phoneを利用する Test SMS and Phone Call apps with the Twilio Dev Phone JP

    この記事はNeils Swimbergheこちらで公開した記事(英語)を日本語化したものです。

    Twilioを利用することで、電話番号、テキストメッセージ、音声通話をベースとするアプリケーション構築が可能となります。電話ネットワークがベースとなるこれらアプリケーションは、もちろん携帯電話やスマホを使ってテストすることができますが、手元に電話がない状況でこれらアプリケーションをテストすることができるでしょうか。なぜ電話を使わないのかと思われるかもしれませんが、背景的な部分は後ほど説明するとして、まずは可能なことを解説していきます。

    Twilio Dev Phoneのご紹介

    Twilio Dev Phone(トゥイリオ・デブ・フォン)とは

    Twilio Dev Phoneは、Twilio製品の上に構築されたツールで、ブラウザから電話やテキストメッセージを送受信(発着信)することが可能です。Dev PhoneはGitHub上のオープンソースプロジェクトとして構築されているので、ソースコードを読んで自由にコントリビュート(貢献)することができます。Twilio Dev Phoneの詳細については、ドキュメントでご確認ください。

    Twilio Dev Phoneを使用する理由

    ご自身の電話端末の代わりにTwilio Dev Phoneを使う典型的なシナリオを、以下にいくつか紹介します。

    🌍 国際的なアプリケーション

    ユーザーが世界中に広がるアプリケーションを構 …

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