Skip to main content
Community template Uses AIMarket ResearchAI Summarization

Extract & transform HackerNews data to Google Docs using Gemini 2.0 flash - n8n workflow template

This workflow automates the process of scraping the latest discussions from HackerNews, transforming raw threads into human readable content using Google Gemini, and exporting the final content into a well-formatted Google Doc. This n8n workflow is responsible for extracting…

Template by Ranjan Dailata · Original listing (opens in a new tab)

Starts on
App event
Nodes
10 nodes
Level
Intermediate
Setup
About 16 min

Workflow preview

How this workflow runs

  1. 1

    When clicking ‘Execute workflow’

    Starts the workflow manually when you click 'Execute workflow' — used for testing and manual runs.

  2. 2

    Google Gemini Chat Model

    Provides Google Gemini as the chat model for the AI steps.

  3. 3

    Set the Input Fields

    Sets or transforms workflow data — prepares, renames, or injects fields before the next step.

  4. 4

    Hacker News

    Handles the Hacker News step in this workflow.

  5. 5

    Loop Over Items

    Loops over items in batches, processing each one in turn (used for iteration).

  6. 6

    Set the url, author

    Sets or transforms workflow data — prepares, renames, or injects fields before the next step.

  7. 7

    Create an HTTP Request

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

  8. 8

    Extract Human Readable Data

    A basic LLM chain that sends a prompt to the model and returns the formatted result.

  9. 9

    Create a Google Doc

    Reads from or writes to a Google Docs document.

  10. 10

    Update Google Docs

    Reads from or writes to a Google Docs document.

Creator's notes and setup

Written by Ranjan Dailata for the original listing.

Description

This workflow automates the process of scraping the latest discussions from HackerNews, transforming raw threads into human readable content using Google Gemini, and exporting the final content into a well-formatted Google Doc.

Overview

This n8n workflow is responsible for extracting trending posts from the HackerNews API. It loops through each item, performs HTTP data extraction, utilizes Google Gemini to generate human-readable insights, and then exports the enriched content into Google Docs for distribution, archiving, or content creation.

Who this workflow is for

  • Tech Newsletter Writers: Automate the collection and summarization of trending HackerNews posts for inclusion in weekly or daily newsletters.

  • Content Creators & Bloggers: Quickly generate structured summaries and insights from HackerNews threads to use as inspiration or supporting content for blog posts, videos, or social media.

  • Startup Founders & Product Builders: Monitor HackerNews for discussions relevant to your niche or competitors, and keep a pulse on the community’s opinions.

  • Investors & Analysts: Surface early signals from the tech ecosystem by identifying what’s trending and how the community is reacting.

  • Researchers & Students: Analyze popular discussions and emerging trends in technology, programming, and startups—enriched with AI-generated insights.

  • Digital Agencies & Consultants: Offer HackerNews monitoring and insight reports as a value-added service to clients interested in the tech space.

Tools Used

  • n8n: The core automation engine that manages the trigger, transformation, and export.

  • HackerNews API: Provides access to trending or new HN posts.

  • Google Gemini: Enriches HackerNews content with structured insights and human-like summaries.

  • Google Docs: Automatically creates and updates a document with the enriched content, ready for sharing or publishing.

How to Install

  • Import the Workflow: Download the .json file and import it into your n8n instance.

  • Set Up HackerNews Source: Choose whether to use the HN API (via HTTP Request node) or RSS Feed node.

  • Configure Gemini API: Add your Google Gemini API key and design the prompt to extract pros/cons, key themes, or insights.

  • Set Up Google Docs Integration: Connect your Google account and configure the Google Docs node to create/update a document.

  • Test and Deploy: Run a test job to ensure data flows correctly and outputs are formatted as expected.

Use Cases

  • Tech Newsletter Authors: Generate ready-to-use summaries of trending HackerNews threads.

  • Startup Founders: Stay informed on key discussions, product launches, and community feedback.

  • Investors & Analysts: Spot early trends, technical insights, and startup momentum directly from HN.

  • Researchers: Track community reactions to new technologies or frameworks.

  • Content Creators: Use the enriched data to spark blog posts, YouTube scripts, or LinkedIn updates.

n8n nodes used (8 types)

What every node does (10)
  • When clicking ‘Execute workflow’ (Manual Trigger)Starts the workflow manually when you click 'Execute workflow' — used for testing and manual runs.
  • Hacker News (Hacker News)Handles the Hacker News step in this workflow.
  • Loop Over Items (Split In Batches)Loops over items in batches, processing each one in turn (used for iteration).
  • Google Gemini Chat Model (LLM Chat Google Gemini)Provides Google Gemini as the chat model for the AI steps.
  • Create a Google Doc (Google Docs)Reads from or writes to a Google Docs document.
  • Update Google Docs (Google Docs)Reads from or writes to a Google Docs document.
  • Set the Input Fields (Set)Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
  • Extract Human Readable Data (Chain Llm)A basic LLM chain that sends a prompt to the model and returns the formatted result.
  • Set the url, author (Set)Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
  • Create an HTTP Request (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

FAQ

Extract & transform HackerNews data to Google Docs using Gemini 2.0 flash: questions

How do I import the "Extract & transform HackerNews data to Google Docs using Gemini 2.0 flash" workflow into n8n?

Copy the workflow JSON from this page, open the n8n editor, click on an empty canvas and paste with Ctrl+V (Cmd+V on macOS). You can also download the .json file and choose Import from File in the workflow menu. Save the workflow, then attach credentials before activating it.

Which nodes and credentials does "Extract & transform HackerNews data to Google Docs using Gemini 2.0 flash" use?

It uses HTTP Request, Set, Split In Batches, Hacker News, Google Docs and Manual Trigger, plus 2 more. Any node that connects to an external service needs your own credential — open each node after import and select or create one. Trigger, logic and transformation nodes usually need no credentials.

Can it run on n8n Cloud and on self-hosted n8n?

The workflow format is the same on both. If a node appears as unknown or outdated after import, update n8n to a recent version or, on self-hosted instances, install the required community node package. Features such as $env access are available on self-hosted instances only.

How can I customise "Extract & transform HackerNews data to Google Docs using Gemini 2.0 flash"?

Start by changing the trigger (schedule, webhook or app event) and the destination nodes to match your stack — it is listed under Market Research, AI Summarization. Edit prompts, field mappings and filters in the relevant nodes, use expressions like {{ $json.field }} to map data, and test with a manual execution before activating.

n8n is a trademark of n8n GmbH. AltFTool is not affiliated with, endorsed by or sponsored by n8n. Community templates are credited to their creators and link to the original listing; AltFTool originals are written and tested by the AltFTool team.

About this page

Free n8n workflow templates to copy and import

The AltFTool n8n library collects free n8n workflow templates for AI agents, Gmail, Google Sheets, Telegram and other apps. Each workflow page shows a preview, the list of nodes and the credentials it needs, and lets you copy or download the JSON to import into your own n8n.

Search the templates by app or task, or browse them by category and by node. The Workflow Inspector checks any workflow JSON for triggers, credentials and hardcoded keys before you share it, and the expressions cheat sheet gives copy-paste n8n expression examples. AltFTool is not affiliated with n8n.

People also search for

  • n8n workflow templates
  • n8n templates
  • n8n automation examples
  • n8n json workflows
  • n8n nodes
  • free n8n workflow templates
  • n8n ai agent template
  • n8n expressions cheat sheet