Hourly
Get emailed when someone on Reddit needs your product
When someone on Reddit asks for something your product solves, you get an email with the post and a suggested reply.
- Runs
- Hourly
- Apps
- Gmail, Reddit
- AI
- Yes, uses the built-in AI allowance
- Access
- Reddit read; Gmail gmail.send
Send this to your assistant
Create a ClickRuntime automation: every hour, search Reddit for people asking for invoicing software for freelancers. Email me any good matches with a short, helpful reply I could post.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A Reddit post asking "what's the best tool for this?" is a sales lead with a short shelf life. Within a day it has dozens of replies and the person has made their choice. Small companies rarely have someone checking Reddit every hour.
An email the moment a good match appears lets you reply while it counts. The suggested reply helps you answer the question honestly first, which is what gets noticed on Reddit.
What you get out of it
Catch buyers early
Hourly checks mean you can reply before the thread fills up and the person decides.
Only good matches
AI checks each post against your product description, so you are only emailed about real opportunities.
A reply ready to adapt
Each alert includes a helpful reply you can adjust, which saves time and avoids sounding like an advert.
No dashboard to check
Alerts arrive in your inbox, where you already are.
How it works
What happens, step by step
Every hour ClickRuntime searches Reddit for new posts using your search phrases.
It skips posts it has already checked.
AI decides whether each post is a good match for your product and drafts a helpful reply.
Good matches are emailed to you from your Gmail with the post link and suggested reply.
Before it runs live
- Connect Google through your own Google app (a one-time, 10-minute setup), so it works with your own Gmail
- Connect Reddit
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 Gmail and Reddit steps into one automation
Under the hood
The code that runs this automation
import base64
from email.message import EmailMessage
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, report_fetched, credentials, http, state, ai
QUERY, ME = 'invoicing software freelancer OR "invoice app" recommend', "me@example.com"
SCHEMA = {"type": "object", "required": ["match", "reply"], "properties": {"match": {"type": "boolean"}, "reply": {"type": "string"}}}
def reddit(path, **params):
headers = {"Authorization": "Bearer " + credentials.connection("reddit", "main"), "User-Agent": "clickruntime/1.0"}
return [c["data"] for c in http.get(f"https://oauth.reddit.com{path}", headers=headers, params=params).json()["data"]["children"]]
def send_email(subject, text):
msg = EmailMessage()
msg["To"], msg["Subject"] = ME, subject
msg.set_content(text)
gmail = build("gmail", "v1", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
gmail.users().messages().send(userId="me", body={"raw": base64.urlsafe_b64encode(msg.as_bytes()).decode()}).execute()
@on_trigger
def run(event):
seen = set(state.get("seen") or [])
posts = [p for p in reddit("/search", q=QUERY, sort="new", t="day", limit=25) if p["id"] not in seen]
report_fetched(len(posts))
if not posts:
return {"leads": 0}
leads = []
for p in posts:
r = ai.generate(f"{p['title']}\n{p['selftext'][:1500]}", json_schema=SCHEMA, max_output_tokens=250,
system="Our product: simple invoicing for freelancers. Is this person looking for it? Draft a helpful, honest reply.").json
if r["match"]:
leads.append(f"{p['title']}\nhttps://reddit.com{p['permalink']}\n\nSuggested reply:\n{r['reply']}")
if leads:
send_email(f"{len(leads)} Reddit lead(s)", "\n\n---\n\n".join(leads))
state.set("seen", (list(seen) + [p["id"] for p in posts])[-2000:])
return {"checked": len(posts), "leads": len(leads)}FAQ
Common questions
How many emails will I get?
Does it post the reply for me?
How do I improve the matches?
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
Email yourself business ideas found on Reddit
Each morning you get an email with the problems people described on Reddit that could be worth building a product for.
See how it worksGet daily social post drafts from Reddit trends
Each morning you get an email with today's trending Reddit topics in your niche and a ready-to-edit social post for each.
See how it worksGet a digest of the best Reddit discussions
A short summary of the best discussions in your favourite subreddits lands in your inbox each week.
See how it worksKeep exploring
Set up “Get emailed when someone on Reddit needs your product” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.