Draft Reddit reply suggestions with OpenAI and send them to Slack

Go to Workflow
0 views
Built by Pavel Vainshtein Pavel Vainshtein
Created on July 28, 2026

Description

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.

Nodes Used (5)

Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
Code
n8n-nodes-base.code
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Slack
n8n-nodes-base.slack
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured