Every 5 minutes
Post new posts from a subreddit to Slack
Every 5 minutes, new posts in the subreddits you choose are posted to a Slack channel with title, author, flair and link.
- Runs
- Every 5 minutes
- Apps
- Reddit, Slack
- AI
- Not needed
- Access
- read; chat:write
Send this to your assistant
Create a ClickRuntime automation: every 5 minutes, post new posts from r/selfhosted and r/homelab to #reddit with the subreddit, title, flair, author and link; skip posts with fewer than 1 upvote after 10 minutes.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
People ask for a "Reddit Slack integration" because the conversations about their product, industry or open source project happen in a few subreddits, and nobody on the team is refreshing them. Slack has no Reddit app of its own.
This automation reads the newest posts in the subreddits you list every 5 minutes, through a Reddit app you create, and posts each new one to a Slack channel with the title, flair, author, comment count and link. Keyword filters keep a busy subreddit down to the posts that matter.
Developer relations teams follow subreddits about their stack, support teams watch their product's own subreddit, and founders keep an eye on niche communities where their customers talk.
What you get out of it
Several subreddits, one channel
List as many subreddits as you like; each message says which one it came from.
Keyword filter
Only posts mentioning your terms are sent if you set keywords.
No repeats
Posts already sent are remembered, so edits and re-sorts do not cause duplicates.
NSFW and removed posts skipped
Posts flagged NSFW or removed by moderators do not reach the channel.
Your own Reddit app
Requests use your Reddit app's token, which keeps within Reddit's rules for API access.
How it works
What happens, step by step
Every 5 minutes the automation reads the newest posts in each subreddit you listed.
It skips posts it has already sent and any that are marked NSFW or removed.
Optional keyword and flair filters narrow the feed to what your team cares about.
Each new post goes to Slack with the subreddit, title, flair, author and a link.
Before it runs live
- Connect Reddit
- Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)
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 Google Sheets
- Combine it with other Reddit and Slack steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_trigger, credentials, http, state, notify
SUBREDDITS = ["selfhosted", "homelab"]
KEYWORDS = [] # e.g. ["backup", "sync"]; empty means every post
CHANNEL = "#reddit"
UA = "clickruntime-automation/1.0"
def reddit(path, **params):
resp = http.get(f"https://oauth.reddit.com{path}", params=params, headers={
"Authorization": f"Bearer {credentials.connection('reddit', 'work')}", "User-Agent": UA})
resp.raise_for_status()
return resp.json()
@on_trigger
def run(event):
seen = state.get("seen")
first = seen is None
seen = set(seen or [])
posted = 0
for sub in SUBREDDITS:
for child in reversed(reddit(f"/r/{sub}/new", limit=25)["data"]["children"]):
p = child["data"]
if p["name"] in seen:
continue
seen.add(p["name"])
if first or p.get("over_18") or p.get("removed_by_category"):
continue
text = f"{p['title']} {p.get('selftext', '')}".lower()
if KEYWORDS and not any(k.lower() in text for k in KEYWORDS):
continue
flair = f"[{p['link_flair_text']}] " if p.get("link_flair_text") else ""
notify.slack(f"r/{sub} · {flair}*{p['title']}*\nby u/{p['author']} · {p['num_comments']} comments\nhttps://reddit.com{p['permalink']}", channel=CHANNEL)
posted += 1
state.set("seen", list(seen)[-2000:])
return {"posted": posted, "baseline": first}FAQ
Common questions
What do I need on the Reddit side?
Our subreddit is busy. Will Slack get flooded?
Why does Reddit's own RSS not work for this?
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 Slack alerts for replies to your Reddit posts
Comment replies to your Reddit posts and comments, and username mentions, are posted to Slack every 5 minutes with the text and a link to answer.
See how it worksGet Reddit brand mentions in Slack with reply drafts
Reddit posts mentioning your brand appear in Slack within half an hour, with their sentiment and a suggested reply.
See how it worksPost to Reddit after your team approves in Slack
New articles get a Reddit post draft in Slack, and the ones your team approves with a reaction are posted to your chosen subreddit.
See how it worksKeep exploring
Set up “Post new posts from a subreddit to Slack” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.