AI YouTube trend finder based on niche
Needs changesWhat this workflow does
This AI workflow has 13 nodes and runs when a chat message arrives. Along the way it connects OpenAI Chat Model and YouTube. It also calls googleapis.com over HTTP.
How it runs
Trigger: When a chat message arrives.
- AI Agent: runs an AI agent, with model: openai_llm; 1 tool (youtube_search); memory: window_buffer_memory
- get_videos (YouTube): work with video
- loop_over_items (Loop Over Items (Split in Batches)): loops over the items in batches
- retrieve_data_from_memory (Code): runs custom JavaScript code
- find_video_data (HTTP Request): calls googleapis.com
- response (Edit Fields (Set)): sets 1 field: response
- If: checks a condition and branches into true / false
- group_data (Edit Fields (Set)): sets 9 fields: id, viewCount, likeCount…
- save_data_to_memory (Code): runs custom JavaScript code
Services it uses
HTTP calls to: googleapis.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace 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 Agent
@n8n/n8n-nodes-langchain.agent - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - HTTP Request
n8n-nodes-base.httpRequest - YouTube
n8n-nodes-base.youTube - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if
From the author
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…