# Generate a YouTube bedtime story with OpenAI: n8n workflow

> Started by a clock, and works across Google Cloud Storage, Google Sheets, Telegram and YouTube.

Source: https://millionrounds.com/workflow/generate-a-youtube-bedtime-story-with-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Generate a YouTube bedtime story with OpenAI

Started by a clock, and works across Google Cloud Storage, Google Sheets, Telegram and YouTube. 41 steps, 3 loops or waits: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-a-youtube-bedtime-story-with-openai)

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

**0** Branches: places the flow splits

**3** Loops or waits

**4** Services it connects to

## The flow

Starts it 1 Logic 20 Service 20

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

- 1 **Schedule Trigger1** Schedule trigger *Starts it*
- 2 **Grab Video from GS** Google Sheets *Service*
- 3 **Grab Animal** Code *Logic*
- 4 **Download Video** Http Request *Service*
- 5 **Generate Voice Over** Http Request *Service*
- 6 **YouTube Seos Kanaal** You Tube *Service*
- 7 **Clean Voice Over** Code *Logic*
- 8 **Upgrade Progress on GS** Google Sheets *Service*
- 9 **Prepare OpenAI TTS** Set *Logic*
- 10 **Send message with Telegram** Telegram *Service*
- 11 **OPENai TTS** Http Request *Service*
- 12 **Wait 5 sec** Wait *Logic*
- 13 **Save Audio GSC** Google Cloud Storage *Service*
- 14 **Map Public Link** Set *Logic*
- 15 **Download Audio from GSC** Http Request *Service*
- 16 **Transcribe with OpenAI Whisper** Http Request *Service*
- 17 **Create a list of Image Text1** Code *Logic*
- 18 **Split Out1** Split Out *Logic*
- 19 **Combine Image Style and Elements** Code *Logic*
- 20 **Split Out - Image prompts** Split Out *Logic*
- 21 **Make Image Prompts Gemini** Http Request *Service*
- 22 **Clean Image prompts** Code *Logic*
- 23 **Get image Base** Http Request *Service*
- 24 **Convert to File** Convert To File *Service*
- 25 **Wait 6 sec** Wait *Logic*
- 26 **Save images to GC** Google Cloud Storage *Service*
- 27 **Limit** Limit *Logic*
- 28 **Image Link** Set *Logic*
- 29 **Combine Transcript1** Code *Logic*
- 30 **Get Random BG music** Google Cloud Storage *Service*
- 31 **Pick Random song From GSC** Code *Logic*
- 32 **Map Music** Set *Logic*
- 33 **Generate Json to Video** Code *Logic*
- 34 **Create Video** Http Request *Service*
- 35 **Wait 6 min for Rendering** Wait *Logic*
- 36 **Get Video Progress** Http Request *Service*
- 37 **Set Correct Video Url** Set *Logic*
- 38 **Clean Transcript** Code *Logic*
- 39 **Generate Transcript With AI** Http Request *Service*
- 40 **Generate Title with AI** Http Request *Service*
- 41 **Append GS** Google Sheets *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 41, 3 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Cloud Storage, Google Sheets, Telegram, YouTube
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Google Cloud Storage, Google Sheets, Telegram and YouTube accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 41 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 41 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%2Fgenerate-a-youtube-bedtime-story-with-openai)
- **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 Cloud Storage](https://millionrounds.com/workflows?service=Google+Cloud+Storage#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)[YouTube](https://millionrounds.com/workflows?service=YouTube#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Send scheduled financial digests to Telegram from Notion** 41 steps · Notion, Telegram](https://millionrounds.com/workflow/send-scheduled-financial-digests-to-telegram-from-notion)
- [**Get Gmail alerts for dropped top 10 keyword rankings** 43 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/get-gmail-alerts-for-dropped-top-10-keyword-rankings)
- [**Synchronize Slack status updates with Pinecone** 39 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/synchronize-slack-status-updates-with-pinecone)
- [**AI-powered Facebook comment management: Auto-reply, delete, ban** 44 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/ai-powered-facebook-comment-management-auto-reply-delete-ban)
- [**Automated range trading with Uniswap V3 and Telegram** 37 steps · Telegram](https://millionrounds.com/workflow/automated-range-trading-with-uniswap-v3-and-telegram)
- [**Telegram giveaways among channel subscribers with Postgres** 37 steps · Postgres, Telegram](https://millionrounds.com/workflow/telegram-giveaways-among-channel-subscribers-with-postgres)
