πŸ“Š Send keyword-based Hacker News digests using Algolia and SMTP email

⚑ 0 views Β· πŸ“Š Market Research & Insights

Description

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 duplicates.

How it works

  1. Runs on a daily schedule (or manually for testing) to start the digest process.
  2. Splits and validates your keyword list and builds one Hacker News search query per keyword for the configured lookback window.
  3. Calls the Hacker News Algolia search API for each keyword to fetch recent story results.
  4. Merges results across keywords, filters out stories below the minimum points threshold and any story IDs that were already emailed, and formats a plain-text digest.
  5. Sends the digest email via SMTP only when there are new matching stories.
  6. Saves the sent story IDs into n8n workflow static data so future runs skip duplicates.

Setup

  1. Configure an SMTP Email credential in n8n and select it in the email-sending step.
  2. Update the Config values for keywords, lookbackHours, minPoints, maxPerKeyword, alertTo, and fromEmail.
  3. Activate the workflow so n8n persists the static β€œseen” list across executions. Manual test runs do not save static data, so they may show the same stories again; this is expected.

Requirements

Customization

πŸ”— Nodes Used

Send Email, HTTP Request, Schedule Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup