Connect YouTube with OpenAI
Workflow Description
An automation that extracts video content from YouTube channels and processes it using OpenAI and Google Gemini AI models, removing duplicates and organizing data in batches for comprehensive and efficient analysis.
How it works
- 1.Trigger the workflow manually or on schedule to fetch video list from your specified YouTube channel
- 2.Split results into processing batches using Split In Batches to ensure operational efficiency
- 3.Send each batch content to an advanced AI agent combining OpenAI and Gemini for analysis and extraction
- 4.Remove duplicate text and analysis using Remove Duplicates to clean final data output
Use cases
- Automatically summarize video content from YouTube channels for research or marketing purposes
- Extract key ideas and keywords from multiple videos and categorize them by main topics
- Monitor specific YouTube channels and receive intelligent analytics about new content periodically
Requirements
- Active accounts in YouTube and OpenAI with valid API keys
- Enabled Google Gemini settings to work with the advanced AI agent
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (33)
Fetch Latest Videos
You Tube
Loop Over Items
Split In Batches
YT Title
OpenAI
Create Description
OpenAI
When clicking ‘Test workflow’
Manual Trigger
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
2.5FlashPrev
Gemini Model
YT Tags
Agent
Sticky Note4
Sticky Note
3s
Wait
gettitle
You Tube
Sticky Note
Sticky Note
Sticky Note5
Sticky Note
Sticky Note6
Sticky Note
Sticky Note7
Sticky Note
Set Publish Date
You Tube
Every Day
Schedule Trigger
Get Videos to reschedule
You Tube
Get video Ids seperated
Code
Loop over Video IDs
Split In Batches
Get Video Data
You Tube
Return Private Videos
Code
4s
Wait
Loop over All Videos not Published
Split In Batches
get video id
Set
Remove Duplicates from previous Runs
Remove Duplicates
new video?
If
getLatestVideoID
You Tube
Get Transcript
HTTP Request
Adjust Transcript Format
Code
Update Video's Metadata
You Tube