Quick overview
This workflow runs every morning, reads recent posts from selected subreddits via Reddit RSS feeds, uses OpenAI (via LangChain) to shortlist threads and draft helpful replies, and sends the drafts (or a “nothing worth answering” notice) to a Slack channel.
How it works
- Runs every morning at 9am on a schedule.
- Builds Reddit /new/.rss feed URLs for the configured list of subreddits and fetches posts from each RSS feed.
- Filters the feed items to only include posts published within the configured lookback window and trims each post down to a clean, short text payload.
- Bundles the recent posts into a single JSON input and asks an OpenAI chat model to select up to the configured maximum number of threads and draft non-promotional replies.
- If the model returns any selected threads, formats and posts one Slack message per thread with the title, link, rationale, and drafted reply.
- If the model returns no threads, posts a Slack message reporting that nothing worth answering was found.
Setup
- Add an OpenAI (or compatible) credential to the OpenAI chat model node used by the workflow.
- Add a Slack credential and select the target Slack channel for both Slack posting steps.
- Update the subreddit list, lookbackHours, and maxThreads values in the configuration step to match your monitoring needs, better to check and align the flow before use.