# Generate cinematic videos from text prompts with OpenAI: n8n workflow

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

Source: https://millionrounds.com/workflow/generate-cinematic-videos-from-text-prompts-with-openai (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)

# Generate cinematic videos from text prompts with OpenAI

Started by an event in a connected app, and works across Google Sheets and YouTube. It hands the judgement calls to OpenAI. 34 steps, 4 branches, 5 loops or waits: 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%2Fgenerate-cinematic-videos-from-text-prompts-with-openai)

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

**4** Branches: places the flow splits

**5** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 9 Logic 12 Service 12

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

- 1 **Structured Output Parser** Output Parser Structured *Model*
- 2 **Structured Output Parser1** Output Parser Structured *Model*
- 3 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 4 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 5 **Structured Output Parser2** Output Parser Structured *Model*
- 6 **OpenAI Chat Model2** Lm Chat Open Ai *Model*
- 7 **When clicking ‘Execute workflow’** Manual trigger *Starts it*
- 8 **Generate Full Narrative from Prompt** Agent *Model*
- 9 **Break Narrative into {{n}} Scenes** Agent *Model*
- 10 **Describe Each Scene for Video** Agent *Model*
- 11 **Get Data** Google Sheets *Service*
- 12 **Verify number of scene** Code *Logic*
- 13 **Call Fal.ai API (Seedance)** Http Request *Service*
- 14 **Scene count** If *Logic*
- 15 **Loop Over Items** Split In Batches *Logic*
- 16 **Split Out** Split Out *Logic*
- 17 **Start adding audio to the video** Http Request *Service*
- 18 **Wait for the video** Wait *Logic*
- 19 **Loop Over Items1** Split In Batches *Logic*
- 20 **Get the video status** Http Request *Service*
- 21 **Aggregate videos with audio** Aggregate *Logic*
- 22 **Wait for adding the audio** Wait *Logic*
- 23 **Video status** Switch *Logic*
- 24 **Start merging videos** Http Request *Service*
- 25 **Get audio status** Http Request *Service*
- 26 **Get the video** Http Request *Service*
- 27 **Wait for the merge to complete** Wait *Logic*
- 28 **Audio status** Switch *Logic*
- 29 **Get merge videos status** Http Request *Service*
- 30 **Get video with audio** Http Request *Service*
- 31 **Merge videos status** Switch *Logic*
- 32 **Get merged video** Http Request *Service*
- 33 **Get the video1** Http Request *Service*
- 34 **YouTube** You Tube *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 34, with 4 branches, 5 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, YouTube
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own 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 an event in a connected app.

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 34 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 34 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-cinematic-videos-from-text-prompts-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 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.

- [**Automate news publishing to LinkedIn with Gemini and RSS** 34 steps · calls a model · Google Sheets, LinkedIn](https://millionrounds.com/workflow/automate-news-publishing-to-linkedin-with-gemini-and-rss)
- [**Automated SEO blog publishing with WordPress and OpenAI** 34 steps · calls a model · Google Sheets, WordPress](https://millionrounds.com/workflow/automated-seo-blog-publishing-with-wordpress-and-openai)
- [**Automated faceless YouTube video generator with OpenAI** 34 steps · calls a model · Telegram, YouTube](https://millionrounds.com/workflow/automated-faceless-youtube-video-generator-with-openai)
- [**Generate and publish SEO blog posts from Google Sheets to Webflow** 34 steps · calls a model · Discord, Google Sheets](https://millionrounds.com/workflow/generate-and-publish-seo-blog-posts-from-google-sheets-to-we)
- [**Turn long videos into social shorts with RenderIO and OpenAI** 34 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/turn-long-videos-into-social-shorts-with-renderio-and-openai)
- [**Viral video creator: Fal.AI AI videos TikTok, YouTube** 34 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/viral-video-creator-fal-ai-ai-videos-tiktok-youtube)
