Templates / Auto-generate and post tweet threads based on Google Trends using Gemini AI

Auto-generate and post tweet threads based on Google Trends using Gemini AI

Needs changes

by Amjid Ali ✓ · 1,610 views · created 2025-05-11 · Social Media, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 15 nodes and runs on a schedule (every day). Along the way it connects X (Formerly Twitter), Google Gemini Chat Model, OpenAI Chat Model and Google BigQuery.

How it runs

Trigger: On a schedule (every day).

  1. Google Trends AUS (Google BigQuery): uses Google BigQuery
  2. Aggregate: combines items into one
  3. Trend Selector (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; memory: Simple Memory; output parser: Auto-fixing Output Parser
  4. Tweet Generator (AI Agent): runs an AI agent, with model: Google Gemini Chat Model
  5. Code: runs custom JavaScript code
  6. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  7. X (X (Formerly Twitter)): uses X (Formerly Twitter)
  8. Wait: pauses before continuing

Services it uses

X (Formerly Twitter)Google Gemini Chat ModelOpenAI Chat ModelGoogle BigQuery

Before you upgrade to n8n 3.0

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

  • AI Agent v1 (old agent modes) in Trend Selector (v1.9), Tweet Generator (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Trend Selector (v1.9), Tweet Generator (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (13)

From the author

AI-Powered Twitter Automation using n8n to Check BigQuery Latest Google Trend and Publish Who is this for? This template is designed for: Content creators Tech influencers Educators and marketers who want to automatically tweet trend-based threads using AI…

Excerpt from Amjid Ali'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.