Templates / Post daily motivational tweets to Twitter/X with Google Gemini AI

Post daily motivational tweets to Twitter/X with Google Gemini AI

Needs changes

by Muhammad Tauqeer Aslam · 276 views · created 2026-01-21 · Social Media, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 8 nodes and runs on a schedule (every day at 09:00). Along the way it connects X (Formerly Twitter) and Google Gemini Chat Model.

How it runs

Trigger: On a schedule (every day at 09:00).

  1. Generate Quotes (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
  2. Parse Quotes (Function): runs custom JavaScript (legacy Function node)
  3. Remove Duplicates (Function): runs custom JavaScript (legacy Function node)
  4. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Post Tweet (X (Formerly Twitter)): uses X (Formerly Twitter)
  6. Wait: pauses before continuing

Services it uses

X (Formerly Twitter)Google Gemini Chat Model

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Function (legacy) in Parse Quotes, Remove Duplicates: replace with Code node, mode 'Run Once for All Items'.
Removed in 3.0Replace with
Function (legacy)
Parse Quotes, Remove Duplicates
Code node, mode 'Run Once for All Items'

Nodes used (7)

From the author

This n8n template demonstrates how to use AI to automatically generate and post content to Twitter/X on a schedule. It combines AI-generated text with workflow automation to help creators and businesses stay consistent on social media without manual posting.…

Excerpt from Muhammad Tauqeer Aslam's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.