Detect viral YouTube videos with AI analysis and email reports
Needs changesWhat this workflow does
This AI workflow has 22 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects OpenAI Chat Model and Gmail. It also calls googleapis.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Setup (Edit Fields (Set)): sets 5 fields: query, GoogleAPIkey, daysback…
- SearchVideos (HTTP Request): calls googleapis.com
- Split Out: splits a list into separate items
- Split Out: splits a list into separate items
- GetChannelInfo (HTTP Request): calls googleapis.com
- GetVidStats (HTTP Request): calls googleapis.com
- ChannelInfo (Code): runs custom JavaScript code
- VidStats (Code): runs custom JavaScript code
- Merge: merges the data from its input branches
- Remove Duplicates: removes duplicate items
…plus 8 more steps. See the full node list below.
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.9): 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.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (16)
- Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Think Tool
@n8n/n8n-nodes-langchain.toolThink - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Sort
n8n-nodes-base.sort - Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Merge
n8n-nodes-base.merge - Edit Fields (Set)
n8n-nodes-base.set - Remove Duplicates
n8n-nodes-base.removeDuplicates - Limit
n8n-nodes-base.limit - Aggregate
n8n-nodes-base.aggregate - Markdown
n8n-nodes-base.markdown - Gmail
n8n-nodes-base.gmail
From the author
Analyze YouTube videos for virality with an AI-powered report This workflow automates the discovery and analysis of potentially viral YouTube videos. It searches for recent, popular videos based on a keyword, calculates a unique "Algorithmic Lift Score" to…