Send keyword-based Hacker News Slack alerts with Groq and Google Sheets
Ready for 3.0What this workflow does
This workflow has 10 nodes and runs on a schedule (every 2 hours). Along the way it connects Google Sheets. It also calls api.groq.com over HTTP.
How it runs
Trigger: On a schedule (every 2 hours).
- Set Configuration Values (Edit Fields (Set)): sets 3 fields: keywords, slack_webhook_url, google_sheet_id
- Build HN Search Queries (Code): runs custom JavaScript code
- Read Seen URLs from Sheets (Google Sheets): read
- Fetch HN API Results (HTTP Request): calls an HTTP API (GET)
- Filter Unseen HN Posts (Code): runs custom JavaScript code
- Flatten HN API Hits (Code): runs custom JavaScript code
- Post to Groq API (HTTP Request): calls api.groq.com (POST)
- Send Alert via Slack (HTTP Request): calls an HTTP API (POST)
- Append Seen Post in Sheets (Google Sheets): append or update
Services it uses
HTTP calls to: api.groq.com
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.
Nodes used (5)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow polls Hacker News search results every two hours for a list of keywords, filters out posts already logged in Google Sheets, generates a one-sentence explanation with Groq, and sends a Slack webhook alert for each new match. How it…