Get a Slack Alert Whenever Your Keyword Trends on Hacker News
This watches Hacker News for the terms you care about and pushes a clean Slack alert the moment a match appears — so you join the conversation while it's still hot.
- 1
Step 1 — Poll the source
Add a
Hacker Newssearch node (or scheduledHTTP Request) that runs every 15–60 minutes and returns the newest items for your keyword. - 2
Step 2 — Filter to real matches
Add an
Ifnode so only items whose title or body contains your keyword continue. Keep a list of seen IDs (in aSetor a data store) to avoid re-alerting on the same post. - 3
Step 3 — Announce in Slack
Add a
Slacknode. SetResourcetoMessageandOperationtoSend. Choose the channel (e.g.#alerts) and drop the title, a snippet and the link into the message text using expressions like{{ $json.summary }}. Connect your Slack OAuth or bot-token credential.
Frequently asked questions
How do I avoid duplicate alerts?
Track the last-seen item ID. n8n's `Remove Duplicates` node or a tiny Google Sheet of seen IDs both work; compare before Step 3.
Can I watch several keywords?
Yes — run multiple searches in Step 1 or use an OR query, then let the same filter and Slack step handle them all.