# Automated YouTube publishing from Drive with OpenAI and Gemini: n8n workflow

> Started by an event in a connected app, and works across Google Drive, Telegram and YouTube. It hands the judgement calls to Gemini and OpenAI.

Source: https://millionrounds.com/workflow/automated-youtube-publishing-from-drive-with-openai-and-gemi (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)

# Automated YouTube publishing from Drive with OpenAI and Gemini

Started by an event in a connected app, and works across Google Drive, Telegram and YouTube. It hands the judgement calls to Gemini and OpenAI. 15 steps, 1 loop or waits: a working afternoon to understand properly.

Medium Calls a model: Gemini, OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomated-youtube-publishing-from-drive-with-openai-and-gemi)

**15 steps** Medium: a working afternoon

**0** Branches: places the flow splits

**1** Loop or waits

**3** Services it connects to

## The flow

Starts it 1 Model 4 Logic 2 Service 8

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

- 1 **New Video?** Google Drive trigger *Starts it*
- 2 **2.5FlashPrev** Lm Chat Google Gemini *Model*
- 3 **Post to Instagram** Http Request *Service*
- 4 **Create Description** Open Ai *Model*
- 5 **YT Tags** Agent *Model*
- 6 **Wait 2 Second** Wait *Logic*
- 7 **YT Title** Open Ai *Model*
- 8 **Publish instagram post** Http Request *Service*
- 9 **Download New Video** Google Drive *Service*
- 10 **Use System token to get page token** Http Request *Service*
- 11 **Upload to youtube** You Tube *Service*
- 12 **Get Correct Page Token** Code *Logic*
- 13 **Delete video from Upload Folder1** Google Drive *Service*
- 14 **Post to Facebook** Http Request *Service*
- 15 **Send a text message** Telegram *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 15, 1 loop or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Google Drive, Telegram, YouTube
- **Model:** Gemini, OpenAI

## Questions

What does it need to run?

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

What starts it?

It starts on an event in a connected app.

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?

Plan an afternoon. 15 steps is enough that you should read each one before running it.

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 15 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-publishing-from-drive-with-openai-and-gemi)
- **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.

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

## Workflows like it

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

- [**AI Viral Video Producer: Ideation to Veo3 Generation** 15 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/ai-viral-video-producer-ideation-to-veo3-generation)
- [**Auto-post curated remote jobs to Telegram with BrowserAct** 15 steps · calls a model · Telegram](https://millionrounds.com/workflow/auto-post-curated-remote-jobs-to-telegram-with-browseract)
- [**Automate newsletter creation & client delivery with OpenAI** 15 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/automate-newsletter-creation-and-client-delivery-with-openai)
- [**Automate your LinkedIn posts based on news of your choice** 15 steps · calls a model · Google Sheets, LinkedIn](https://millionrounds.com/workflow/automate-your-linkedin-posts-based-on-news-of-your-choice)
- [**Automated translation of text, documents** 15 steps · calls a model · Google Docs, Telegram](https://millionrounds.com/workflow/automated-translation-of-text-documents)
- [**Convert RSS news to AI avatar videos with Heygen** 15 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/convert-rss-news-to-ai-avatar-videos-with-heygen)
