Post daily motivational tweets to Twitter/X with Google Gemini AI
Needs changesNeeds 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).
- Generate Quotes (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
- Parse Quotes (Function): runs custom JavaScript (legacy Function node)
- Remove Duplicates (Function): runs custom JavaScript (legacy Function node)
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Post Tweet (X (Formerly Twitter)): uses X (Formerly Twitter)
- Wait: pauses before continuing
Services it uses
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.0 | Replace with |
|---|---|
| Function (legacy) Parse Quotes, Remove Duplicates | Code node, mode 'Run Once for All Items' |
Nodes used (7)
- Function
n8n-nodes-base.function - Wait
n8n-nodes-base.wait - X (Formerly Twitter)
n8n-nodes-base.twitter - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches
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.…