Hourly
Find people asking for tools like yours and list them in a sheet
Every hour, posts from people looking for a tool like yours are scored, stored in Supabase and added to a leads sheet for your team.
- Runs
- Hourly
- Apps
- Google Sheets, Supabase
- AI
- Yes, uses the built-in AI allowance
- Access
- Supabase read+write; sheet edit
Send this to your assistant
Create a ClickRuntime automation: every hour, find Reddit posts asking for tools like mine, score them with AI, store new ones in my Supabase leads table and append them to my Leads sheet.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A small SaaS team knows prospects ask online for recommendations, but finding those posts is nobody's job. When someone does look, the useful threads are days old.
Searching every hour, scoring each post and dropping the good ones into a shared sheet gives the team a steady list of conversations to join, with Supabase keeping the full record.
What you get out of it
A steady flow of warm leads
People already asking for a solution are the easiest to help.
Shared with the whole team
The sheet is easy to assign, comment on and mark as contacted.
No double work
Posts already stored are skipped, so the sheet has no repeats.
Data for later
Supabase keeps every post and score for analysis.
How it works
What happens, step by step
Every hour, ClickRuntime searches Reddit for posts matching your keywords.
It skips posts already in your Supabase leads table.
AI scores each new post from 1 to 10 for how likely the author is to need your product.
New posts are saved to Supabase, and those scoring 6 or more are added to your Leads sheet.
Before it runs live
- Connect your Google Sheets account and pick the spreadsheets it may use
- Connect Supabase
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
- Run it at a different time, more or less often, or only on weekdays
- 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 Google Sheets and Supabase steps into one automation
Under the hood
The code that runs this automation
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, ai, report_fetched
SHEET_ID = "your-spreadsheet-id"
SUPABASE = "https://your-project.supabase.co/rest/v1"
def sb(method, path, **kw):
key = credentials.secret("SUPABASE_KEY")
r = http.request(method, f"{SUPABASE}/{path}", **kw, headers={"apikey": key, "Authorization": f"Bearer {key}", "Prefer": "return=representation,resolution=merge-duplicates"})
return r.raise_for_status() or (r.json() if r.content else None)
@on_trigger
def run(event):
posts = [c["data"] for c in http.get("https://www.reddit.com/search.json", params={"q": '"looking for" invoicing tool', "sort": "new", "t": "day"},
headers={"User-Agent": "northwind-leads/1.0"}).json()["data"]["children"]]
known = {r["id"] for r in sb("GET", "leads?select=id&id=in.(" + ",".join(p["id"] for p in posts) + ")")} if posts else set()
new = [p for p in posts if p["id"] not in known]
report_fetched(len(new))
if not new:
return {"summary": "Nothing new"}
listing = "\n".join(f"{i}. {p['title']} — {p['selftext'][:300]}" for i, p in enumerate(new))
scores = ai.generate(f"Score each post 1-10 for needing an invoicing tool. One integer per line.\n{listing}", max_output_tokens=10 * len(new)).text.split()
rows = [{"id": p["id"], "title": p["title"], "url": "https://reddit.com" + p["permalink"], "score": int(s)} for p, s in zip(new, scores)]
sb("POST", "leads", json=rows)
good = [[r["score"], r["title"], r["url"]] for r in rows if r["score"] >= 6]
if good:
build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False).spreadsheets().values().append(spreadsheetId=SHEET_ID, range="Leads!A:C", valueInputOption="RAW", body={"values": good}).execute()
return {"new": len(rows), "listed": len(good)}FAQ
Common questions
Which posts are added to the sheet?
Can it search other sites?
Does it contact anyone?
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
List low-stock items from Supabase in a purchasing sheet
Each night, items in your Supabase inventory that are below their reorder level are written to your purchasing sheet, and you get an email to review and approve them.
See how it worksKeep a Supabase knowledge base in sync with your FAQ sheet
Each night, new or edited rows in your FAQ sheet are turned into search-ready entries in your Supabase documents table, so your bots always answer from the latest version.
See how it worksList at-risk clients from Supabase in a sheet every morning
Every morning, clients who haven't visited in 14 days are written to your At Risk sheet and you get an email summary.
See how it worksKeep exploring
Set up “Find people asking for tools like yours and list them in a sheet” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.