# Create viral storytelling videos with OpenAI and Gemini: n8n workflow

> Started by someone submitting a form, and works across NocoDB. It hands the judgement calls to Gemini and OpenAI.

Source: https://millionrounds.com/workflow/create-viral-storytelling-videos-with-openai-and-gemini (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)

# Create viral storytelling videos with OpenAI and Gemini

Started by someone submitting a form, and works across NocoDB. It hands the judgement calls to Gemini and OpenAI. 24 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fcreate-viral-storytelling-videos-with-openai-and-gemini)

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

**2** Branches: places the flow splits

**1** Loop or waits

**1** Service it connects to

## The flow

Starts it 1 Model 3 Logic 9 Service 11

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

- 1 **On form submission** Form trigger *Starts it*
- 2 **Generate content and Image Prompt** Open Ai *Model*
- 3 **Get List of background Audio** Http Request *Service*
- 4 **Download Watermark** Http Request *Service*
- 5 **Split Image Prompts** Split Out *Logic*
- 6 **Generate audio** Open Ai *Model*
- 7 **Download MP3** Http Request *Service*
- 8 **Upload logo** Http Request *Service*
- 9 **Generate an image** Google Gemini *Model*
- 10 **calculate audio duration** Code *Logic*
- 11 **Upload Background Music** Http Request *Service*
- 12 **Merge all uploads** Merge *Logic*
- 13 **Upload Background Images** Http Request *Service*
- 14 **Upload Voice Audio** Http Request *Service*
- 15 **Aggregate** Aggregate *Logic*
- 16 **Background Image Urls** Aggregate *Logic*
- 17 **Create JsonCut Job** Http Request *Service*
- 18 **Wait** Wait *Logic*
- 19 **Check JsonCut job Status** Http Request *Service*
- 20 **If Success** If *Logic*
- 21 **Download Image** Http Request *Service*
- 22 **If Error** If *Logic*
- 23 **Save Video in NocoDB** Noco Db *Service*
- 24 **Error Stop** Stop And Error *Logic*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 24, with 2 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** NocoDB
- **Model:** Gemini, OpenAI

## Questions

What does it need to run?

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

What starts it?

It starts on someone submitting a form.

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?

Take your time. At 24 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 24 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%2Fcreate-viral-storytelling-videos-with-openai-and-gemini)
- **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.

[NocoDB](https://millionrounds.com/workflows?service=NocoDB#library)

## Workflows like it

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

- [**Auto-Generate & Approve Social Media Posts from RSS Feeds** 22 steps · calls a model · LinkedIn, NocoDB](https://millionrounds.com/workflow/auto-generate-and-approve-social-media-posts-from-rss-feeds)
- [**Comprehensive SEO keyword research with OpenAI and DataForSEO** 26 steps · calls a model · NocoDB, Slack](https://millionrounds.com/workflow/comprehensive-seo-keyword-research-with-openai-and-dataforse)
- [**Analyze LinkedIn content performance with OpenAI** 20 steps · calls a model · NocoDB](https://millionrounds.com/workflow/analyze-linkedin-content-performance-with-openai)
- [**Aggregate news articles from NewsAPI, Mediastack & CurrentsAPI** 29 steps · NocoDB](https://millionrounds.com/workflow/aggregate-news-articles-from-newsapi-mediastack-and-currents)
- [**Scrape and summarize posts of a news site without RSS feed** 18 steps · calls a model · NocoDB](https://millionrounds.com/workflow/scrape-and-summarize-posts-of-a-news-site-without-rss-feed)
- [**Curate and score RSS articles with NocoDB and Gemini** 8 steps · calls a model · NocoDB](https://millionrounds.com/workflow/curate-and-score-rss-articles-with-nocodb-and-gemini)
