# Extract video metadata & auto-upload to YouTube with OpenAI: n8n workflow

> Started by another system calling it, and works across Gmail, Google Sheets and YouTube. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/extract-video-metadata-and-auto-upload-to-youtube-with-opena (Millionrounds; every figure on the page links to its filing or article)

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

# Extract video metadata & auto-upload to YouTube with OpenAI

Started by another system calling it, and works across Gmail, Google Sheets and YouTube. It hands the judgement calls to OpenAI. 22 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fextract-video-metadata-and-auto-upload-to-youtube-with-opena)

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

**3** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 3 Model 2 Logic 13 Service 4

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

- 1 **Video Upload Webhook** Webhook *Starts it*
- 2 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 3 **Initialize Upload Session** Set *Logic*
- 4 **AI Metadata Generator** Agent *Model*
- 5 **Validate Binary Data** If *Logic*
- 6 **Parse AI Metadata** Code *Logic*
- 7 **Extract Video Metadata** Code *Logic*
- 8 **Error Response** Respond To Webhook *Starts it*
- 9 **Check Scheduled Publish** If *Logic*
- 10 **Prepare AI Context** Code *Logic*
- 11 **Set Scheduled Settings** Set *Logic*
- 12 **Set Immediate Publish** Set *Logic*
- 13 **Merge Publish Settings** Merge *Logic*
- 14 **YouTube Upload Video** You Tube *Service*
- 15 **Process Upload Result** Code *Logic*
- 16 **Check Playlist Add** If *Logic*
- 17 **Add to Playlist** You Tube *Service*
- 18 **Merge Playlist Result** Merge *Logic*
- 19 **Log Upload to Sheets** Google Sheets *Service*
- 20 **Generate Upload Summary** Code *Logic*
- 21 **Send Upload Notification** Gmail *Service*
- 22 **Success Response** Respond To Webhook *Starts it*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 22, with 3 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets, YouTube
- **Model:** OpenAI

## Questions

What does it need to run?

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

What starts it?

It starts on another system calling it.

Does it use AI?

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

How long does it take to set up?

Take your time. At 22 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 22 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%2Fextract-video-metadata-and-auto-upload-to-youtube-with-opena)
- **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.

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

## Workflows like it

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

- [**Analyze YouTube comments and generate video ideas with Gemini** 22 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/analyze-youtube-comments-and-generate-video-ideas-with-gemin)
- [**Author and publish blog posts from Google Sheets with OpenAI** 22 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/author-and-publish-blog-posts-from-google-sheets-with-openai)
- [**Author and publish blog posts from Google Sheets with OpenAI** 22 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/author-and-publish-blog-posts-from-google-sheets-with-openai-2)
- [**Automate AI news videos to social media with OpenAI and HeyGen** 22 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automate-ai-news-videos-to-social-media-with-openai-and-heyg)
- [**Create Dev.to articles with OpenAI and Gemini** 22 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/create-dev-to-articles-with-openai-and-gemini)
- [**Detect viral YouTube videos with OpenAI and Gmail** 22 steps · calls a model · Gmail](https://millionrounds.com/workflow/detect-viral-youtube-videos-with-openai-and-gmail)
