Meta Instant Forms are easy enough to run. But if you’re still downloading leads and uploading them to your CRM or manually sharing them with your sales team, the handoff is a hassle.

We run instant forms instead of landing pages for some campaigns because they convert better. An instant form just makes it easier for the user to directly fill out details, and Meta auto-fills whatever it has directly from the profile. Now the problem isn't getting the lead. It's what happens after you get it.

Meta gives you the lead through a dashboard with a Download button.

When you click that, you get a CSV. Then someone has to open it, find the name and number, and send it wherever the sales team works. For some teams, that's a WhatsApp group, and for others, it's a spreadsheet or a message to whoever is handling leads. Someone still has to notice the new lead, download the file, open it, and forward it. If they're on a call or dealing with another prospect, the lead sits there until they get to it.

The obvious fix is to skip the Download button entirely and tell the sales team when a new lead comes in. That's what this setup does.

It sends Meta Lead Ads from Google Sheets to WhatsApp automatically.

Also, I want to make it clear this isn't for every team.

I’m not a fan of paying any service a premium just to get WhatsApp lead alerts they sell as an add-on. I prefer trying to do this myself, but if this comes as a feature in your existing CRM, then I would just use that. But if you ask me to pay $100 a month for this. I’d rather just script it.

Meta's own lead integration can already write straight into a Google Sheet. I added a small script that watches that sheet, and the second a new row lands, it sends a WhatsApp message to whoever's on lead duty.

Meta instant form submit
  → Meta native Forms-to-Sheets connector
  → Google Sheet
  → Google Apps Script onChange trigger
  → WhatsApp Cloud API message
  → Sales team WhatsApp

Once it's set up, no separate server or middleware subscription is running behind it. WhatsApp still charges per message, though. We'll get to that below.

Before you build the script, there's one part of the Google Sheets connection you need to understand.

What You Should Know About Meta’s “Live Switch.”

Meta doesn't actually have a "go live" switch for this connection.

You turn it on through the test itself. When the test lead lands in your sheet, Meta adds a lead_status column set to CREATED. Change that value to anything else and confirm it.

That's the step that activates the connection for real leads.

In Meta Business Suite, go to Forms and open CRM Setup. Choose Google Sheets, connect your Google account, paste in the sheet link, and select the form you want to connect.

Meta will then send a test lead into the sheet. Confirm that test, and the connection is ready to receive real leads.

Once the test lead lands, check the new row for a column containing an ID that starts with l:.

That's the lead ID, and you have to keep it.

The name and phone number tell your sales team who to call. The ID tells you which specific lead came from the ad.

The same row also carries details like the ad name, ad set, campaign, form ID, and whether the lead was organic, so you can trace the lead back to where it came from.

Later, that ID lets you tell Meta which leads actually became customers instead of just which ones filled out a form.

Now, keep that column name consistent everywhere you store it. If the ID gets overwritten or lost, you lose the piece of information you need to connect the lead back to its outcome.

Getting WhatsApp to Actually Send the Messages

Getting the lead into Google Sheets is only half of the setup.

The other half is giving the script permission to send a WhatsApp message through Meta's WhatsApp API.

That's where a few requirements come in. If you skip any of them, the script can be working perfectly, and the message can still fail.

Here's what you need to set up production WhatsApp alerts:

  • A Meta business portfolio with WhatsApp Cloud API set up
  • A dedicated phone number registered for WhatsApp Cloud API
  • A payment method added to the WhatsApp Business account
  • A long-lived system-user access token so the script doesn't stop working after a day
  • An approved WhatsApp message template

All of this becomes easy if you’re already using a WhatsApp API for communicating with your leads or sending WhatsApp alerts. I would just reuse the same setup, if you don’t, then I'll quickly explain what each one is for below:

WhatsApp won't let just anyone send business messages.

Meta may require business verification for your account or messaging limits.

Use a dedicated phone number registered for WhatsApp Cloud API.

WhatsApp charges for business messages, so you also need a payment method attached to the WhatsApp Business account.

Without one, the account isn't set up to send paid messages, and the API request can fail before the message is sent.

The Google Apps Script you add to the sheet also needs permission to talk to WhatsApp on your behalf.

That permission comes through an access token. The default token expires quickly, so you need a longer-lived token for a script that's supposed to keep running after you set it up.

An Approved WhatsApp Message Template

You should know this script isn't sending a normal WhatsApp message that you would type into the app.

It's sending a pre-approved template through the WhatsApp API.

Think of the template as the message format WhatsApp has approved in advance. Your script fills in the lead's details when it sends the message.

For this setup, the template can contain:

  • Lead name
  • Phone number
  • Email
  • City
  • What the lead is asking about
  • Campaign name
New lead alert

Name: {{1}}
Phone: {{2}}
Email: {{3}}
City: {{4}}
Requirement: {{5}}
Campaign: {{6}}

Or whatever custom fields you added to your form.

When you create the template in your WhatsApp Business account, you'll also choose a category for it.

For this internal lead alert, use the Utility category rather than Marketing. You're notifying your sales team that a new lead has arrived, not promoting something to a customer.

Once the template is approved, the script can use that template name every time a new lead comes in.

Copy The Script That Connects the Sheet to WhatsApp

Once the sheet is connected and WhatsApp is ready, the script has TWO jobs:

  1. One is onChange, and in practice it fires the moment a new row appears.
  2. The other is a time-based trigger that checks the sheet every 5 minutes as a backup. I didn't add that second one out of caution. I added it because I lost a lead to it.

The first function below finds any rows the script hasn't processed yet and passes each one to the WhatsApp sender. It checks the last row it handled, compares that with the current last row in the sheet, reads any new rows, and turns each one into a lead object.

