Skip to content

The moment it happens

Get website leads on WhatsApp and log them in a sheet

Each contact form lead is added to your sheet and sent to your phone on WhatsApp straight away.

Runs
The moment it happens
Apps
Google Sheets, WhatsApp Business
AI
Not needed
Access
Sheet edit; whatsapp_business_messaging

Send this to your assistant

Create a ClickRuntime automation: when someone fills in my website contact form, add them to my Leads sheet and send me their details on WhatsApp.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

Tradespeople, photographers and other small businesses win work by replying first. A lead that sits in an inbox for three hours has often already booked someone else.

Getting each lead on WhatsApp the moment it arrives lets you call back while the person is still thinking about it, and the sheet keeps every lead in one list for follow-up.

What you get out of it

  • Reply first, win more

    You see the lead within seconds and can call while they're still at their desk.

  • A list of every lead

    Each one is added to your sheet with the date. Nothing is lost in an inbox.

  • Works on site

    WhatsApp on your phone is all you need. No laptop required.

  • Any form will do

    Any website form that can send a webhook works.

How it works

What happens, step by step

  1. Your website form sends each new lead to ClickRuntime.

  2. A row with the lead's details and the time is added to your Leads sheet.

  3. You get a WhatsApp message with their name, number and message.

Before it runs live

  • Connect your Google Sheets account and pick the spreadsheets it may use
  • Connect WhatsApp Business
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Get website leads on WhatsApp and log them in a sheetjust nowSucceeded
WhatsApp · Leads🆕 Lead: Morgan Lee 447700900456 morgan@acme.example — Quote for a kitchen refit, ideally next month

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

Changes you can ask for

  • Act only on the items that match your own rules, and skip the rest
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Slack
  • Combine it with other Google Sheets and WhatsApp Business steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
website_leads_to_whatsapp_and_sheets.pyexample
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from datetime import datetime, timezone
from clickruntime import on_event, credentials, http

SHEET_ID = "your-spreadsheet-id"
MY_PHONE = "447700900123"
WA = "https://graph.facebook.com/v20.0/your-phone-number-id/messages"

def wa(to, text):
    http.post(WA, headers={"Authorization": f"Bearer {credentials.secret('WHATSAPP_TOKEN')}"},
              json={"messaging_product": "whatsapp", "to": to, "type": "text", "text": {"body": text}}).raise_for_status()

@on_event
def handle(event):
    f = event.json or {}
    row = [datetime.now(timezone.utc).isoformat(timespec="minutes"), f.get("name", ""), f.get("phone", ""), f.get("email", ""), f.get("message", "")]
    build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False).spreadsheets().values() \
        .append(spreadsheetId=SHEET_ID, range="Leads!A:E", valueInputOption="RAW", body={"values": [row]}).execute()
    wa(MY_PHONE, f"🆕 Lead: {row[1]} {row[2]} {row[3]}\n{row[4][:500]}")
    return {"lead": row[1]}

FAQ

Common questions

Will the lead get a message too?
Not by default. You can add an approved WhatsApp template to thank them, if they've agreed to be contacted that way.
Can I send leads to a colleague instead?
Yes. Set their number, or several numbers, to receive the alerts.
What details are included?
Whatever your form collects, usually name, phone, email and message.
What permissions does it need?
Sheet edit; whatsapp_business_messaging. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run for each event the app sends.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Get website leads on WhatsApp and log them in a sheet” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.