Skip to main content

Detect Reddit problems & auto-comment solutions with Google Gemini & Sheets

Workflow preview

Workflow preview
100%
Detect Reddit problems & auto-comment solutions with Google Gemini & Sheets preview
Open on n8n.io

Important notice

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

1. Workflow Overview

N8N Workflow AI Reddit Problem Detection & Auto Solution Commenter This n8n workflow automates Reddit community engagement by detecting posts that discuss problems and automatically replying...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.merge, n8n-nodes-base.reddit, n8n-nodes-base.googlesheets, n8n-nodes-base.if, n8n-nodes-base.set

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Detect Reddit problems & auto-comment solutions with Google Gemini & Sheets
Workflow name
Detect Reddit problems & auto-comment solutions with Google Gemini & Sheets

| N8N Workflow | AI Reddit Problem Detection & Auto-Solution Commenter 🤖

This n8n workflow automates Reddit community engagement by detecting posts that discuss problems and automatically replying with AI-generated solutions — powered by Google Gemini.

It’s designed for developers, automation creators, and brands who want to provide helpful, automated responses to Reddit users discussing issues in their niche.

How It Works

  • The workflow starts with a Manual Trigger (When clicking ‘Execute workflow’).
  • Search for a Post: It scans the r/n8n subreddit (or any subreddit you set) for recent posts containing the keyword “Why I stopped using”.
  • Filter Posts (If Node): Filters posts that have 2 or more upvotes and non-empty text, ensuring only quality discussions are analyzed.
  • Edit Fields: Extracts post details such as title, body text, upvotes, creation time, and subreddit ID for AI processing.

AI Agent + Google Gemini Chat Model:

  • The first AI node analyzes the post and decides whether it’s describing a problem or frustration related to AI automation.

  • Gemini responds with “Yes” or “No.”

Conditional Branch (If1 Node):

  • If “Yes,” the post is confirmed as discussing a problem.
  • The workflow then triggers the second AI Agent.

AI Agent 2 + Gemini:

  • The second AI node uses Gemini to generate a helpful and concise solution addressing the issue mentioned in the Reddit post (for example, offering a fix, suggestion, or new idea).

Merge & Log Data:

  • The AI’s findings (post details + solution) are merged and saved into a connected Google Sheet for tracking community insights.

Comment on Reddit:

  • The workflow automatically posts the AI-generated solution as a comment reply on the original Reddit thread, engaging users directly.

How To Use

  • Import the provided JSON workflow into your n8n dashboard.

  • Set up the required credentials:

  • Reddit OAuth2 API – for searching and posting comments.

  • Google Gemini (PaLM) API – for AI text analysis and solution generation.

  • Google Sheets API – for logging post data and AI results.

  • Adjust the subreddit name, search keyword, or prompts to fit your niche.

  • Click Execute Workflow to run the automation.

Requirements

  • Reddit Developer Account (OAuth2 credentials).
  • Google Gemini (PaLM) API account for AI processing.
  • Google Sheets account for saving analysis results.

How To Customize

  • Change the search keyword (e.g., “help with automation,” “issue with API,” etc.).
  • Modify the AI prompts to tailor the solution style (technical, friendly, educational, etc.).
  • Edit the Google Sheet fields to capture more or fewer details.
  • Enable/disable the comment node if you want to manually approve replies before posting.
  • Adjust the Gemini model name (e.g., models/gemini-2.0-flash) or parameters for faster or more creative responses.

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 - When clicking ‘Execute workflow’

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

Block 2 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3

Block 3 - Google Gemini Chat Model

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

Block 4 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 5 - AI Agent1

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3

Block 6 - Google Gemini Chat Model1

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

Block 7 - Merge1

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 8 - Create a comment in a post

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

Block 9 - Append row in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 10 - Post Searching

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

Block 11 - If Condition

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 12 - Value setup

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 13 - Sticky Note

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

Block 14 - If Condition 2

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 15 - Sticky Note2

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

Block 16 - Sticky Note3

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

Block 17 - Sticky Note4

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

Block 18 - Sticky Note5

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

Block 19 - Sticky Note - Credentials

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

Block 20 - Sticky Note - How to Reuse

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

3. Summary Table

Workflow Detect Reddit problems & auto-comment solutions with Google Gemini & Sheets
Complexity advanced
Nodes 20
Categories Social Media, Multimodal AI
Author Kamran habib
Published 30 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10343/10343.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 Detect Reddit problems & auto-comment solutions with Google Gemini & Sheets do?

N8N Workflow AI Reddit Problem Detection & Auto Solution Commenter This n8n workflow automates Reddit community engagement by detecting posts that discuss problems and automatically replying...

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 Social Media, Multimodal AI use case.