Templates / AI YouTube trend finder based on niche

AI YouTube trend finder based on niche

Needs changes

by Leonardo Grigorio ✓ · 74,388 views · created 2024-12-05 · Market Research, AI Summarization

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 to replace before upgrading

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

Nodes used (11)

AI AgentCall n8n WorkflowOpenAI Chat ModelSimple MemoryYouTube

What it does

Youtube Video This n8n workflow is designed to assist YouTube content creators in identifying trending topics within a specific niche. By leveraging YouTube's search and data APIs, it gathers and analyzes video performance metrics from the past two days to provide insights into what content is gaining traction. Here's how the workflow operates: 1. Trigger Setup: The workflow begins when a user sends a query through the chatmessagereceived node. If no niche is provided, the AI prompts the user to select or input one. 2. AI Agent (Language Model): The central node utilizes a GPT-based AI agent to: - Understand the user's niche or content preferences. - Generate tailored search terms related to the niche. - Process YouTube API responses and summarize trends using insights such as common themes, tags, and audience engagement metrics (views, likes, and comments). 3. YouTube Search: The youtubesearch node runs a secondary workflow to query YouTube for relevant videos published within the last two days. It retrieves basic video data such as video IDs, relevance scores, and publication dates. 4. Video Details Retrieval: The workflow fetches additional details for each video: - Video Snippet: Metadata like title, description, and tags. - Video Statistics: Metrics such as views, likes, and comments. - Content Details: Video duration, ensuring only content longer than 3 minutes and 30 seconds is analyzed. 5. Data Processing: - Video metadata is cleaned, sanitized, and stored in memory. - Tags, titles, and descriptions are analyzed to identify patterns and trends across multiple videos. 6. Output: The workflow compiles insights and presents them to the user, highlighting: - The most common themes or patterns within the niche. - URLs to trending videos and their respective channels. - Engagement statistics, helping the user understand the popularity of the content. Key Notes for Setup: - API Keys: Ensure valid YouTube API credentials are configured in the getvideos, findvideosnippet, findvideostatistics, and findvideodata nodes. - Memory Buffer: The windowbuffermemory node ensures the AI agent retains context during analysis, enhancing the quality of the generated insights. - Search Term Customization: The AI agent dynamically creates search terms based on the user’s niche to improve search precision. Use Case: This workflow is ideal for YouTubers or marketers seeking data-driven inspiration for creating content that aligns with current trends, maximizing the potential to engage their audience. Example Output: For the niche "digital marketing": - Trending Topic: Videos about "mental triggers" and "psychological marketing." - Tags: "SEO," "Conversion Rates," "Social Proof." - Engagement: Videos with over 200K views and high likes/comment ratios are leading trends. - Video links: - https://www.youtube.com/watch?v=videoid1 - https://www.youtube.com/watch?v=videoid2

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.