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 Alex Baban
    How to Send WhatsApp Messages from Google Sheets with JavaScript and Node.js How to Send WhatsApp Messages from Google Sheets with JavaScript and Node.js

    With Google Sheets (online spreadsheet app from Google) you can easily collaborate in real-time with coworkers, clients, or others. The structure and simplicity of keeping data in rows and columns brings many benefits.

    WhatsApp is a popular app for smartphones that offers a replacement to traditional text messaging systems. It allows you to send messages to another person who is also using WhatsApp. You can send simple text messages and you can also send attachments containing pictures, audio clips or video recordings.

    In this post, you will learn how to create a Node.js application which can be used to send WhatsApp messages to multiple recipients. It uses a Google Sheets spreadsheet as the data source for contacts and Twilio's API for WhatsApp to send the messages.

    We'll take an iterative approach building this application. Let's start with a name and call it "A Message Sender".

    What you'll need

    • A Google …
    Read More
  • By Marcus Battle
    Create Your Own Phone Backup Service using PHP, WhatsApp API, DigitalOcean Spaces, and Laravel Create a Phone Backup Service using WhatsApp.png

    Have you ever had a video from a loved one that you wanted to keep forever? Maybe a picture that you wanted to save but didn’t want to add to your phone? Whatever the use case, it’s almost impossible to backup some types of media, like voicemail and contacts, without an app.

    We're going to learn how to create a phone backup service that allows us to manually transfer data via WhatsApp to cloud storage, just by using our phone number.

    We will accomplish this by creating a RESTful API in Laravel, connecting it to Twilio’s WhatsApp API, and adding cloud storage via DigitalOcean Spaces.

    In order to complete this tutorial you will need the following:

    At the time of writing, DigitalOcean does not provide an official PHP API for connecting to its object storage. …

    Read More
  • By Dominik Kundel
    Creating a virtual photo booth using Twilio, WhatsApp & Cloudinary ueiPKYUnYGNhEDFMWyk3KgruLhuc2iu1GEA5JD3lUxeZL84E1GmuH5w4UOejAXzZdj7NK7_owncknk3e9-IPSlaGEvt19TclzBKxFkx2eU-el2cwJrNfPqXCldzqrW08DCEreTNV

    If you've ever been to Berlin, chances are high that you've seen multiple photo booths in bars and on the street. Berlin and photo booths just belong together. This year for JSConf EU we wanted to build our own virtual photo booth, powered by Twilio for WhatsApp. In this post, we'll look at how we built the digital part of the photo booth using Twilio and Cloudinary.

    Let's build a purely digital version of this photo booth where when a person sends in an image, we'll perform some manipulations on that picture and send it back.

    Prerequisites

    Before we get started, make sure you have the following:

    If you prefer to view the next steps as a video to follow along, …

    Read More
  • By Charles Oduk
    Create a WhatsApp Chatbot that Books Appointments in Google Calendar Using Autopilot and PHP Create a WhatsApp Chatbot that Books Appointments in Google Calendar Using Autopilot and PHP.png

    Introduction

    It’s amazing how in recent years, Natural Language Processing (NLP) has transformed how we build conversational interfaces. Notably, more businesses are building chatbots that interact with their customers in real time. In my previous tutorial, I wrote about building a chatbot using Dialogflow. In this tutorial, we’re going to build a chatbot using Twilio Autopilot and Whatsapp. Our chatbot will allow users to book an appointment and have a Google calendar event created.

    This tutorial requires basic knowledge of Autopilot. If you need to read up, please do so from this guide.

    Tutorial Requirements

    Create a Google Project

    To start off, we need to create a Google Project and enable the Google Calendar API. From your project dashboard, click on the Credentials tab. Click the create credentials …

    Read More
  • By Felistas Ngumi
    How To Send Images on WhatsApp using PHP Copy of Photo blog Header 2.png

    Introduction

    WhatsApp is one of the most popular instant messaging applications used globally. It has over 450 million active users every day with an average user checking WhatsApp 23 times in a day. Modern businesses that have upheld online marketing tools in order to reach their customers have recorded tremendous growth in their sales and increased their customer base. In this tutorial, I’m going to take you through how to send WhatsApp messages with image attachments using PHP.

    Prerequisites

    Ensure you have the following installed in your local development environment.

    1. PHP
    2. Twilio Account activated with WhatsApp Sandbox Channel.
    3. Twilio PHP SDK

    Getting Started

    In your preferred terminal, run the following commands:

    $ mkdir demo
    $ cd demo
    $ touch twilioWhatsAppMessaging.php .env
    $ composer require twilio/sdk vlucas/phpdotenv
    

    The above commands create a folder named demo, in which the twilioWhatsAppMessaging.php and .env files are created inside of it. We have …

    Read More
  • By Phil Nash
    Send Images and Files via WhatsApp Using Ruby 8kEzE4pzPwWTXwfR8Cf702Bf_WzY45UvAPBbdqohDl1qudH815kSjIhWqqV4hirBR8iPDRw6EzhsyIH7z4QaJuNvWLyjYmFxrkhBzC8vlaZNsN89BoJx7AToabvAl-M_br4nZBo

    With the Twilio API for WhatsApp we can send messages to WhatsApp numbers. Those messages can be plain text or include files like images, audio and even PDFs up to 5MB. Let's see how to do so using Ruby.

    Things you'll need

    If you want to code along with this post, you'll need a few things:

    Got all that? Let's get coding then!

    Create a new directory for your project and use Bundler to initialise a new Gemfile:

    mkdir whatsapp-messages
    cd whatsapp-messages
    bundle init
    

    Open up the new Gemfile and add the twilio-ruby gem:

    # frozen_string_literal: true
    
    source "https://rubygems.org"
    
    gem "twilio-ruby"
    

    Install the gem by running bundle install on the command line.

    Sending your first WhatsApp message

    Create a …

    Read More
  • By Dominik Kundel
    Send Images and Other Media via WhatsApp Using Node.js Decorative header image for "Send Media Messages using WhatsApp & Node.js"

    The Twilio API for WhatsApp allows you to not only send text-based messages to WhatsApp numbers but also send and receive media messages. This allows you to send images (JPG, JPEG, PNG), audio files and even PDFs up to 5MB. Let's see how we can do this using Node.js.

    If you prefer watching a video tutorial instead, check out this video on our YouTube channel:

     

    First Things First

    Before we get started, make sure you have:

    If you want to try this out make sure to set up a new project by running:

    mkdir whatsapp-media-messages
    cd whatsapp-media-messages
    npm init -y
    

    Sending Your First Media Message

    Install the twilio …

    Read More
  • By Sam Agnew
    How to send WhatsApp Media Messages with Python PythonWhatsApp

    WhatsApp is a messaging service used by people all over the world. With Twilio's Messaging API you can programmatically send WhatsApp messages. Let's walk through how to use Python to send a media message over WhatsApp.

    Development Environment Setup

    Make sure we have the right software installed and set up that we'll need to use for the rest of this post. Throughout this post, you will need:

    Here is a good guide to follow in general if you are going to be doing more with Twilio and Python.

    Sign up for Twilio and activate the Sandbox

    Before you can send a WhatsApp message, you'll need to sign up for a Twilio account or sign into your existing account and activate the Twilio Sandbox for WhatsApp …

    Read More
  • By Sam Agnew
    How to Send a WhatsApp Message with JavaScript and Node.js WhatsAppNode

    WhatsApp is a messaging service used by people all over the world. With Twilio's Messaging API you can programmatically send WhatsApp messages. Let's walk through how to use JavaScript to send a message over WhatsApp.

    Development Environment Setup

    Let's start by making sure we have the right software installed and set up that we'll need to use for the rest of this post. Throughout this post, you will need:

    Here is a good guide to follow in general if you are going to be doing more with Twilio and Node.js and have any more questions.

    Sign up for Twilio and activate the Sandbox

    Before you can send a WhatsApp message from your web language, you'll need to sign up for a Twilio account or sign into …

    Read More
  • By Layla Porter
    Daily Dog with C#, WhatsApp and Azure functions 822m66DdV5S5TrfkutIagXi-tELxwMf92-KOdnf64XbhS8GoCdTYklLhMJiNKi4QTNCZ_nb50f7I9582qI1iZcOiiJ1yuOBIejZ5T5nNjn0QyoKQWY0v843XjJvxYPum-kQsq0Q7

    I love Bing Image of the day, it always makes me smile! I also love dogs, so I thought why not combine the two and create an app that sends a daily dog picture via WhatsApp.

    This post will take you through all the steps to create an azure scheduled function in C#, make a call to the Dog API to retrieve a photo and then send the returned image to a number via the Twilio API for WhatsApp.

    This post assumes some base knowledge of C# and RESTful APIs.

    To get started, we will need:

    Create an Azure Function

    From the Azure portal, click the Create a resource button, …

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