AI Agents

Connect YouTube with OpenAI

33 nodes 224 120 Automatic trigger
Download

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. 1.Trigger the workflow manually or on schedule to fetch video list from your specified YouTube channel
  2. 2.Split results into processing batches using Split In Batches to ensure operational efficiency
  3. 3.Send each batch content to an advanced AI agent combining OpenAI and Gemini for analysis and extraction
  4. 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

YouTube Split In Batches OpenAI Gemini AI Agent Remove Duplicates

Details

Trigger Automatic trigger
Nodes 33
Apps 6
Views 224
Downloads 120

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (33)

/

Fetch Latest Videos

You Tube

#1

Loop Over Items

Split In Batches

#2

YT Title

OpenAI

#3

Create Description

OpenAI

#4

When clicking ‘Test workflow’

Manual Trigger

#5

Sticky Note1

Sticky Note

#6

Sticky Note2

Sticky Note

#7

Sticky Note3

Sticky Note

#8

2.5FlashPrev

Gemini Model

#9

YT Tags

Agent

#10

Sticky Note4

Sticky Note

#11

3s

Wait

#12

gettitle

You Tube

#13

Sticky Note

Sticky Note

#14

Sticky Note5

Sticky Note

#15

Sticky Note6

Sticky Note

#16

Sticky Note7

Sticky Note

#17

Set Publish Date

You Tube

#18

Every Day

Schedule Trigger

#19

Get Videos to reschedule

You Tube

#20

Get video Ids seperated

Code

#21

Loop over Video IDs

Split In Batches

#22

Get Video Data

You Tube

#23

Return Private Videos

Code

#24

4s

Wait

#25

Loop over All Videos not Published

Split In Batches

#26

get video id

Set

#27

Remove Duplicates from previous Runs

Remove Duplicates

#28

new video?

If

#29

getLatestVideoID

You Tube

#30

Get Transcript

HTTP Request

#31

Adjust Transcript Format

Code

#32

Update Video's Metadata

You Tube

#33