Skip to main content

Repurpose Reddit posts into AI tweets with Gemini and Google Sheets

Workflow preview

Workflow preview
100%
Repurpose Reddit posts into AI tweets with Gemini and Google 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

Automatically turns trending Reddit posts into punchy, first person tweets powered by Google Gemini AI , Reddit , and Twitter API , with Google Sheets logging. Overview This workflow repurposes ...

Best for

  • Social Media automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.code, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.googlesheetstool, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.scheduletrigger, n8n-nodes-base.stickynote, n8n-nodes-base.twitter, @n8n/n8n-nodes-langchain.outputparserstructured

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Repurpose Reddit posts into AI tweets with Gemini and Google Sheets
Workflow name
Repurpose Reddit posts into AI tweets with Gemini and Google Sheets

Automatically turns trending Reddit posts into punchy, first-person tweets powered by Google Gemini AI, Reddit, and Twitter API, with Google Sheets logging.


🧩 Overview

This workflow repurposes Reddit content into original tweets every few hours.
It’s perfect for creators, marketers, or founders who want to automate content inspiration while keeping tweets sounding human, edgy, and fresh.

Core automation loop:

  1. Fetch trending Reddit posts from selected subreddits.
  2. Use Gemini AI to write a short, first-person tweet.
  3. Check your Google Sheet to avoid reusing the same Reddit post.
  4. Publish to Twitter automatically.
  5. Log tweet + Reddit reference in Google Sheets.

🧠 Workflow Diagram


🪄 How It Works

1️⃣ Every 2 hours → the workflow triggers automatically.
2️⃣ It picks a subreddit (like r/automation, r/n8n, r/SaaS).
3️⃣ Gemini AI analyzes a rising Reddit post and writes a fresh, short tweet.
4️⃣ The system checks your Google Sheet to ensure it hasn’t used that Reddit post before.
5️⃣ Once validated, the tweet is published via Twitter API and logged.


🧠 Example Tweet Output


📊 Logged Data (Google Sheets)

Each tweet is automatically logged for version control and duplication checks.

Date Subreddit Post ID Tweet Text
08/10/2025 n8n_ai_agents 1o16ome Just saw a wild n8n workflow on Reddit...

⚙️ Key Components

Node Function
Schedule Trigger Runs every 2 hours to generate a new tweet.
Code (Randomly Decide Subreddit) Picks one subreddit randomly from your preset list.
Gemini Chat Model Generates tweet text in first person tone using custom prompt rules.
Reddit Tool Fetches top or rising posts from the chosen subreddit.
Google Sheets (read database) Keeps a record of already-used Reddit posts.
Structured Output Parser Ensures consistent tweet formatting (tweet text, subreddit, post ID).
Twitter Node Publishes the AI-generated tweet.
Append Row in Sheet Logs the tweet with date, subreddit, and post ID.

🧩 Setup Tutorial

1️⃣ Prerequisites

Tool Purpose
n8n Cloud or Self-Host Workflow execution
Google Gemini API Key For tweet generation
Reddit OAuth2 API To fetch posts
Twitter (X) API OAuth2 To publish tweets
Google Sheets API For logging and duplication tracking

2️⃣ Import the Workflow

  1. Download Reddit Twitter Automation.json.
  2. In n8n, click Import Workflow → From File.
  3. Connect your credentials:
    • Gemini → Gemini
    • Reddit → Reddit account
    • Twitter → X
    • Google Sheets → Gsheet

3️⃣ Configure Google Sheet

Your sheet must include these columns:

Column Description
PAST TWEETS The tweet text
Date Auto-generated date
subreddit Reddit source
post_id Reddit post reference


4️⃣ Customize Subreddits

In the Code Node, update this array to choose which subreddits to monitor:

const subreddits = [
  "n8n",
  "microsaas",
  "SaaS",
  "automation",
  "n8n_ai_agents"
];

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 - Code1

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

Block 2 - Tweet maker1

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

Block 3 - read database2

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

Block 4 - Google Gemini Chat Model1

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

Block 5 - Schedule Trigger1

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

Block 6 - Sticky Note

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

Block 7 - Creates the tweet1

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

Block 8 - Structured Output Parser2

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

Block 9 - Get many posts in Reddit1

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

Block 10 - Append row in sheet1

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

Block 11 - Edit Fields1

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

Block 12 - Sticky Note10

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

Block 13 - Sticky Note11

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

Block 14 - Sticky Note9

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

3. Summary Table

Workflow Repurpose Reddit posts into AI tweets with Gemini and Google Sheets
Complexity intermediate
Nodes 14
Categories Social Media, AI Chatbot
Author Jay Emp0
Published 09 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9395/9395.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 Repurpose Reddit posts into AI tweets with Gemini and Google Sheets do?

Automatically turns trending Reddit posts into punchy, first person tweets powered by Google Gemini AI , Reddit , and Twitter API , with Google Sheets logging. Overview This workflow repurposes ...

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, AI Chatbot use case.