Block 1 - Code1
- Type / Role
- n8n-nodes-base.code - code
- Config choices
- Version 2
This workflow is provided as-is. Please review and test before using in production.
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 ...
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
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jay Emp0.
Original n8n.io sourceAutomatically turns trending Reddit posts into punchy, first-person tweets powered by Google Gemini AI, Reddit, and Twitter API, with Google Sheets logging.
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️⃣ 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.
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... |
| 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. |
| 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 |
Reddit Twitter Automation.json. Gemini Reddit account X GsheetYour sheet must include these columns:
| Column | Description |
|---|---|
PAST TWEETS |
The tweet text |
Date |
Auto-generated date |
subreddit |
Reddit source |
post_id |
Reddit post reference |
In the Code Node, update this array to choose which subreddits to monitor:
const subreddits = [
"n8n",
"microsaas",
"SaaS",
"automation",
"n8n_ai_agents"
];
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.
| 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 |
Use the JSON export at /data/workflows/9395/9395.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
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 ...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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.