Skip to main content

Workflow function to summarize Reddit posts using Google Gemini and Supabase

Workflow preview

Workflow preview
100%
Workflow function to summarize Reddit posts using Google Gemini and Supabase preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Reddit Post Saver & Summarizer with AI Powered Filtering Who This Is For Perfect for content curators, researchers, developers, and community managers who want to build a structured database of val...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.wait, n8n-nodes-base.stickynote, n8n-nodes-base.manualtrigger, n8n-nodes-base.scheduletrigger, n8n-nodes-base.supabase

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Fei Wu.

Original n8n.io source

1.1 Workflow description

Title
Workflow function to summarize Reddit posts using Google Gemini and Supabase
Workflow name
Workflow function to summarize Reddit posts using Google Gemini and Supabase

Reddit Post Saver & Summarizer with AI-Powered Filtering

Who This Is For

Perfect for content curators, researchers, developers, and community managers who want to build a structured database of valuable Reddit content without manual data entry. If you're tracking industry trends, gathering user feedback, or building a knowledge base from Reddit discussions, this workflow automates the entire process.

The Problem It Solves

Reddit has incredible discussions, but manually copying posts, extracting insights, and organizing them into a database is time-consuming. This workflow automatically transforms your saved Reddit posts into structured, searchable data—complete with AI-generated summaries of both the post and its comment section.

How It Works

1. Save Posts Manually

Simply use Reddit's built-in save feature on any post you find valuable.

2. Automated Daily Processing

The workflow triggers once per day and:

  • Fetches all your saved Reddit posts via Reddit API
  • Filters posts by subreddit and custom conditions (e.g., "only posts about JavaScript frameworks" or "posts with more than 100 upvotes")
  • Uses an LLM (Google Gemini) to verify posts match your natural language criteria
  • Generates comprehensive summaries of both the original post and top comments

3. Structured Database Storage

Filtered and summarized posts are automatically saved to your Supabase database with this structure:

{
  "reddit_id": "unique post identifier",
  "title": "post title",
  "url": "direct link to Reddit post",
  "summary": "AI-generated summary of post and comments",
  "tags": ["array", "of", "relevant", "tags"],
  "post_date": "original post creation date",
  "upvotes": "number of upvotes",
  "num_comments": "total comment count"
}

Setup Requirements

  • Reddit API credentials (client ID and secret)
  • Supabase account with a database table
  • Google Gemini API key (or alternative LLM provider)
  • Basic configuration of filter conditions (subreddit names and natural language criteria)

Use Cases

  • Product Research: Track competitor mentions and feature requests
  • Content Creation: Build a library of trending topics in your niche
  • Community Management: Monitor feedback across multiple subreddits
  • Academic Research: Collect and analyze discussions on specific topics

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 2 - extract relevant attribut from comments

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - aggregate post and comment into a single text

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 5 - Google Gemini Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 6 - Wait (rate limiting)

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 7 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - manual trigger when testing

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 15 - check once a day if new post are available

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 16 - Get post data from supabase

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 17 - and extract their reddit id

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 18 - get saved post from reddit profile

Type / Role
n8n-nodes-base.reddit - reddit
Config choices
Version 1

Block 19 - extract relevant attribut and filter posts based on subreddit

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - further filtering existing posts wrt existing posts in database

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - LLM1

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 22 - get all comments for the current post

Type / Role
n8n-nodes-base.reddit - reddit
Config choices
Version 1

Block 23 - LLM2

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 24 - prepare data to be inserted in supabase

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Showing the first 24 of 27 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Workflow function to summarize Reddit posts using Google Gemini and Supabase
Complexity advanced
Nodes 27
Categories Market Research, AI Summarization
Author Fei Wu
Published 25 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10181/10181.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Workflow function to summarize Reddit posts using Google Gemini and Supabase do?

Reddit Post Saver & Summarizer with AI Powered Filtering Who This Is For Perfect for content curators, researchers, developers, and community managers who want to build a structured database of val...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Summarization use case.