That lead object is then passed to the function that sends the WhatsApp alert:

function scanNewRows(ss) {
  const sheet = ss.getSheetByName('Leads');
  const props = PropertiesService.getScriptProperties();
  const lastRow = parseInt(props.getProperty('lastProcessedRow') || '1');
  const currentRow = sheet.getLastRow();

  if (currentRow <= lastRow) return;

  const headers = sheet.getRange(1, 1, 1, sheet.getLastColumn()).getValues()[0];
  const rows = sheet.getRange(lastRow + 1, 1, currentRow - lastRow, sheet.getLastColumn()).getValues();

  rows.forEach(row => {
    const lead = {};
    headers.forEach((header, i) => lead[header] = row[i] || '');
    sendWhatsAppAlert(lead);
  });

  props.setProperty('lastProcessedRow', currentRow.toString());
}

The second function takes that lead information and sends it to WhatsApp through Meta's Graph API.

It uses your WhatsApp phone number ID, access token, approved template name, and the lead's details to build the request.

The request is a POST to:

POST https://graph.facebook.com/v25.0/{PHONE_NUMBER_ID}/messages

It also needs an Authorization: Bearer {TOKEN} header and a JSON body containing the template and its variables.

Here's the request it sends:

function sendWhatsAppAlert(lead) {
  const url = 'https://graph.facebook.com/v25.0/' + PHONE_NUMBER_ID + '/messages';

  const payload = {
    messaging_product: 'whatsapp',
    to: RECIPIENT_PHONE,
    type: 'template',
    template: {
      name: 'internal_lead_alert',
      language: { code: 'en' },
      components: [{
        type: 'body',
        parameters: [
          { type: 'text', text: lead.name || 'Unknown' },
          { type: 'text', text: lead.phone || 'Not provided' },
          { type: 'text', text: lead.email || 'Not provided' },
          { type: 'text', text: lead.preferredCity || 'Not specified' },
          { type: 'text', text: lead.requirement || 'Not specified' },
          { type: 'text', text: lead.campaign_name || 'Not specified' }
        ]
      }]
    }
  };

  const options = {
    method: 'post',
    contentType: 'application/json',
    headers: { Authorization: 'Bearer ' + WHATSAPP_TOKEN },
    payload: JSON.stringify(payload),
    muteHttpExceptions: true
  };

  const response = UrlFetchApp.fetch(url, options);
  Logger.log('WhatsApp response: ' + response.getContentText());
}

The important part is that the names in your sheet match the fields the script expects, and that you log WhatsApp's response.

That way, when a message fails, you have something to look at instead of waiting for the sales team to tell you a lead never arrived.

There's one timing problem you need to account for.

The connector can create the row before all of the lead data has finished writing.

If the script reads that row too early, it can process an empty lead and move its bookmark past it. The lead then looks processed even though no WhatsApp message was sent.

The fix was simple. Wait 5 seconds before reading the new row:

function onChange(e) {
  Utilities.sleep(5000);
  scanNewRows(e.source);
}

That delay gives the connector time to finish writing the lead before the script tries to read it.

Here's what the final payload looks like with example lead values filled in:

{
  "messaging_product": "whatsapp",
  "to": "919XXXXXXXXX",
  "type": "template",
  "template": {
    "name": "internal_lead_alert",
    "language": { "code": "en" },
    "components": [{
      "type": "body",
      "parameters": [
        { "type": "text", "text": "Rahul Sharma" },
        { "type": "text", "text": "+91 99999 99999" },
        { "type": "text", "text": "rahul@example.com" },
        { "type": "text", "text": "Balewadi" },
        { "type": "text", "text": "Private office, 21-40 seats" },
        { "type": "text", "text": "Pune_Lead_Demand_Gen" }
      ]
    }]
  }
}

I did run into some issues. The script keeps track of the last run row it believes it has processed. If you delete a row, the last run row can end up ahead of the sheet's actual last row. The script then believes those leads have already been handled, and you won't see anything happening.

The 5-minute backup check caught the mismatch.

Behind that are two small helper functions: checkBaseline() compares the saved last run row with the sheet's real last row, and setBaseline() resets the last run row when they don't match.

Why An Alert Is Not a Follow-Up

None of this replaces a sales rep picking up the phone. What it does is remove the excuse.

Once the message lands in WhatsApp, someone owns that lead, and if nobody calls it, that's now visible instead of buried in a group chat nobody scrolled back through.

If your team can't tell you whether a lead was contacted, this won't fix that on its own.

It just makes the gap impossible to hide.

What this actually costs, and when it stops being enough:

Meta charges per WhatsApp message, and the rate depends on the message type.

A plain internal notification lands in the cheapest category, roughly ₹0.11 to ₹0.16 per message in India, compared to 6 to 8 times that for a promotional message.

At 50 to 100 leads a day, that's a few hundred rupees a month. What’s more useful about this is there's no middleware subscription here, but WhatsApp still charges per message, so it's not literally free, just a lot cheaper than paying for a subscription tool.

This setup holds up for a few people working off a sheet. It can be scaled and modified for different folks to get alerts based on the product or lead capture form name.

Here's what you actually walk away with from this setup.

Leads land in the sheet the second they're submitted. The sales team gets a WhatsApp alert within seconds instead of finding out whenever someone remembers to forward it.

They can follow up directly via WhatsApp with the lead as well. You could even send an automated enquiry-received template if you want. You keep the lead ID, so you can report real outcomes back to Meta later via CAPI. This should ideally solve problems with reaching out to leads on time for most teams.