Find reply-worthy Hacker News and Stack Overflow threads with GPT and Discord
Ready for 3.0What this workflow does
This AI workflow has 22 nodes and runs on a schedule (every day at 08:00) (plus 1 other trigger). Along the way it connects OpenAI Chat Model and Discord.
How it runs
Trigger: On a schedule (every day at 08:00) (plus 1 other trigger).
- Settings (Edit Fields (Set)): sets 9 fields: keywords, product_name, what_it_does…
- Build The Searches (Code): runs custom JavaScript code
- Ask Hacker News (HTTP Request): calls an HTTP API
- Ask Stack Exchange (HTTP Request): calls an HTTP API
- Both Sources (Merge): merges the data from its input branches
- Read The Threads (Code): runs custom JavaScript code
- Read What You Have Seen (Data table): get
- Only The New Threads (Code): runs custom JavaScript code
- Anything Worth Reading? (If): checks a condition and branches into true / false
- Would A Reply Help? (Basic LLM Chain): sends a prompt to an LLM, with model: Model
…plus 8 more steps. See the full node list below.
Services it uses
Other OpenAI + Discord templates (89)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (12)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Data table
n8n-nodes-base.dataTable - If
n8n-nodes-base.if - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Discord
n8n-nodes-base.discord - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview Searches Hacker News and Stack Overflow for recent threads matching your keywords, then asks a model twice: whether a reply would genuinely help, and what to write. Drafts land in Discord for you to read. Nothing is ever posted. How it works 1.…