🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

Hacker News to Gmail, curated learning links

Lisa Granqvist Partner Workflow Automation Expert

You open one “Ask HN: How do I learn X?” thread and suddenly you have 40 tabs, 12 “save for later” bookmarks, and zero confidence you picked the right resources.

This HN Gmail curation automation hits marketers trying to skill up fast, but founders and consultants feel it too. You want community-vetted links in one place, not another evening lost to scrolling comments.

This workflow turns Ask HN discussions into a clean, categorized resource email. You will see what it does, what you need, and where people usually get stuck.

How This Automation Works

The full n8n workflow, from trigger to final output:

n8n Workflow Template: Hacker News to Gmail, curated learning links

The Problem: “Learning research” turns into tab chaos

Ask HN threads are gold, but they’re messy on purpose. Great links are buried between jokes, side debates, and “this changed my life” comments that never say what the resource actually is. If you’re learning a new skill for a campaign, a client project, or hiring decisions, you don’t just need inspiration. You need a short list you can trust. Manually, that means opening profiles, skimming dozens of top-level comments, copying URLs, then trying to group them into something usable. It’s not hard. It’s draining.

And yes, the friction compounds.

  • You spend about an hour per topic just extracting links and titles from comments.
  • Good resources get missed because they’re not the first comment, or they’re phrased vaguely.
  • Your “list” ends up unshareable, because it’s a mix of raw URLs and half notes.
  • Next week, you repeat the whole process because nothing is saved in a consistent format.

The Solution: Ask HN threads curated into a resource email

This n8n workflow starts with a simple “what do you want to learn?” submission. Once you enter a topic, it searches Hacker News for relevant “Ask HN” posts, then pulls the top-level comments where the real recommendations live. Those comment snippets are combined into a single body of text and passed to an AI model (Google Gemini in this build) that extracts the best learning resources. Instead of dumping a wall of links, the AI organizes them into a Markdown list by resource type (books, courses, articles, tools) and by difficulty level. Finally, the workflow converts that Markdown into clean HTML and emails it to you through SMTP, so it lands in your inbox like a mini curated newsletter.

The workflow begins when you submit a learning topic in the form trigger. It then queries Ask HN posts, fetches the comment text, and sends the combined content into the LLM chain for sorting and summarizing. The finished, categorized recommendations are rendered and delivered by email. No extra copy-paste.

What You Get: Automation vs. Results

Example: What This Looks Like

Say you want to learn “technical SEO” and you usually skim 3 Ask HN threads. If you spend roughly 20 minutes per thread opening links, skimming comments, and copying the best stuff, that’s about an hour per topic, sometimes more. With this workflow, you submit the topic in the form (about 1 minute), wait a few minutes for comment fetching and AI analysis, and the final categorized email shows up ready to use. Call it 5 minutes of waiting instead of an hour of work. Honestly, it’s the difference between “I’ll research later” and “I’ll start today.”

What You’ll Need

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Google Gemini API for analyzing and categorizing recommendations.
  • SMTP email account to send the resource email.
  • Gemini API key (from Google Cloud Console after enabling Generative Language API).

Skill level: Beginner. You’ll connect credentials, edit a couple of fields, and run a test submission.

Don’t want to set this up yourself? Talk to an automation expert (free 15-minute consultation).

How It Works

You submit a learning topic. The workflow is triggered by a simple form (the “Collect Learning Topic” node), so the only input is what you want to learn.

Hacker News threads are found and expanded. n8n queries Ask HN posts related to your topic, then splits out the relevant comment IDs so it can fetch recommendations at the source.

Comments are retrieved and turned into clean input for AI. An HTTP request pulls the comment text, then an aggregation step compiles it into a single chunk. Less noise, more signal.

The AI curates and your email is sent. The LLM chain (Gemini dialogue plus the core prompt) identifies the best resources, formats them as Markdown, converts that Markdown to HTML, and dispatches the email through SMTP.

You can easily modify the search query and the email template based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Form Trigger

Set up the form that collects the learning topic and email address so the workflow can begin.

  1. Add the Collect Learning Topic node as your trigger.
  2. Set Form Title to What do You want to learn ?.
  3. Set Form Description to We'll find the best resources from HackerNews and send you an email.
  4. Under Form Fields, add I want to learn with placeholder Python, DevOps, Ai, or just about anything.
  5. Add an email field labeled What's your email ? with placeholder [YOUR_EMAIL] and mark it required.
  6. In Options, set Path to learn, Button Label to Submit, and the submitted text to We'll shortly send you an email with top recommendations..

Step 2: Connect HackerNews Data Retrieval

Pull relevant Ask HN posts and expand them into comment IDs for retrieval.

  1. Add Query AskHN Posts and connect it to Collect Learning Topic.
  2. Set Resource to all and Limit to 150.
  3. In Additional Fields, set Tags to ask_hn and Keyword to {{ $json["I want to learn"] }}.
  4. Add Expand Child IDs and set Field to Split Out to children.
  5. Connect Query AskHN PostsExpand Child IDs to match the execution flow.

Step 3: Retrieve and Aggregate Comment Text

