# AI video automation engine - generate & publish YT shorts: n8n workflow

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

Source: https://millionrounds.com/workflow/ai-video-automation-engine-generate-and-publish-yt-shorts (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)

# AI video automation engine - generate & publish YT shorts

Started by a clock, and works across Telegram and YouTube. It hands the judgement calls to Gemini and Perplexity. 16 steps, 1 branch, 1 loop or waits: a working afternoon to understand properly.

Medium Calls a model: Gemini, Perplexity

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-video-automation-engine-generate-and-publish-yt-shorts)

**16 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Model 3 Logic 3 Service 9

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

- 1 **Schedule Trigger** Schedule trigger *Starts it*
- 2 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 3 **Structured Output Parser1** Output Parser Structured *Model*
- 4 **Filenames + topic** Set *Logic*
- 5 **Prompt & Text Agent** Agent *Model*
- 6 **Video Idea** Perplexity *Service*
- 7 **Start Videogeneration** Http Request *Service*
- 8 **Wait until Videogeneration** Wait *Logic*
- 9 **Get Videogeneration** Http Request *Service*
- 10 **Videogeneration finished** If *Logic*
- 11 **Download Video** Http Request *Service*
- 12 **Write Video on Disk** Read Write File *Service*
- 13 **Edit Video** Execute Command *Service*
- 14 **Read finished Video** Read Write File *Service*
- 15 **Send Notification** Telegram *Service*
- 16 **Upload a video** You Tube *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 16, with 1 branch, 1 loop or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Telegram, YouTube
- **Model:** Gemini, Perplexity

## Questions

What does it need to run?

An n8n account, plus your own Telegram and YouTube accounts, and a key for Gemini and Perplexity. 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 Perplexity. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 16 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 16 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%2Fai-video-automation-engine-generate-and-publish-yt-shorts)
- **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.

[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-powered Instagram content automation with OpenRouter** 16 steps · calls a model · Airtable, Telegram](https://millionrounds.com/workflow/ai-powered-instagram-content-automation-with-openrouter)
- [**Auto-Generate & Publish SEO Blog Posts to WordPress** 16 steps · calls a model · Discord, Telegram](https://millionrounds.com/workflow/auto-generate-and-publish-seo-blog-posts-to-wordpress)
- [**Create active learning notes from YouTube videos with Gemini** 16 steps · calls a model · YouTube](https://millionrounds.com/workflow/create-active-learning-notes-from-youtube-videos-with-gemini)
- [**Create marketing content with OpenAI** 16 steps · calls a model · Telegram](https://millionrounds.com/workflow/create-marketing-content-with-openai)
- [**Create social media posts from blog links with Templated.io** 16 steps · calls a model · Telegram](https://millionrounds.com/workflow/create-social-media-posts-from-blog-links-with-templated-io)
- [**Daily news curation with Gemini and Telegram** 16 steps · calls a model · Notion, RSS](https://millionrounds.com/workflow/daily-news-curation-with-gemini-and-telegram)
