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
Automate learning with n8n and HackerNews

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

Learn how to Build this Workflow with AI:

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.


Automate learning with n8n and HackerNews

Visit through Desktop to Interact with the Workflow.

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