Skip to main content

Auto-comment on Reddit posts with AI brand mentions & Baserow tracking

Workflow preview

Workflow preview
100%
Auto-comment on Reddit posts with AI brand mentions & Baserow tracking preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This workflow finds fresh Reddit posts that match your keywords, decides if they’re actually relevant to your brand, writes a short human style reply using AI, posts it, and logs everything to Base...

Best for

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

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.reddit, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.splitinbatches, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.memorybufferwindow

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Auto-comment on Reddit posts with AI brand mentions & Baserow tracking
Workflow name
Auto-comment on Reddit posts with AI brand mentions & Baserow tracking

This workflow finds fresh Reddit posts that match your keywords, decides if they’re actually relevant to your brand, writes a short human-style reply using AI, posts it, and logs everything to Baserow.

💡Perfect for

  • Lead gen without spam: drop helpful replies where your audience hangs out.

  • Get discovered by AI surfaces (AI Overviews / SGE, AISEO/GSEO) via high-quality brand mentions.

  • Customer support in the wild: answer troubleshooting threads fast.

  • Community presence: steady, non-salesy contributions in niche subreddits.

🧠 What it does

  • Searches Reddit for your keyword query on a schedule (e.g., every 30 min)

  • Checks Baserow first so you don’t reply twice to the same post

  • Uses an AI prompt tuned for short, no-fluff, subreddit-friendly comments

  • Softly mentions your brand only when it’s clearly relevant

  • Posts the comment via Reddit’s API

  • Saves post_id, comment_id, reply, permalink, status to Baserow

  • Processes posts one-by-one with an optional short wait to be nice to Reddit

⚡ Requirements

  • Reddit developer API

  • Baserow account, table, and API token

  • AI provider API (OpenAI / Anthropic / Gemini)

⚙️ Setup Instructions

  1. Create Baserow table Fields (user-field names exactly): post_id (unique), permalink, subreddit, title, created_utc, reply (long text), replied (boolean), created_on (datetime).

  2. Add credentials in n8n

  • Reddit OAuth2 (scopes: read, submit, identity) and set a proper User-Agent string (Reddit requires it).
  • LLM: Google Gemini and/or Anthropic (both can be added; one can be fallback in the AI Agent).
  • Baserow: API token.
  1. Set the Schedule Trigger (Cron) Start hourly (or every 2–3h). Pacing is mainly enforced by the Wait nodes.

  2. Update “Check duplicate row” (HTTP Request)

  • URL: https://api.baserow.io/api/database/rows/table/{TABLE_ID}/?user_field_names=true&filter__post_id__equal={{$json.post_id}}
  • Header: Authorization: Token YOUR_BASEROW_TOKEN (Use your own Baserow domain if self-hosted.)
  1. Configure “Filter Replied Posts” Ensure it skips items where your Baserow record shows replied === true (so you don’t comment twice).

  2. Configure “Fetch Posts from Reddit” Set your keyword/search query (and time/sort). Keep User-Agent header present.

  3. Configure “Write Reddit Comment (AI)”

  • Update your brand name (and optional link).
  • Edit the prompt/tone to your voice; ensure it outputs a short reply field (≤80 words, helpful, non-salesy).
  1. Configure “Post Reddit Comment” (HTTP Request)
  • Endpoint: POST https://oauth.reddit.com/api/comment
  • Body: thing_id: "t3_{{$json.post_id}}", text: "{{$json.reply}}"
  • Uses your Reddit OAuth credential and User-Agent header.
  • Update user_agent value in header by your username n8n:reddit-autoreply:1.0 (by /u/{reddit-username})
  1. Store Comment Data on Baserow (HTTP Request)
  • POST https://api.baserow.io/api/database/rows/table/{TABLE_ID}/?user_field_names=true
  • Header: Authorization: Token YOUR_BASEROW_TOKEN
  • Map: post_id, permalink, subreddit, title, created_utc, reply, replied, created_on={{$now}}.
  1. Keep default pacing Leave Wait 5m (cool-off) and Wait 6h (global pace) → ~4 comments/day. Reduce waits gradually as account health allows.

  2. Test & enable Run once manually, verify a Baserow row and one test comment, then enable the schedule.

🤝 Need a hand?

I’m happy to help you get this running smoothly—or tailor it to your brand.

Reach out to me via email: [email protected]

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 - Schedule Trigger

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

Block 2 - Search for a post

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

Block 3 - AI Agent

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

Block 4 - Google Gemini Chat Model

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

Block 5 - Structured Output Parser

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

Block 6 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 7 - If

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

Block 8 - AI Agent1

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

Block 9 - Google Gemini Chat Model1

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

Block 10 - Simple Memory

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

Block 11 - HTTP Request

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - Wait

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

Block 13 - Sticky Note

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

Block 14 - Sticky Note1

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

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 Note6

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

Block 20 - Sticky Note7

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

Block 21 - Sticky Note8

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

Block 22 - Sticky Note9

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

Block 23 - Sticky Note10

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

Block 24 - Anthropic Chat Model

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

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

3. Summary Table

Workflow Auto-comment on Reddit posts with AI brand mentions & Baserow tracking
Complexity advanced
Nodes 35
Categories Social Media, Multimodal AI
Author Arunava
Published 10 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7217/7217.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 Auto-comment on Reddit posts with AI brand mentions & Baserow tracking do?

This workflow finds fresh Reddit posts that match your keywords, decides if they’re actually relevant to your brand, writes a short human style reply using AI, posts it, and logs everything to Base...

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.