The moment it happens
Score and flag incoming leads and requests
Each submission gets a score, a category and any risks noted, and the urgent ones land in your inbox.
- Runs
- The moment it happens
- Apps
- Groq
- AI
- Not needed
- Access
- API key
Send this to your assistant
Create a ClickRuntime automation: give me a link my contact form can post to. Have Llama 3.3 on Groq score each lead from 1 to 10, categorise it as sales, support or partnership, flag anything that matches my blocklist, reply with JSON and email me anything scoring 8 or more.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Anything that arrives through a public form tends to need the same first read: is this a real lead, a spam submission, an urgent complaint, a job ad worth a look? A founder with a contact form, a recruiter with an applications inbox or a community manager with a report link spends the first part of every day sorting before doing any actual work. Urgent items are often buried under noise from the same form.
You get a link that accepts text. Each submission is checked against your stored keyword rules, then passed to a Llama model on Groq that returns a structured verdict: a score, a category and a short reason. The result is returned to the sender, and anything high-priority is emailed to you straight away.
It suits lead qualification, report triage, job ad screening and any stream of text where the first decision follows a pattern.
What you get out of it
Urgent items reach you first
High-priority submissions are emailed immediately, so a hot lead or serious report does not wait behind a pile of low-value messages until you get to the inbox. Every minute saved on a good lead can increase the chance of winning it.
Spam and noise filtered at the door
Submissions that fail your rules or score low can be handled differently. You spend your attention on the items that justify it. Rejected items can still be kept for review, so nothing useful is permanently lost to a mistaken filter, and the inbox stays focused.
Consistent judgment every time
The same rules and model apply to every message, so a Friday evening submission is treated like a Monday morning one, with no tired shortcuts. Humans vary through the week, while a rule plus a model stays steady, which is what you want for a first screen.
Structured output you can use
A score and category per submission give you something to sort and filter by, rather than a wall of text you have to interpret. Categories such as lead, complaint and spam can drive routing, so the right person sees each kind, with a short reason attached.
Fast enough to respond live
Groq's quick responses mean the sender can get an answer in the same web request, which suits chat-like flows and instant acknowledgments. That suits embedded forms and chat widgets, where a visitor expects a reply while still on the page.
How it works
What happens, step by step
When a lead or request is sent to your personal ClickRuntime link, the automation starts straight away.
ClickRuntime checks it against your list of blocked words.
A Llama model on Groq scores it from 1 to 10, puts it in sales, support or partnership, and gives a reason.
If it scores 8 or more and contains no blocked words, you get an email with the score, category, reason and the full submission.
Before it runs live
- Connect Groq
- 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
- 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 Groq steps into one automation
Under the hood
The code that runs this automation
import json
from clickruntime import on_event, credentials, notify, http, state
@on_event
def handle(event):
lead = event.json or {}
text = json.dumps(lead)
blocked = [w for w in state.get("blocklist") or [] if w.lower() in text.lower()]
resp = http.post("https://api.groq.com/openai/v1/chat/completions",
headers={"Authorization": f"Bearer {credentials.secret('GROQ_API_KEY')}"},
json={"model": "llama-3.3-70b-versatile", "response_format": {"type": "json_object"},
"messages": [{"role": "user", "content": "Score this lead 1-10 and categorise it as "
"sales, support or partnership. Reply as JSON with score, category, "
f"reason.\n\n{text}"}]})
resp.raise_for_status()
result = json.loads(resp.json()["choices"][0]["message"]["content"])
result["blocked"] = blocked
if result["score"] >= 8 and not blocked:
notify.email_me(f"Hot lead ({result['score']}/10, {result['category']})", f"{result['reason']}\n\n{text}")
return resultFAQ
Common questions
What kind of text can I send to be screened?
How do keyword rules and the AI work together?
How accurate is the AI verdict?
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 a morning summary of your newsletters
At 9am you get one short summary of what's new in the newsletters and feeds you follow.
See how it worksStart each day with a short plan
Each morning an email gives you a brief note and three priorities to work from.
See how it worksPost new orders and sign-ups to Slack
When something happens in your shop, app or form, the details land in the right channel straight away.
See how it worksKeep exploring
Set up “Score and flag incoming leads and requests” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.