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.
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
When someone fills in your website form, the form sends the submission to your ClickRuntime trigger link.
It checks that the submission has a name and a valid email address.
The lead is added as a new row in the Leads tab of your Google Sheet.
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
Build your own
Need it to work differently?
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
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?
Which columns are filled in the sheet?
Can it post to a different Discord channel per form?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Log every shop order in a sheet and post it to Discord
Each new order from your shop is added to your Orders sheet and announced in your Discord channel.
See how it worksWork through a content queue in Sheets and post results to Discord
Every hour, the next ready idea in your sheet becomes a draft script or caption, is saved back to the row and is posted to your Discord channel.
See how it worksPost new and changed sheet rows to Discord
Whenever a row in your sheet is added or changed, a formatted message appears in your Discord channel.
See how it worksKeep exploring
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.