Templates / Generate content ideas from social trends with Apify, Gemini, and Google Sheets

Generate content ideas from social trends with Apify, Gemini, and Google Sheets

Ready for 3.0

by Pratyush Kumar Jha ✓ · 295 views · created 2026-02-19 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 9 nodes and runs when someone submits an n8n form (“Trend Extraction and AI Content Generation”). Along the way it connects Google Sheets and Google Gemini Chat Model. It also calls api.apify.com over HTTP.

How it runs

Trigger: When someone submits an n8n form (“Trend Extraction and AI Content Generation”).

  1. X Scraper (HTTP Request): calls api.apify.com (POST)
  2. Edit Fields (Edit Fields (Set)): sets 1 field: Content
  3. Aggregate: combines items into one
  4. AI Agent: runs an AI agent, with model: Google Gemini Chat Model; output parser: Structured Output Parser
  5. Code: runs custom JavaScript code
  6. Append row in sheet (Google Sheets): append

Services it uses

Google SheetsGoogle Gemini Chat Model

HTTP calls to: api.apify.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

Trend2Content This n8n workflow (named Trend2Content) takes a short topic input from a small web form, scrapes recent/top social content for that topic (via an Apify act), aggregates the raw text, passes that aggregated content into a LangChain AI agent…

Excerpt from Pratyush Kumar Jha'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.