# Automated YouTube video scheduling & AI metadata generation: n8n workflow

> Started by a clock, and works across YouTube. It hands the judgement calls to Gemini and OpenAI.

Source: https://millionrounds.com/workflow/automated-youtube-video-scheduling-and-ai-metadata-generatio (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Scheduling](https://millionrounds.com/workflows?category=Scheduling#library)

# Automated YouTube video scheduling & AI metadata generation

Started by a clock, and works across YouTube. It hands the judgement calls to Gemini and OpenAI. 25 steps, 1 branch, 5 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomated-youtube-video-scheduling-and-ai-metadata-generatio)

**25 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**5** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Model 4 Logic 11 Service 8

The steps in the order they run, from what starts it.

- 1 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 2 **2.5FlashPrev** Lm Chat Google Gemini *Model*
- 3 **Every Day** Schedule trigger *Starts it*
- 4 **Get Videos to reschedule** You Tube *Service*
- 5 **YT Tags** Agent *Model*
- 6 **Get video Ids seperated** Code *Logic*
- 7 **Update Video's Metadata** You Tube *Service*
- 8 **Loop over Video IDs** Split In Batches *Logic*
- 9 **3s** Wait *Logic*
- 10 **Return Private Videos** Code *Logic*
- 11 **Get Video Data** You Tube *Service*
- 12 **Loop Over Items** Split In Batches *Logic*
- 13 **Loop over All Videos not Published** Split In Batches *Logic*
- 14 **get video id** Set *Logic*
- 15 **4s** Wait *Logic*
- 16 **gettitle** You Tube *Service*
- 17 **Remove Duplicates from previous Runs** Remove Duplicates *Logic*
- 18 **Fetch Latest Videos** You Tube *Service*
- 19 **Set Publish Date** You Tube *Service*
- 20 **new video?** If *Logic*
- 21 **getLatestVideoID** You Tube *Service*
- 22 **Get Transcript** Http Request *Service*
- 23 **Adjust Transcript Format** Code *Logic*
- 24 **Create Description** Open Ai *Model*
- 25 **YT Title** Open Ai *Model*

## How it's built

- **Starts on:** A clock
- **Steps:** 25, with 1 branch, 5 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** YouTube
- **Model:** Gemini, OpenAI

## Questions

What does it need to run?

An n8n account, plus your own YouTube account, and a key for Gemini and OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls Gemini and OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 25 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 25 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomated-youtube-video-scheduling-and-ai-metadata-generatio)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[YouTube](https://millionrounds.com/workflows?service=YouTube#library)

## Workflows like it

Also scheduling, with the same services where possible, closest in size first.

- [**Schedule motivational YouTube Shorts with Google Drive** 22 steps · calls a model · Airtable, Google Cloud Storage](https://millionrounds.com/workflow/schedule-motivational-youtube-shorts-with-google-drive)
- [**Batch upload Instagram Reels to YouTube** 14 steps · YouTube, n8n data table](https://millionrounds.com/workflow/batch-upload-instagram-reels-to-youtube)
- [**Rotate YouTube channel banners on a schedule** 10 steps · Google Drive, Google Sheets](https://millionrounds.com/workflow/rotate-youtube-channel-banners-on-a-schedule)
- [**Automated YouTube video uploads with 12h** 8 steps · YouTube](https://millionrounds.com/workflow/automated-youtube-video-uploads-with-12h)
- [**Scheduled YouTube video uploads with Google Sheets and Drive** 8 steps · Google Drive, Google Sheets](https://millionrounds.com/workflow/scheduled-youtube-video-uploads-with-google-sheets-and-drive)
- [**Explore n8n nodes in a visual reference library with Claude** 97 steps · calls a model · Dropbox, Email](https://millionrounds.com/workflow/explore-n8n-nodes-in-a-visual-reference-library-with-claude)