Fetch each comment and aggregate text into a single payload for the LLM.

  1. Add Retrieve HN Comments and connect it to Expand Child IDs.
  2. Set URL to https://hacker-news.firebaseio.com/v0/item/{{ $json.children }}.json?print=pretty.
  3. Add Aggregate Comment Text and connect it to Retrieve HN Comments.
  4. In Aggregate Comment Text, set Fields to AggregateField to Aggregate to text.

Step 4: Set Up the LLM Analysis and Markdown Rendering

Analyze comments with Gemini and format the response as HTML for email delivery.

  1. Add Gemini Dialogue Engine and set Model Name to models/gemini-1.5-flash.
  2. Credential Required: Connect your googlePalmApi credentials in Gemini Dialogue Engine.
  3. Add Core LLM Workflow and connect Aggregate Comment TextCore LLM Workflow.
  4. In Core LLM Workflow, set Prompt to the provided template and ensure it includes expressions like {{ $('Collect Learning Topic').item.json["I want to learn"] }} and {{ $json.text }}.
  5. Connect Gemini Dialogue Engine to Core LLM Workflow as the language model (credentials are added on Gemini Dialogue Engine).
  6. Add Render Markdown HTML and connect Core LLM WorkflowRender Markdown HTML.
  7. Set Mode to markdownToHtml and Markdown to {{ $json.text }}.

Step 5: Configure Email Delivery

Send the formatted digest to the email address submitted in the form.

  1. Add Dispatch Resource Email and connect Render Markdown HTMLDispatch Resource Email.
  2. Credential Required: Connect your smtp credentials in Dispatch Resource Email.
  3. Set From Email to [YOUR_EMAIL].
  4. Set To Email to {{ $('Collect Learning Topic').item.json["What's your email ?"] }}.
  5. Set Subject to Here are Top HN Recommendations for Learning {{ $('Collect Learning Topic').item.json["I want to learn"] }}.
  6. Set HTML to FYI, We read through {{ $('Expand Child IDs').all().length }} comments in search for the best. {{ $json.data }}.
  7. Connect Dispatch Resource EmailCompletion Marker to finalize execution.
⚠️ Common Pitfall: If the email arrives empty, verify Render Markdown HTML is receiving the LLM output and that {{ $json.data }} exists in Dispatch Resource Email.

Step 6: Test and Activate Your Workflow

Validate that the form trigger, data collection, LLM summary, and email delivery work end-to-end.

  1. Click Test workflow and submit the form in Collect Learning Topic with a sample topic and email.
  2. Confirm Query AskHN Posts returns Ask HN posts matching your keyword and that Expand Child IDs outputs comment IDs.
  3. Verify Aggregate Comment Text produces a combined text field and Core LLM Workflow returns Markdown.
  4. Check that Dispatch Resource Email sends an email with HTML content and the correct subject.
  5. Once successful, switch the workflow to Active to run it in production.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Common Gotchas

  • Google Gemini credentials can expire or need specific permissions. If things break, check your Google Cloud project API status and key restrictions first.
  • If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
  • SMTP providers sometimes block automated sending. If emails aren’t arriving, check your SMTP logs, “less secure app” settings (if applicable), and spam/quarantine folders.

Frequently Asked Questions

How long does it take to set up this HN Gmail curation automation?

About 30 minutes if you already have your API key and SMTP details.

Do I need coding skills to automate HN Gmail curation?

No. You’ll mostly paste credentials and tweak a couple of text fields. The workflow logic is already built; you’re just configuring it.

Is n8n free to use for this HN Gmail curation workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in Google Gemini API usage, which is usually low for a single curated email.

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

Can I customize this HN Gmail curation workflow for multiple recipients?

Yes, but you’ll want to adjust the form trigger to capture the recipient email, then map that field into “Dispatch Resource Email.” Common tweaks include changing the categories the AI outputs (books vs courses vs videos), limiting results to beginner-only, and rewriting the prompt in the “Core LLM Workflow” chain to match your brand voice.

Why is my Google Gemini connection failing in this workflow?

Usually it’s an API key issue: the Generative Language API isn’t enabled for the project, the key is restricted, or the key was rotated and n8n still has the old value. It can also be simple quota limits if you test repeatedly in a short burst. Check the Gemini node error details in n8n first, then confirm the key and project settings in Google Cloud.

How many topics can this HN Gmail curation automation handle?

A lot. On n8n Cloud, your practical limit is your monthly executions and how many threads/comments you fetch per run; if you self-host, it mostly comes down to server resources and API quotas. For most small teams, running a few topics per day is comfortably within limits. If you start doing this at scale, add caching and cap the number of posts pulled per query.

Is this HN Gmail curation automation better than using Zapier or Make?

Often, yes. This workflow needs multi-step data gathering (HN search, comment retrieval, aggregation) plus AI formatting and Markdown rendering, and n8n handles that kind of branching without turning into a fragile pile of zaps. You can also self-host, which matters if you run lots of topic requests or want tighter control of credentials. Zapier and Make can work, but you’ll usually pay more once you add the AI steps and multiple actions. Frankly, the biggest difference is maintainability: n8n keeps the logic in one place. If you’re unsure, Talk to an automation expert and we’ll point you to the simplest option for your setup.

This is the kind of automation you set up once, then rely on whenever a new skill becomes urgent. Let the workflow collect the links. You focus on learning.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal