Send weekly YouTube Shorts breakout trend reports with OpenAI and Gmail
Ready for 3.0What this workflow does
This AI workflow has 19 nodes and runs on a schedule (every week at 07:00). Along the way it connects OpenAI Chat Model and Gmail. It also calls googleapis.com over HTTP.
How it runs
Trigger: On a schedule (every week at 07:00).
- Set Scout Settings (Edit Fields (Set)): sets 7 fields: queries, days, region…
- Split Queries (Split Out): splits a list into separate items
- Search Shorts (HTTP Request): calls googleapis.com
- Get Video Details (HTTP Request): calls googleapis.com
- Split Videos (Split Out): splits a list into separate items
- Set Video Row (Edit Fields (Set)): sets 13 fields: id, query, title…
- Keep Real Shorts (Filter): keeps only the items that match a condition
- Collect Videos (Aggregate): combines items into one
- Build Channel Batches (Edit Fields (Set)): sets 1 field: batches
- Split Channel Batches (Split Out): splits a list into separate items
…plus 7 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623) · Other YouTube + OpenAI templates (68) · Other YouTube + Gmail templates (27)
HTTP calls to: googleapis.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Split Out
n8n-nodes-base.splitOut - HTTP Request
n8n-nodes-base.httpRequest - Filter
n8n-nodes-base.filter - Aggregate
n8n-nodes-base.aggregate - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Markdown
n8n-nodes-base.markdown - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow runs every Monday and uses the YouTube Data API to find high-performing Shorts across multiple search queries, then uses OpenAI to write a weekly Markdown trend report that is converted to HTML and sent to you via Gmail. How it…