Automate Learning Resource Recommendations using n8n and HackerNews

Struggling to find quality learning resources? This n8n workflow taps HackerNews Ask HN comments and Google’s Gemini AI to deliver curated learning material directly to your inbox, saving hours of manual research.
lmChatGoogleGemini
chainLlm
hackerNews
+7
Workflow Identifier: 1878
NODES in Use: lmChatGoogleGemini, chainLlm, hackerNews, httpRequest, aggregate, splitOut, formTrigger, emailSend, markdown, noOp

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

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Workflow Does ⚙️

This workflow finds and summarizes the best learning resources from HackerNews comments about a topic you want to learn.
It solves the problem of spending too many hours reading mixed, messy comments.
You get a clear list of top courses, books, articles, and videos sent to your email automatically.

The inputs are your learning topic and email from a form.
It processes HackerNews Ask HN posts plus their comments and analyzes them using Google Gemini AI.
The output is a personalized email with well-organized recommended resources.


Inputs, Processing Steps, and Output

Inputs

  • Learning topic: Entered by user in the online form.
  • Email address: Entered by user in the online form.

Processing Steps

  • Search HackerNews Ask HN posts: Using topic keyword and “ask_hn” tag filter.
  • Fetch comments: Break down post children IDs and fetch each comment via HackerNews API.
  • Aggregate comment text: Combine all comment texts into one large input.
  • Analyze with AI: Use a Basic LLM Chain with Google Gemini Chat model to extract, categorize, and evaluate learning resources.
  • Format output: Convert AI markdown recommendation into HTML.
  • Send email: Email the HTML results to the user’s provided email address via SMTP.

Output

A clear, neat email with top learning resources across categories, difficulty levels, and sentiment notes.


Who Should Use This Workflow

This is good for learners who waste time filtering noisy HackerNews comments.
Also, people who want personalized, quick recommendations for topics like Python, AI, or DevOps.

Users with some access to n8n and API keys can set this up and avoid manual searching.


Tools and Services Used

  • n8n workflow editor: To build and run the automation.
  • HackerNews API node: To search Ask HN posts and get comments.
  • HTTP Request node: To fetch each comment detail.
  • Google Gemini (PaLM) API: To analyze and extract learning resources.
  • SMTP email provider: To send recommendation emails.
  • Optional self-host n8n: For privacy and control, see self-host n8n.

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

Step 1: Download and Import the Workflow

  1. Find the Download button on this page and download the workflow file.
  2. Inside your n8n editor, click “Import from File” and upload the downloaded workflow.

Step 2: Add Credentials and Update Settings

  1. Add your Google Gemini (PaLM) API credentials in the Google Gemini Chat Model node settings.
  2. Add SMTP credentials for your email provider in the Email Send node.
  3. Check the HackerNews node to make sure the topic keyword expression matches the form field, for example:
    = $json["I want to learn"]
    
  4. If needed, update any recipient email fields or IDs.

Step 3: Test the Workflow

  1. Open the form URL set in the Form Trigger node (path: /learn).
  2. Submit a test topic and email.
  3. Watch the workflow run in the n8n editor to confirm no errors occur.

Step 4: Activate for Production

  1. Once tested, switch the workflow from draft to active status.
  2. The workflow now runs whenever the form is submitted.

Follow these steps, and the automation will send curated HackerNews learning resources to your email.


Customization Ideas ✏️

  • Add multiple topics with comma-separated inputs in the form and modify the search node to handle them.
  • Include YouTube Search node to fetch video tutorials related to the topic.
  • Change email formatting by customizing the Markdown or adding an HTML Template node.
  • Use an external sentiment analysis API or node to improve quality filtering.
  • Set up a Cron Trigger node to run daily summary emails on preset topics.

Handling Edge Cases and Troubleshooting 🔧

Google Gemini API authentication fails: Check that API keys are correct and billing is enabled.

No comments found from HackerNews search: Verify “ask_hn” tag and that keyword matches user input.

Email sending errors: Confirm SMTP credentials and send a test email from the Email Send node.

Workflow does not trigger on form submission: Confirm form path and that required fields (especially email) are set.


Pre-Production Checklist ✅

  • Test form submission with valid inputs.
  • Confirm HackerNews node returns relevant Ask HN posts.
  • Check if HTTP Request node fetches comments with text.
  • Verify AI node outputs structured markdown.
  • Send a test email to confirm SMTP setup.
  • Backup workflow file before making big changes.

Deployment Guide

Activate the workflow in n8n to start receiving submissions.
Make sure the form URL is accessible to users.

Monitor email logs inside the Email Send node for failures.
Consider scheduling regular tests if switching to automatic runs.

If privacy or custom control are required, consider self-host n8n on your server.


Summary

✓ Saves hours wasted on filtering unorganized HackerNews comments.
✓ Sends personalized, clear learning resources by email.
✓ Uses simple form input to trigger full data search and AI analysis.
✓ Supports many topics dynamically.
✓ Works well inside n8n with accessible nodes and easy customization.

→ Converts community knowledge into neat learning guides fast.
→ Lowers risk of missing high-quality resources.
→ Provides step-by-step beginner-friendly setup and running instructions.


Frequently Asked Questions

Yes, replace the Google Gemini Chat Model node with OpenAI completion node and adjust prompts.
No, sending email via SMTP does not consume AI API credits.
Check the keyword matches the form input and “ask_hn” tag is correctly set in the HackerNews node.
Verify SMTP credentials and test sending email within the Email Send node settings.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation in n8n

A complete beginner guide to building an AI-powered SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free