Every 5 minutes
Sort form entries and send only leads to Slack
Each form entry is marked as lead, support or spam, and only the leads reach Slack with a short summary.
- Runs
- Every 5 minutes
- Apps
- Netlify
- AI
- Yes, uses the built-in AI allowance
- Access
- read
Send this to your assistant
Create a ClickRuntime automation: for each new submission to my Netlify contact form, decide if it's spam, a sales lead or a support question, and post only the leads to #sales in Slack with a one-line summary.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A marketing site with a Netlify contact form gets a steady stream of entries, and a large share is spam: SEO offers, crypto links, bots filling every field. The real enquiries from prospects look the same in the list. Someone has to read each submission to find the three that matter, and a genuine lead can sit unread for a day under the junk.
Every five minutes ClickRuntime fetches new Netlify form submissions and sends each one to its built-in AI to classify as spam or a real lead. For real ones it writes a one-line summary, then posts those to Slack with the sender, message and form name. Spam is dropped without notifying anyone.
Small businesses and agencies that handle their own inbound leads from Netlify forms use it most.
What you get out of it
Real leads are seen within minutes
A genuine enquiry appears in the channel quickly, and spam never does. The sales contact replies while the prospect is still comparing suppliers. The sales contact replies while the prospect is still comparing suppliers.
Nobody reads junk
The AI sorts SEO pitches and bot entries out before a person looks. The team saves the daily habit of opening a list in which 90 percent is worthless. Nobody has to open a list in which most entries are worthless.
Summaries speed up the first reply
A one-line description of what the visitor wants tells the responder how to start. They can route a pricing question to sales and a bug report to support at a glance.
No separate spam service is needed
Classification runs in ClickRuntime's built-in AI, so there is no extra vendor or API key to manage. The setup stays in one place. There is no extra vendor, contract or key to manage alongside the form.
Leads are not lost in a noisy list
Because only genuine submissions are posted, an important one is not buried among forty bot entries. Pipeline numbers improve because fewer real enquiries go unanswered. Pipeline numbers improve because fewer genuine enquiries go unanswered.
How it works
What happens, step by step
Every five minutes ClickRuntime picks up new entries from your Netlify form.
AI reads each one and marks it as a lead, a support question or spam.
Leads go to your Slack channel with the person's name, email and a one-line summary of what they want. Support and spam stay out of the channel.
Before it runs live
- Connect Netlify
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 Netlify steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_trigger, credentials, http, notify, state, report_fetched, ai
SITE_ID = "your-netlify-site-id"
def netlify(path, **params):
resp = http.get(f"https://api.netlify.com/api/v1/sites/{SITE_ID}/{path}", params=params,
headers={"Authorization": f"Bearer {credentials.secret('NETLIFY_TOKEN')}"})
resp.raise_for_status()
return resp.json()
SCHEMA = {"type": "object", "properties": {"label": {"enum": ["spam", "lead", "support"]}, "summary": {"type": "string"}},
"required": ["label", "summary"]}
@on_trigger
def run(event):
last = state.get("last_created_at") or ""
subs = [s for s in netlify("submissions", per_page=50) if s["created_at"] > last]
report_fetched(len(subs))
if not subs:
return {"new": 0}
leads = 0
for s in subs:
d = s["data"]
result = ai.generate(f"From: {d.get('name')} <{d.get('email')}>\n{str(d.get('message'))[:1500]}",
system="Classify this contact form message and summarise it in one line.",
json_schema=SCHEMA, max_output_tokens=80).json
if result["label"] == "lead":
notify.slack(f"Lead: {d.get('name')} <{d.get('email')}> - {result['summary']}", channel="#sales")
leads += 1
state.set("last_created_at", max(s["created_at"] for s in subs))
return {"new": len(subs), "leads": leads}FAQ
Common questions
Can it misjudge a real lead as spam?
Does it work with Netlify's built-in spam filtering?
What happens to the original submission?
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
Get emailed when a production deploy fails
A broken production build reaches you with Netlify's error message, while branch previews stay quiet.
See how it worksReceive each Netlify form entry by email
Every new submission to your site's form arrives in your inbox with all its fields.
See how it worksHear when a production deploy is live
Slack tells you as soon as a new production deploy is ready, with its URL.
See how it worksKeep exploring
Set up “Sort form entries and send only leads to Slack” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.