Send keyword-based Hacker News digests using Algolia and SMTP email
Ready for 3.0What this workflow does
This workflow has 9 nodes and runs on a schedule (every day at 08:00) (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls hn.algolia.com over HTTP.
How it runs
Trigger: On a schedule (every day at 08:00) (plus 1 other trigger).
- Config (Edit Fields (Set)): sets 6 fields: keywords, lookbackHours, minPoints…
- Build Queries (Code): runs custom JavaScript code
- Search HN (HTTP Request): calls hn.algolia.com
- Pick New Stories (Code): runs custom JavaScript code
- Any New Stories? (If): checks a condition and branches into true / false
- Send Digest (Send Email): sends an email over SMTP
- Save Seen (Code): runs custom JavaScript code
HTTP calls to: hn.algolia.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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- 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 - If
n8n-nodes-base.if - Send Email
n8n-nodes-base.emailSend
From the author
Quick overview This workflow runs daily to search Hacker News via the Algolia API for a list of keywords, builds a plain-text digest of new high-scoring stories, and emails it via SMTP while tracking already-sent story IDs in workflow static data to avoid…