Skip to content

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.

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 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

  1. Every five minutes ClickRuntime picks up new entries from your Netlify form.

  2. AI reads each one and marks it as a lead, a support question or spam.

  3. 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

RunsEvery 5 minutes
Sort form entries and send only leads to Slacktoday, 9:00Succeeded
Slack · #salesLead: Jordan Lee <jordan@northwind.example> - wants pricing for 40 seats on the annual plan

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 Netlify 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.
get_ai_triage_of_form_submissions.pyexample
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?
Any classifier can make mistakes. To reduce the risk, you can have uncertain cases posted in a separate channel rather than dropped, and review them occasionally while tuning the instructions. Reviewing that channel weekly shows whether the instructions need adjusting.
Does it work with Netlify's built-in spam filtering?
Yes. Netlify forms already catch some spam with Akismet and honeypots, and this adds a second pass on the rest. Submissions flagged by Netlify can be skipped or included, as you prefer. Together the two layers catch more than either one alone.
What happens to the original submission?
It stays in Netlify's form submissions list, unchanged. The automation only reads it and posts the lead to Slack, so you can still open, export or delete entries in Netlify. That means nothing is lost if the Slack post is deleted.
What permissions does it need?
read. Nothing else in your accounts is used.
Does it need AI?
Yes. It uses ClickRuntime's built-in AI, so you don't need an OpenAI or Anthropic key. Every plan includes a monthly AI allowance.
How many runs does it use?
One run each time it checks. Checks that find nothing new and stop right away aren't counted.
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 “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.