Skip to content

The moment it happens

Log form leads to a Google Sheet and announce them in Discord

Each lead from your website form is added to your Leads sheet and posted in your Discord #leads channel within seconds.

Runs
The moment it happens
Apps
Discord, Google Sheets
AI
Optional
Access
Sheets edit; Discord send

Send this to your assistant

Create a ClickRuntime automation: when my form sends a submission to my trigger link, add the lead to my Leads sheet and post their name, company and email in #leads on Discord.

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

A small agency runs its team chat on Discord and gets new business through a contact form on its website. Form submissions land in one person's email, and if she is on a call or away, a warm lead can wait a day for a reply. There is also no single list of every lead, so it is hard to see where enquiries come from or who followed up.

With this automation every submission is added to a shared Leads sheet and announced in Discord the moment it arrives, so whoever is free can reply while the person is still interested.

What you get out of it

  • Faster replies to new leads

    The whole team sees a new enquiry in Discord within seconds. Whoever is free can pick it up instead of waiting for one inbox owner. Quick replies win more work.

  • One list of every lead

    Every submission becomes a row in the sheet with the date and details. You can filter, sort and add notes such as who followed up. It doubles as a simple pipeline.

  • Nothing lost in an inbox

    Form emails get buried, filtered or missed during holidays. A sheet row and a channel message are hard to overlook. Each lead has a visible record.

  • Useful for reporting

    With every lead in one sheet, monthly counts and sources are easy to work out. You can see which pages or campaigns bring enquiries. Marketing decisions get real numbers.

  • Works with the form you already have

    Any form that can send its submissions to a web link can be used. You keep your current website and form design. Only where the submission goes changes.

How it works

What happens, step by step

  1. When someone fills in your website form, the form sends the submission to your ClickRuntime trigger link.

  2. It checks that the submission has a name and a valid email address.

  3. The lead is added as a new row in the Leads tab of your Google Sheet.

  4. A message with the name, company and email is posted in your #leads Discord channel.

Before it runs live

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

What you get

RunsThe moment it happens
Log form leads to a Google Sheet and announce them in Discordjust nowSucceeded
Discord · #leadsNew lead: Priya (Northwind Traders) priya@northwind.example

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
  • Change what the AI looks for, or how it writes the result
  • Add another app, for example also send it to Slack
  • Combine it with other Discord and Google Sheets 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.
log_form_leads_to_a_sheet_and_ping_discord.pyexample
import re
from datetime import datetime, timezone
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_event, credentials, http

SHEET_ID = "your-spreadsheet-id"
CHANNEL_ID = "your-discord-channel-id"

@on_event
def handle(event):
    lead = event.json or {}
    name, company, email = lead.get("name", "").strip(), lead.get("company", "").strip(), lead.get("email", "").strip()
    if not name or not re.match(r"[^@\s]+@[^@\s]+\.[^@\s]+$", email):
        return {"skipped": "missing name or email"}
    sheets = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
    row = [datetime.now(timezone.utc).isoformat(timespec="minutes"), name, company, email, lead.get("message", "")]
    sheets.spreadsheets().values().append(spreadsheetId=SHEET_ID, range="Leads!A:E", valueInputOption="USER_ENTERED",
                                          body={"values": [row]}).execute()
    http.post(f"https://discord.com/api/v10/channels/{CHANNEL_ID}/messages",
              headers={"Authorization": f"Bot {credentials.secret('DISCORD_BOT_TOKEN')}"},
              json={"content": f"New lead: {name} ({company or 'no company'}) {email}"})
    return {"logged": email}

FAQ

Common questions

What if the form is submitted with an empty email?
Submissions without a valid email address are skipped and not added to the sheet. That keeps spam and accidental clicks out of your lead list.
Which columns are filled in the sheet?
The date, name, company, email and message by default. Any extra fields your form sends can be added as more columns.
Can it post to a different Discord channel per form?
Yes. If you have several forms, each can be sent to its own channel, for example sales enquiries to #leads and job applications to #hiring.
What permissions does it need?
Sheets edit; Discord send. Nothing else in your accounts is used.
Does it need AI?
No, but you can ask for an AI step (for example a summary). It then uses ClickRuntime's built-in 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 “Log form leads to a Google Sheet and announce them in Discord” from your assistant

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