Automate Trending Show HN Alerts Using n8n Workflow

Stay updated with trending posts from Hacker News’ Show HN section effortlessly. This n8n workflow scrapes data every day, filters for Show HN posts, formats and sends concise email alerts — saving you hours of manual tracking.
cron
httpRequest
htmlExtract
+4
Workflow Identifier: 1519
NODES in Use: Cron, HTTP Request, HTML Extract Items, HTML Extract Data, IF, Function, Email Send
Automate Show HN alerts with n8n and Email

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does ⚙️

This workflow runs each day at 1 PM.

It fetches the Hacker News homepage HTML.

It finds posts with titles that contain “Show HN:” and are trending.

The workflow lists these posts with their ranks and URLs.

Then it sends this list as a clean email to people you choose.

This helps avoid spending time looking through all posts by hand.

You get only the most interesting Show HN posts every day without errors.


Workflow Inputs, Processing, and Outputs

Inputs

  • Cron trigger: Time set to 1 PM daily to start the workflow.
  • Hacker News frontpage HTML: HTTP Request grabs current homepage code.

Processing Steps

  • HTML Extract Items node: Selects each story row (using CSS selector tr.athing).
  • HTML Extract Data node: Pulls out rank, title, and URL from each post.
  • IF node: Filters posts so only titles with “Show HN:” proceed.
  • Function node: Formats a text email body with rank, title, URL for each Show HN post.

Output


Who Should Use This Workflow

This is for people who want to save time sending daily Show HN posts.

If you spend time copying titles and links from Hacker News manually, this fits.

Also, it helps if you want only relevant posts without email clutter.


Tools and Services Used

  • n8n Automation Platform: Runs the workflow with nodes.
  • Hacker News website: Public source for latest posts.
  • SMTP Email Service: Sends the daily email alert.

Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Import the Workflow

  1. Click the Download button on this page to save the workflow file locally.
  2. In the n8n editor, choose “Import from File.”
  3. Select the saved workflow file to load it inside n8n.

Step 2: Configure Credentials and Settings

  1. Add required email SMTP credentials in the Email Send node.
  2. Update email recipient addresses as needed inside the Email Send node.
  3. Check and confirm any URLs, IDs, or other parameters match your needs.

Step 3: Test the Workflow

  1. Manually trigger the workflow inside n8n to check it runs and emails data.
  2. Look at each node’s output for errors or missing data.
  3. Fix any configuration problems found in the test.

Step 4: Activate for Production

  1. Enable the Cron node to start daily scheduled runs.
  2. Monitor workflow runs by checking execution logs in n8n.
  3. Optionally, adjust schedule or email settings anytime.
  4. If using self-host n8n or running on a server, see self-host n8n for hosting help.

Common Customizations

  • Change schedule time: Modify Cron node for different daily alert hours.
  • Filter by other keywords: Add conditions in IF node for other titles besides “Show HN:”.
  • Send alerts to many recipients: Add multiple emails comma-separated in Email Send node.
  • HTML formatted emails: Edit the Function node to output HTML for rich email style.
  • Save post history: Add Google Sheets or Airtable nodes to log data.

Possible Problems and Fixes

  • No posts pass to IF node: Often wrong CSS selectors or missing HTML from HTTP Request; check selectors like tr.athing.
  • Email not sent: SMTP credentials missing or invalid; test email setup separately.
  • Email content wrong: Function node may have code errors or reference wrong fields; verify proper property names.

Pre-Production Checklist ✅

  • Manually trigger Cron node to check timing.
  • Confirm HTTP Request outputs full Hacker News page HTML.
  • Verify HTML Extract nodes extract correct post data.
  • Make sure IF node filters only “Show HN:” posts.
  • Send test email to confirm format and delivery.
  • Backup workflow and email settings.

Deployment Guide

Activate Cron node after testing.

Watch logs to catch errors at first runs.

Tweaks may be needed if Hacker News page layout changes.

This workflow works well on both n8n cloud and self-host n8n.


Summary

✓ Saves 20+ minutes daily by auto-finding Show HN posts.

✓ Avoids missing any trending Show HN stories on Hacker News.

✓ Sends clean, simple emails with title, rank, and link.

→ Workflow triggers each day at 1 PM automatically.

→ No manual copying or filtering needed once set up.

Automate Show HN alerts with n8n and Email

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Download the workflow file from this page. In the n8n editor, use ‘Import from File’ to upload it. Then add email SMTP credentials and update recipient emails as needed. Test once then activate the Cron node to start daily runs.
Usually the CSS selectors in HTML Extract nodes are wrong or HTTP Request did not get full HTML. Check selector ‘tr.athing’ and confirm HTTP Request returns complete page.
Yes. The workflow works on both n8n cloud and self-hosted environments. If hosting n8n on your server, see https://buldrr.com/hosting/ for setup help.
Modify the hour setting inside the Cron node to any preferred daily time. This controls when the workflow runs and sends the email.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.