Plan niche content ideas from Google Trends with Gemini and Apify
UnknownWhat this workflow does
This AI workflow has 39 nodes and runs when someone submits an n8n form (“Find your next content ideas”) (plus 2 other triggers). Along the way it connects Google Sheets, Google Gemini Chat Model, Slack and Telegram and 1 more.
How it runs
Trigger: When someone submits an n8n form (“Find your next content ideas”) (plus 2 other triggers).
- Read form answers (Code): runs custom JavaScript code
- Read keyword sheet (Google Sheets): uses Google Sheets
- Test input (Edit Fields (Set)): sets 2 fields: contentAbout, country
- Defaults (Edit Fields (Set)): sets 9 fields: ideasPerNiche, minRelevance, topicsPerNiche…
- Read sheet rows (Code): runs custom JavaScript code
- Read test input (Code): runs custom JavaScript code
- Group by niche (Code): runs custom JavaScript code
- Ask AI to plan topics (Code): runs custom JavaScript code
- Plan topics (Basic LLM Chain): sends a prompt to an LLM, with model: Gemini model; output parser: Topic plan
- Use planned topics (Code): runs custom JavaScript code
…plus 23 more steps. See the full node list below.
Services it uses
Other Google Sheets + Slack templates (1,314) · Other Google Gemini + Google Sheets templates (819) · Other Telegram + Google Sheets templates (674)
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @apify/n8n-nodes-apify is verified or supports 3.0 (used in Google Trends).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (17)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Merge
n8n-nodes-base.merge - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Apify
@apify/n8n-nodes-apify.apify - If
n8n-nodes-base.if - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - n8n Form
n8n-nodes-base.form - Split Out
n8n-nodes-base.splitOut - Slack
n8n-nodes-base.slack - Telegram
n8n-nodes-base.telegram
From the author
Quick overview This workflow turns a niche description into timely content ideas by planning Google Trends seed keywords with Google Gemini, fetching rising searches via Apify’s Google Trends actor, and delivering ranked ideas in an n8n results page or weekly…