Send WhatsApp Messages from Google Sheets Using Apps Script
WhatsApp is the messaging platform of choice for many customers and teams worldwide. With the WhatsApp Business API and Apps Script, you can send automated messages directly from a Google Sheet.
Options for sending WhatsApp via Apps Script
There are two main routes:
Twilio WhatsApp API — easiest to set up, great for testing with the Twilio Sandbox.
Meta (Facebook) Cloud API — official WhatsApp Business API, required for production at scale.
This article covers both.
Option 1: Twilio WhatsApp Sandbox
Twilio's sandbox lets you test WhatsApp messaging without a WhatsApp Business account.
Setup
In the Twilio Console, go to Messaging > Try it out > Send a WhatsApp message.
Follow the sandbox instructions (send a WhatsApp message to the Twilio number to opt in).
Twilio sandbox: recipients must opt in by sending a specific message to the sandbox number first. Suitable for testing only.
Meta API: all outbound messages to new conversations must use a pre-approved template. Free-form messages are only allowed within a 24-hour customer service window.
Phone numbers should be in international format without the + sign for Meta (447911123456) but with whatsapp:+44... for Twilio.
Both services charge per message — monitor your usage dashboards regularly when running bulk sends.