Skip to content

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.

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

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

  1. Every 5 minutes the automation reads the newest posts in each subreddit you listed.

  2. It skips posts it has already sent and any that are marked NSFW or removed.

  3. Optional keyword and flair filters narrow the feed to what your team cares about.

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

RunsEvery 5 minutes
Post new posts from a subreddit to Slacktoday, 9:00Succeeded
#reddit · Slackr/selfhosted · [Release] Acme Sync 2.4 adds S3 backends by u/devnorthwind · 14 comments https://reddit.com/r/selfhosted/comments/…

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

  • 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

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.
post_new_posts_from_a_subreddit_to_slack.pyexample
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?
A Reddit app of type "script" or "web app" created at reddit.com/prefs/apps, connected to ClickRuntime. Reading public subreddits only needs the read scope.
Our subreddit is busy. Will Slack get flooded?
Add keywords so only matching posts are sent, or ask for a filter on flair, for example only "Release" or "Question" posts.
Why does Reddit's own RSS not work for this?
RSS readers in Slack post every item with no filters and often fall behind. This reads Reddit's API with your own app, applies your filters and keeps track of what was already sent.
What permissions does it need?
read; chat:write. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it checks. Checks that find nothing new 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 “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.