Skip to content

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.

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

  1. Every hour, ClickRuntime searches Reddit for posts matching your keywords.

  2. It skips posts already in your Supabase leads table.

  3. AI scores each new post from 1 to 10 for how likely the author is to need your product.

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

RunsHourly
Find people asking for tools like yours and list them in a sheettoday, 9:00Succeeded
Google Sheets · Leads8 · Looking for a simple invoicing tool for my 3-person agency · reddit.com/r/smallbusiness/…

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

  • 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

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.
lead_finder_that_stores_leads_in_supabase_and_sheets.pyexample
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?
New posts scoring 6 or more out of 10. Every post is saved in Supabase whatever its score.
Can it search other sites?
Yes, any site with a public search or feed can be added alongside Reddit.
Does it contact anyone?
No. It only finds and lists posts. Your team decides who to reply to.
What permissions does it need?
Supabase read+write; sheet edit. 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 runs (hourly). Checks that find nothing to do 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 “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.