Skip to main content

Automated content & promo tweet scheduler with Gemini AI and Google Sheets

Workflow preview

Workflow preview
100%
Automated content & promo tweet scheduler with Gemini AI 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

Twitter Automation (n8n Template) What it does Posts a unique tweet every 2 hours 70% content tweets (10 proven templates) 30% promo tweets pulled from Google Sheets Logs past tweets to avoid du...

Best for

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

Tools used

n8n-nodes-base.code, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.googlesheetstool, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.scheduletrigger, n8n-nodes-base.stickynote, 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 Jay Emp0.

Original n8n.io source

1.1 Workflow description

Title
Automated content & promo tweet scheduler with Gemini AI and Google Sheets
Workflow name
Automated content & promo tweet scheduler with Gemini AI and Google Sheets

Twitter Automation (n8n Template)

🚀 What it does

  • Posts a unique tweet every 2 hours
  • 70% content tweets (10 proven templates)
  • 30% promo tweets pulled from Google Sheets
  • Logs past tweets to avoid duplicates

âś… Requirements

  • n8n
  • Google Sheets with 2 tabs:
    • posts → log of past tweets (PAST TWEETS, Date)
    • promo → promo source (name, last_posted, optional extra fields)
  • Twitter (X) account with OAuth2 write access
  • Gemini API key (for text generation)

⚡ Results

  1. Automated motivational posts

  2. Automated promo posts


🔄 How It Works

  1. Triggers every 2 hours (optional: random delay up to 120 min).
  2. Randomly selects content (70%) or promo (30%).
  3. Content path: checks posts, generates tweet, logs new one.
  4. Promo path: picks row from promo, generates tweet, updates last_posted.
  5. Posts to Twitter automatically.

🎯 Content Templates

Transformation · Hook–List–Takeaway · Interesting Fact · Metaphor · Contrast · Motivation · Triad · Comparison · 80/20 Rule · Callout


⚙️ Customization

Setting Where Example
Ads probability Code node Change Math.random() < 0.3 → 0.2 for 20%
Templates Code node Edit the templates array
Cadence Schedule Trigger Cron or fixed hours
Random delay Time randomizer Enable node (0–120 mins)

🛠️ Troubleshooting

Issue Fix
Repeated tweets Ensure posts has column PAST TWEETS
Not posting Reconnect Twitter creds with write access
Promo never used Increase ads probability (e.g., 0.4)

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

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

Block 2 - Tweet maker

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

Block 3 - read database

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

Block 4 - log database

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

Block 5 - If

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

Block 6 - Google Gemini Chat Model

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

Block 7 - Schedule Trigger

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

Block 8 - Sticky Note

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

Block 9 - Sticky Note1

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

Block 10 - Time randomizer

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

Block 11 - Sticky Note2

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

Block 12 - Sticky Note3

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

Block 13 - Sticky Note4

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

Block 14 - Promotional Tweet maker

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

Block 15 - Sticky Note5

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

Block 16 - Sticky Note6

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

Block 17 - Tweet

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

Block 18 - Creates the tweet

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

Block 19 - read database1

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

Block 20 - log database1

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

3. Summary Table

Workflow Automated content & promo tweet scheduler with Gemini AI and Google Sheets
Complexity advanced
Nodes 20
Categories Social Media, Multimodal AI
Author Jay Emp0
Published 10 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8435/8435.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 Automated content & promo tweet scheduler with Gemini AI and Google Sheets do?

Twitter Automation (n8n Template) What it does Posts a unique tweet every 2 hours 70% content tweets (10 proven templates) 30% promo tweets pulled from Google Sheets Logs past tweets to avoid du...

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.