Resources Playbook
Google Sheets to WhatsApp: three safe ways to automate messages, and one to avoid
If your business runs on a spreadsheet, you can send WhatsApp messages from it without retyping a number. There are three honest ways, each with Google's and Meta's limits attached, and one popular shortcut that gets numbers restricted.
The short version
- Every route from a sheet to WhatsApp that keeps your number safe goes through the WhatsApp Business Platform and approved templates: a CSV import into a WhatsApp tool, an Apps Script that calls the Cloud API, or a sheet row that fires a webhook.
- An Apps Script sender needs an opt-in column it refuses to skip, a status column so no row is sent twice, and a stop before Google's 6-minute limit per run.
- Google lists 20,000 URL Fetch calls a day for consumer accounts and 100,000 for Workspace, so a 2,000-row send is well within quota.
- A new business portfolio can reach 250 unique people a day outside the customer service window. Verifying the business is one route to 2,000.
- At Meta's India rates, 2,000 delivered utility messages cost ₹230.00 and 2,000 marketing messages ₹1,726.20, before GST.
Sneha Apte runs the office of a commerce coaching class in Kothrud, Pune, with two other staff. Everything lives in one Google Sheet: a tab per batch, a fees tab, an enquiries tab fed by the admissions form, about 2,000 rows of students and parents in all. When the 6 pm batch moves to 7 pm, she copies numbers into her phone one at a time. Her nephew has offered a Chrome extension that sends “bulk WhatsApp from Excel” in one click. (Sneha and the class are invented for this guide.)
She wants to automate WhatsApp messages from Google Sheets without losing the number the whole class knows. This playbook covers three routes that do that, the Google and Meta limits on each, what a 2,000-row send costs, and why the extension is the one to say no to.
Can Google Sheets send WhatsApp messages by itself?
Not by itself, but it can drive a tool or Meta’s API that does. All three safe routes go through the WhatsApp Business Platform, Meta’s official route for businesses, and all of them send approved templates to people who agreed to hear from you.
| Route | Who sets it up | What the sheet does | Best for |
|---|---|---|---|
| 1. CSV import into a WhatsApp tool | Anyone who can download a CSV | Supplies the contact list now and then | Monthly reminders, one-off notices |
| 2. Apps Script calling the Cloud API | Someone who can edit code | Sends row by row and records the result | A sheet that must stay the only system |
| 3. A row that fires a webhook | A developer, once | Starts a tool’s automation for each new row | New enquiries that need a reply in minutes |
If your list lives in Excel rather than Sheets, the first route works the same way: save it as CSV. The script in route two is specific to Google Sheets.
The rules the sheet has to respect
Four of Meta’s rules apply whichever route you pick, and the sheet should carry a column for the first one.
Opt-in comes first. Meta’s opt-in page (Updated 16 Jun 2026) says businesses “must clearly state the business’s name that a person is opting in to receive messages from”. For Sneha, that means an opted_in column filled from the admission form’s tick box, with the date. Our opt-in guide has wording for forms and counters.
Outside the 24-hour customer service window, every message has to be an approved template, and Meta decides its category. A batch timing change for an enrolled student should fit utility, which Meta’s categorization page says must be “non-promotional” and “specific to or requested by the user”. Next year’s admissions offer is marketing. Here is the utility template Sneha would submit:
Hi {{student_name}}, from Monday the {{batch}} batch at our Kothrud centre starts at 7 pm instead of 6 pm. Reply here if the new time doesn't work for you.
There is a daily ceiling. Meta’s messaging limits page says a new business portfolio can deliver to 250 unique people outside a customer service window in a moving 24 hours, and that verifying the business is one route to 2,000. For a 2,000-row sheet that’s the difference between one evening and eight days.
Marketing has a per-person cap too. Meta says WhatsApp “may limit the number of marketing template messages a WhatsApp user receives from any business”, and a capped message fails with error 131049. Meta’s advice is to “wait at least 24 hours” before resending.
Route 1: download a CSV and send a campaign
This is the route we’d start Sneha on. Download the batch tab as a CSV, import it into a WhatsApp tool’s contacts with the batch and course as fields, build a segment such as “FYJC Commerce 6 pm, opted in”, and send the approved template to it.
Clean three things before the import. Phone numbers need the country code, written as +91XXXXXXXXXX, and stored as text so the sheet doesn’t strip the plus; Meta’s send-messages page warns that if the plus is omitted, your business number’s country code is prepended, which “can result in undelivered or misdelivered messages”. Duplicate rows for siblings sharing a parent’s phone should become one contact. And the opt-in column should come across as a field, so the segment can filter on it.
The trade-off is drift. The sheet stays the master list, so a student who changes batch in the sheet is still in the old segment until the next import. For a monthly fee reminder that’s fine. For anything daily, it isn’t, and that’s where routes two and three come in. Our comparison of broadcast lists, groups and campaigns explains why a campaign, and not a broadcast list on the app, is the right container here.
Route 2: an Apps Script that calls the Cloud API
If the sheet must stay the only system, a short Google Apps Script can send each row through Meta’s Cloud API and write the result back. You need the phone number ID and a long-lived token from a Meta app; our Python guide to the Cloud API shows where both come from. Open the sheet, go to Extensions, Apps Script, and paste this:
// Extensions > Apps Script, inside the sheet. One row per student, columns:
// A name | B phone (+91 and 10 digits, stored as text) | C opted_in (YES/NO) | D batch | E status | F message id
const GRAPH = 'https://graph.facebook.com/v27.0';
const TEMPLATE = 'batch_time_change'; // approved utility template with named variables
const LANG = 'en'; // the exact language code the template was approved in
function sendBatchUpdate() {
const props = PropertiesService.getScriptProperties();
const token = props.getProperty('WA_TOKEN');
const phoneNumberId = props.getProperty('WA_PHONE_NUMBER_ID');
const sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Batch 6pm');
const rows = sheet.getDataRange().getValues();
const started = Date.now();
for (let i = 1; i < rows.length; i++) { // row 1 is the header
const [name, phone, optedIn, batch, status] = rows[i];
if (status) continue; // sent, skipped or failed before: never twice
if (String(optedIn).trim().toUpperCase() !== 'YES') {
sheet.getRange(i + 1, 5).setValue('SKIPPED: no opt-in');
continue;
}
if (Date.now() - started > 5 * 60 * 1000) break; // stop before Google's 6-minute limit
const res = UrlFetchApp.fetch(`${GRAPH}/${phoneNumberId}/messages`, {
method: 'post',
contentType: 'application/json',
headers: { Authorization: 'Bearer ' + token },
muteHttpExceptions: true,
payload: JSON.stringify({
messaging_product: 'whatsapp',
to: String(phone),
type: 'template',
template: {
name: TEMPLATE,
language: { code: LANG },
components: [{ type: 'body', parameters: [
{ type: 'text', parameter_name: 'student_name', text: String(name) },
{ type: 'text', parameter_name: 'batch', text: String(batch) },
] }],
},
}),
});
const body = JSON.parse(res.getContentText());
if (body.messages) {
sheet.getRange(i + 1, 5, 1, 2).setValues([['ACCEPTED', body.messages[0].id]]);
} else {
const err = body.error || {};
sheet.getRange(i + 1, 5).setValue(`ERROR ${err.code}: ${err.message}`);
}
}
}
The token never sits in the code. Put WA_TOKEN and WA_PHONE_NUMBER_ID under Project Settings, Script Properties; Google’s page describes script properties as the place for “App-wide configuration data”. Whoever can edit the script can use the token, so keep that list short.
Three habits are built in. The opt-in check runs before anything is sent, and a row without YES is marked SKIPPED rather than silently passed over. The status column makes the script safe to run again, because a row with anything in column E is never touched twice. And muteHttpExceptions makes a failed call return Meta’s error into the sheet instead of stopping the script halfway.
Read column E for what it is. ACCEPTED means Meta took the request; its send-messages page says the response “does not indicate successful delivery of your message”. Delivery, reads and later failures such as 131049 arrive on a webhook, which brings us to Apps Script’s weak spot.
Will Google’s quotas cover a 2,000-row send?
The call quota, easily. Google’s quotas page (last updated 3 September 2026) lists 20,000 URL Fetch calls a day for consumer accounts such as gmail.com and 100,000 for Google Workspace, so 2,000 rows use a tenth of the smaller one.
Time is the tighter limit. Each execution can run for 6 minutes, which is why the script stops itself at five. Suppose each call and sheet write takes about half a second, our assumption and not Google’s figure: 2,000 rows need around 17 minutes, so four runs. Add a time-driven trigger every 10 minutes and the send finishes within the hour. Trigger runtime is capped too, at 90 minutes a day for consumer accounts and 6 hours for Workspace, and 17 minutes fits comfortably.
Why Apps Script is a poor home for Meta’s webhooks
Apps Script can publish a web app with a doPost function, so it looks like it could receive Meta’s status webhooks. Two things in Google’s own documentation say otherwise.
Meta signs every webhook with an X-Hub-Signature-256 header, and its endpoint page says to check that hash before trusting the payload. Google’s web app page lists what the doPost event carries: the query string, parameters, path and the POST body. Request headers aren’t on that list, so the script can’t check the signature. And Google’s Content Service page says content returned this way “is redirected to a one-time URL at script.googleusercontent.com”, while Meta’s verification expects a response with status 200 and the challenge value. Put the receiver on a small server instead; our guide to receiving WhatsApp messages in Node.js builds one.
Route 3: a sheet row that fires a webhook
For enquiries, waiting for Sneha to run a script is too slow. Parents fill in the admissions Google Form at 10 pm and expect a reply before they ask the class down the road. Here the sheet’s job is only to announce the new row, and a WhatsApp tool’s automation does the rest.
An installable form-submit trigger runs a function for every new response. Google’s trigger events reference says the event carries values, an “Array with values in the same order as they appear in the spreadsheet”. The function posts them to the tool’s webhook URL:
// Installable form-submit trigger on the admissions sheet: post each new enquiry to a webhook URL
function onEnquiry(e) {
const url = PropertiesService.getScriptProperties().getProperty('JOURNEY_WEBHOOK_URL');
const [submittedAt, name, phone, course, optedIn] = e.values; // same order as the sheet's columns
const res = UrlFetchApp.fetch(url, {
method: 'post',
contentType: 'application/json',
payload: JSON.stringify({ name, phone, course, opted_in: optedIn, submitted_at: submittedAt }),
muteHttpExceptions: true,
});
if (res.getResponseCode() >= 300) console.log(`Webhook failed: ${res.getResponseCode()}`);
}
Add it from the script editor’s Triggers panel as a form-submit trigger. On the other side, the tool’s automation sends a welcome template, and when the parent replies the chat lands with a person who can answer fee questions. The sheet keeps its record; the conversation lives where three staff can share it.
What does a 2,000-row send cost?
Meta charges per delivered message, by category, at the recipient country’s rate. On the India rate card effective 1 October 2026, before GST:
| Send | Category | Rate per delivered message | 2,000 delivered |
|---|---|---|---|
| Batch timing change | Utility | ₹0.1150 | ₹230.00 |
| Fee due reminder on an existing plan | Utility | ₹0.1150 | ₹230.00 |
| Admissions offer for next year | Marketing | ₹0.8631 | ₹1,726.20 |
Only delivered messages are charged, so dead numbers in an old sheet cost nothing. Replies from parents open a 24-hour window in which Sneha’s staff can answer as service messages, free for the first 1,000 per number each month and ₹0.1150 each after that. Our send-message API guide covers which message type fits each reply.
The bulk sender from Excel: the route to avoid
The Chrome extension and the desktop “bulk WhatsApp from Excel” tools work by driving WhatsApp Web or the app on your behalf. WhatsApp’s Terms of Service forbid “sending illegal or impermissible communications such as bulk messaging, auto-messaging, auto-dialing”, and its help page on unofficial apps says that an account linked to one “might also be temporarily or permanently banned”. The number at risk is the one printed on every fee receipt. Our guide to bulk WhatsApp messages without a ban goes through what these tools do and what the allowed route costs.
Which route should Sneha pick?
Route one this month, route three before admissions season, and route two only if a staff member will own the code. That’s our view, and it costs her a monthly tool fee on top of Meta’s charges. In return, the three staff share the replies instead of one phone holding them all.
The script is cheaper and keeps everything in the sheet, but it sends and never listens. The first parent who replies “can my son shift to the 5 pm batch instead?” reaches nobody unless something receives the webhooks and puts the reply in front of a person. For terms like template, opt-in and customer service window, see the glossary.
Sneha’s first step is an hour’s work: add the opted_in column, fill it from the admission forms, and see how many of her 2,000 rows can actually be messaged.
Common questions
Can I send WhatsApp messages from Google Sheets automatically?
Yes, through the WhatsApp Business Platform. You can import the sheet as a CSV into a WhatsApp tool and send an approved template to a segment, write a Google Apps Script that calls Meta's Cloud API row by row, or have a new row fire a webhook into a tool's automation. Each one needs approved templates and opted-in contacts.
How do I send bulk WhatsApp messages from Excel?
Save the sheet as a CSV, import it into a WhatsApp Business Platform tool, and send an approved template to the people who opted in. Avoid tools that type messages into WhatsApp Web for you: WhatsApp's Terms of Service forbid bulk and automated messaging, and accounts using unofficial apps can be banned.
What are the Google Apps Script limits for sending WhatsApp messages?
Google's quotas page lists 20,000 URL Fetch calls a day for consumer accounts and 100,000 for Google Workspace, a script runtime of 6 minutes per execution, and 90 minutes or 6 hours of total trigger runtime a day. A 2,000-row send fits the call quota; it may need several timed runs.
How much does it cost to send 2,000 WhatsApp messages in India?
Meta charges per delivered message, before GST, on its rate card effective 1 October 2026. Two thousand utility templates, such as a batch timing change, cost ₹230.00. Two thousand marketing templates, such as an admissions offer, cost ₹1,726.20. Messages that are never delivered are not charged.
Sources
- Quotas for Google Services (Google Apps Script) · Last updated 3 Sep 2026, read live 5 Nov 2026
- Class UrlFetchApp (Google Apps Script) · Last updated 15 May 2026, read live 5 Nov 2026
- Properties Service (Google Apps Script) · Last updated 3 Sep 2026, read live 5 Nov 2026
- Installable triggers (Google Apps Script) · Last updated 3 Sep 2026, read live 5 Nov 2026
- Trigger events reference (Google Apps Script) · Last updated 3 Sep 2026, read live 5 Nov 2026
- Web Apps (Google Apps Script) · Last updated 3 Sep 2026, read live 5 Nov 2026
- Content Service (Google Apps Script) · Last updated 3 Sep 2026, read live 5 Nov 2026
- Send messages (Meta for Developers) · Updated 21 May 2026, read live 5 Nov 2026
- Utility templates (Meta for Developers) · Updated 17 Jun 2026, read live 5 Nov 2026
- Template categorization (Meta for Developers) · Updated 15 Sep 2026, read live 5 Nov 2026
- Get opt-in for WhatsApp (Meta for Developers) · Updated 16 Jun 2026, read live 5 Nov 2026
- Messaging limits (Meta for Developers) · Updated 21 May 2026, read live 5 Nov 2026
- Per-user marketing template message limits (Meta for Developers) · Updated 17 Jun 2026, read live 5 Nov 2026
- Create a webhook endpoint (Meta for Developers) · Updated 17 Jun 2026, read live 5 Nov 2026
- Pricing on the WhatsApp Business Platform (Meta for Developers) · Updated 30 Sep 2026; INR rate card effective 1 Oct 2026; read live 5 Nov 2026
- WhatsApp Terms of Service · No Updated date shown; read live 5 Nov 2026
- About unofficial apps (WhatsApp Help Center) · No date shown; read live 5 Nov 2026
Run this on your own number
Create an account, connect your WhatsApp number, and invite your team.