# AI-powered YouTube shorts automation: Create & publish: n8n workflow

> Started by an incoming Telegram message, and works across Telegram and YouTube. It puts OpenAI behind a retrieval step, so answers are drawn from documents...

Source: https://millionrounds.com/workflow/ai-powered-youtube-shorts-automation-create-and-publish (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-powered YouTube shorts automation: Create & publish

Started by an incoming Telegram message, and works across Telegram and YouTube. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 46 steps, 5 branches, 3 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-powered-youtube-shorts-automation-create-and-publish)

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

**5** Branches: places the flow splits

**3** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 6 Logic 19 Service 20

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

- 1 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 2 **Telegram Trigger** Telegram trigger *Starts it*
- 3 **Structure Model Output** Output Parser Structured *Model*
- 4 **Track Conversation Memory** Memory Buffer Window *Model*
- 5 **Discuss Ideas 💡** Agent *Model*
- 6 **If Message From User** If *Logic*
- 7 **If No Video Idea** If *Logic*
- 8 **Telegram: Conversational Response** Telegram *Service*
- 9 **Telegram: Approve Idea** Telegram *Service*
- 10 **If Idea Approved** If *Logic*
- 11 **Telegram: Processing Started** Telegram *Service*
- 12 **Idea Denied** Set *Logic*
- 13 **Set API Keys** Set *Logic*
- 14 **If All API Keys Set** If *Logic*
- 15 **Input Variables** Set *Logic*
- 16 **Telegram: API Keys Missing** Telegram *Service*
- 17 **Ideator 🧠** Open Ai *Model*
- 18 **Missing API Keys** Stop And Error *Logic*
- 19 **Script** Set *Logic*
- 20 **Convert Script to Audio** Http Request *Service*
- 21 **Chunk Script** Http Request *Service*
- 22 **Upload to Cloudinary** Http Request *Service*
- 23 **Split Out** Split Out *Logic*
- 24 **Merge Videos and Audio** Merge *Logic*
- 25 **Image Prompter 📷** Open Ai *Model*
- 26 **Generate Render JSON** Http Request *Service*
- 27 **Aggregate Prompts** Aggregate *Logic*
- 28 **Request Images** Http Request *Service*
- 29 **Set JSON Variable** Set *Logic*
- 30 **Merge Video Variables** Merge *Logic*
- 31 **Generating Images** Wait *Logic*
- 32 **Send to Creatomate** Http Request *Service*
- 33 **Telegram: Approve Final Video** Telegram *Service*
- 34 **Get Images** Http Request *Service*
- 35 **Generating Final Video** Wait *Logic*
- 36 **If Final Video Approved** If *Logic*
- 37 **Request Videos** Http Request *Service*
- 38 **Get Final Video** Http Request *Service*
- 39 **Convert Video to Base64** Http Request *Service*
- 40 **Telegram: Video Declined** Telegram *Service*
- 41 **Generating Videos** Wait *Logic*
- 42 **Decode Base64 to File** Convert To File *Service*
- 43 **Get Videos** Http Request *Service*
- 44 **Upload to YouTube** You Tube *Service*
- 45 **Aggregate Videos** Aggregate *Logic*
- 46 **Telegram: Video Uploaded** Telegram *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 46, with 5 branches, 3 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Telegram, YouTube
- **Model:** OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Telegram 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 an incoming Telegram message.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 46 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 46 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-powered-youtube-shorts-automation-create-and-publish)
- **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 Agents Generate Content & Automate Posting** 46 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/ai-agents-generate-content-and-automate-posting-5)
- [**AI Agents Generate Content & Automate Posting** 46 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/ai-agents-generate-content-and-automate-posting-3)
- [**AI Agents Generate Content & Automate Posting** 46 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/ai-agents-generate-content-and-automate-posting)
- [**AI Agents Generate Content & Automate Posting** 46 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/ai-agents-generate-content-and-automate-posting-4)
- [**AI Agents Generate Content & Automate Posting** 46 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/ai-agents-generate-content-and-automate-posting-2)
- [**AI Agents Generate Social Media Content Automation** 46 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/ai-agents-generate-social-media-content-automation)
