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 Sam Agnew
    Receiving Emails with Node.js, Express, and Twilio SendGrid's Inbound Parse Copy of C04 Blog Text (3).png

    Setting up an application to receive emails can be tiresome if you want to do it yourself. Luckily Twilio SendGrid includes the Inbound Parse feature, a greatly simplified method for receiving emails based on webhooks. Let's walk through how to receive emails on your own domain using Node.js.

    Requirements and dependencies

    We'll need to install the node modules for Express and the multer middleware. To install these npm modules, navigate to the directory where you want this code to live and run the following command in your terminal to create an npm package for this project:

    npm init --yes
    

    The --yes argument just runs through all of the prompts that you would otherwise have to fill out or skip. Now that we have a package.json for our app, let’s install the necessary libraries with the following shell command:

    npm install express@4.17.2 multer@1.4.4
    

    Domain authentication

    The first step in setting up …

    Read More
  • By Diane Phan
    How to Generate Story Ideas with Twilio SMS, Java, and OpenAI GPT-3 header - How to Generate Story Ideas with Twilio SMS, Java, and OpenAI GPT-3

    There are many possibilities when it comes to using OpenAI GPT-3's engine. You can build a chatbot, generate new story ideas, or translate sentences from one language to another.

    With the help of the Twilio SMS API, Java, and the Spark framework, you can respond to all incoming SMS' with a text message generated by the OpenAI GPT-3 engine. This article will help you set up a Spark application with access to OpenAI's services.

    Specifically, you will learn how to send generated story ideas from the OpenAI GPT-3 API directly to a mobile device via SMS using Java and Spark.

    Tutorial Requirements

    Read More
  • By Miguel Grinberg
    Send Scheduled SMS with Node.js and Twilio Send Scheduled SMS with Node.js and Twilio

    Twilio is all about powering communication – and doing it conveniently and fast. Our Programmable Messaging service has been available for a long time, but until now, scheduling a message to be sent at a future time required a developer to use their own scheduling solution.

    Fortunately, this is now a thing of the past! With Message Scheduling, you can send your scheduled SMS and MMS messages with a single API call, without using custom schedulers.

    In this tutorial, you’ll learn how to send scheduled SMS notifications in a Node.js application.

    Tutorial requirements

    Read More
  • By Jesse Sumrak
    Bulk SMS Marketing: What It Is and How to Get Started Bulk SMS Marketing: What It Is and How to Get Started

    What do Short Message Service (SMS) marketing and Sam's Club have in common? Both know how to do bulk right.

    With SMS marketing, you can reach thousands or millions of your recipients with the right message, on the right channel, at the right time. You can even send in bulk at scale without losing any quality or efficiency.

    The same goes for shopping at Sam's Club. You can get everything you want in the quantities you need, saving you time and money.

    OK, Sam's Club metaphor aside, bulk SMS marketing (or text messaging) is a powerful way to engage with your audience on their mobile phones. In today’s business world, “58% of consumers say texting is the best way for businesses to reach them quickly,” as opposed to 21% who prefer phone calls and 21% who prefer email communications.

    "Bulk sending" gets a bad rap for sounding spammy, but …

    Read More
  • By Miguel Grinberg
    Send Scheduled SMS with Python and Twilio Send Scheduled SMS with Python and Twilio

    Twilio is all about powering communication – and doing it conveniently and fast. Our Programmable Messaging service has been available for a long time, but until now, scheduling a message to be sent at a future time required a developer to use their own scheduling solution.

    Fortunately, this is now a thing of the past! With Message Scheduling, you can send your scheduled SMS and MMS messages with a single API call, without using custom schedulers.

    In this tutorial, you’ll learn how to send scheduled SMS notifications in Python.

    Tutorial requirements

    Read More
  • By Niels Swimberghe
    Develop webhooks locally using Cloudflared Tunnel Develop webhooks locally using Cloudflared Tunnel

    Webhooks are a way to be notified by an external service when an event has occurred. Instead of you sending an HTTP request to that service, the service sends an HTTP request to your public web service. This way, you can respond to the event in real-time as it happens. Webhooks are also a common way to integrate with Twilio's products. For example, when your Twilio phone number receives a text message or phone call, Twilio sends an HTTP request to your service with the details. Your service then responds with instructions that indicate how Twilio should respond to the event. Here's a diagram of what this exchange looks like:

    Diagram showing how SMS messages interact with Twilio and your application using webhooks

    One common challenge with webhooks is that they can only call web services that are publicly available on the internet, but when you are initially developing software, you are typically doing so on your own local machine, which by default …

    Read More
  • By Twilio
    How to Schedule a Text Message How to Schedule a Text Message.png

    There may be instances when you’d like to send a text message, but the timing isn’t quite right. Maybe it’s too early, a bit late in the evening, or it would make more sense to send something a few days from now. But waiting to send a text means you risk forgetting about it completely. So how do you write a text and send it later? You can schedule a text message or use a workaround.

    The method available to you will vary depending on your mobile device. Below, we lay out a few ways to get the job done (or get close to it). Some Android users, for example, have a scheduling feature built into their default text message app. iPhone users, however, don’t have that option. And if you’re interested in sending scheduled messages to your customers, we include a section that explains the most efficient way to …

    Read More
  • By Twilio
    How to Check How Much Time You’re Spending on Your Phone How Much Time Spent on Phone.png

    Have you ever wondered how much time you spend on your phone? Perhaps you’re curious how your daily usage compares to other members in your family. You may think you have a pretty good idea, but you just might be surprised by how often you use it.

    How many times a day do you pick up your mobile phone? How many minutes a day do you use social media and other apps? There’s an easy way to find out depending on your phone’s operating system (OS).

    The steps to find this data but will vary depending on whether you have an Android or iOS device. Most handset manufacturers use the Android phone operating system, including Google, Samsung and Motorola. While Apple phones run exclusively on iOS.

    Everyone has a preference when it comes to which phone to buy. But as of June 2020, Statcounter found that Android had 74% of …

    Read More
  • By Matthew Setter
    How to Create a Markdown Blog in PHP With the Slim Framework How to Create a Markdown Blog in PHP With the Slim Framework

    When it comes to blogging software, you're not starved for choice. However, despite this choice and how feature-rich modern blogging software is, are the available options necessarily the right choice?

    Sure, software such as WordPress, Ghost, Gatsby, and Wix are very feature-rich — and their UIs are often very smooth. But do you want the hassle of installing, configuring, and securing them on top of writing your blog content? What's more, can you justify the budget that some blogging software requires?

    Maybe, all you want to do is to write your site's content using your preferred editor, using a simple format designed for writing for the web, Markdown, rather than through a user interface.

    If that’s the case, then in this tutorial, I’m going to show you how to create a blog that draws its content from Markdown files. The blog uses the Slim Framework (version 4), the Standard PHP …

    Read More
  • By Jose M. Fernandez-Alba
    How to use Health Checks to improve AWS Load Balancer Resiliency How to use Health Checks to improve AWS Load Balancer Resiliency

    While AWS components are generally resilient, when you run at the scale of Twilio, it becomes necessary to fine-tune things to achieve the highest level of quality and availability.

    In this post, we’ll examine how to improve the Elastic Load Balancers (ELBs) to increase their fault tolerance. Using custom health checks and multivalued DNS records, we will be able to obtain fine-grained metrics on the availability of each of the ELB constituent nodes. With these metrics, we can adjust the self-healing behavior of the ELB with any criteria we consider for our purposes.

    Requirements

    In order to implement the fault-tolerant ELB solution, you need an AWS account with permissions for creating:

    • Route53 hosted zones and records
    • DNS Health Checks
    • Elastic Load Balancers
    • CloudWatch Alerts

    About the Elastic Load Balancer (ELB) internals

    In order to understand the solution, it’s necessary to know a little bit about the internal structure of …

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