Generate content ideas from social trends with Apify, Gemini, and Google Sheets
Ready for 3.0What 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”).
- X Scraper (HTTP Request): calls api.apify.com (POST)
- Edit Fields (Edit Fields (Set)): sets 1 field: Content
- Aggregate: combines items into one
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model; output parser: Structured Output Parser
- Code: runs custom JavaScript code
- Append row in sheet (Google Sheets): append
Services it uses
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)
- HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Aggregate
n8n-nodes-base.aggregate - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - n8n Form Trigger
n8n-nodes-base.formTrigger - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
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…