Turn YouTube comments into content ideas with GPT-4.1-mini, Tavily & Apify
Needs changesWhat this workflow does
This AI workflow has 10 nodes and runs when a chat message arrives. Along the way it connects OpenAI, HTTP Request and Google Sheets. It also calls api.apify.com and api.tavily.com over HTTP.
How it runs
Trigger: When a chat message arrives.
- Fetch YouTube Comments (Apify) (HTTP Request): calls api.apify.com (POST)
- Analyzing YouTube comments (OpenAI): uses OpenAI
- Comment Idea Filter (Filter): keeps only the items that match a condition
- Store Raw Comments (Google Sheets): append or update
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Extracting content topics from YouTube comments (OpenAI): uses OpenAI, with 1 tool (Research Context (Tavily))
- Transforming a researched YouTube video topic into a compelling video concept (OpenAI): uses OpenAI
- Update Idea with Enriched Data (Google Sheets): update
Services it uses
HTTP calls to: api.apify.com, api.tavily.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- HTTP Request Tool (legacy) in Research Context (Tavily): replace with HTTP Request node connected to the AI Agent's Tool input.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| HTTP Request Tool (legacy) Research Context (Tavily) | HTTP Request node connected to the AI Agent's Tool input |
Nodes used (7)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - OpenAI
@n8n/n8n-nodes-langchain.openAi - HTTP Request
n8n-nodes-base.httpRequest - Filter
n8n-nodes-base.filter - HTTP Request Tool
@n8n/n8n-nodes-langchain.toolHttpRequest - Google Sheets
n8n-nodes-base.googleSheets
From the author
Description This n8n template demonstrates how to turn raw YouTube comments into research-backed content ideas complete with hooks and outlines. Use cases include: Quickly mining a competitor’s audience for video ideas. Generating hooks and outlines for your…