# Create and publish AI videos with Sora 2 Cameos and Gemini: n8n workflow

> Started by a clock, and works across Apify and Google Sheets. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/create-and-publish-ai-videos-with-sora-2-cameos-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 and publish AI videos with Sora 2 Cameos and Gemini

Started by a clock, and works across Apify and Google Sheets. It hands the judgement calls to Gemini. 24 steps, 1 branch, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fcreate-and-publish-ai-videos-with-sora-2-cameos-and-gemini)

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

**1** Branch: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 2 Model 5 Logic 6 Service 11

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

- 1 **Daily Content Scheduler** Schedule trigger *Starts it*
- 2 **Video Processing Scheduler** Schedule trigger *Starts it*
- 3 **Reasoning Engine** Tool Think *Model*
- 4 **Gemini LLM** Lm Chat Google Gemini *Model*
- 5 **Fetch Viral Content Dataset** Apify *Service*
- 6 **Load Viral Content** Google Sheets *Service*
- 7 **AI Script & Prompt Agent** Agent *Model*
- 8 **Parse Script Output** Output Parser Structured *Model*
- 9 **Normalize Content Fields** Set *Logic*
- 10 **Analyze Viral Idea** Google Gemini *Model*
- 11 **Split Video Prompt** Split Out *Logic*
- 12 **Save Viral Content to Sheet** Google Sheets *Service*
- 13 **Generate Sora Video** Http Request *Service*
- 14 **Wait for Render** Wait *Logic*
- 15 **Get Video** Http Request *Service*
- 16 **Render Status Check1** Switch *Logic*
- 17 **Aggregate Video Parts** Aggregate *Logic*
- 18 **Prepare Video Metadata** Code *Logic*
- 19 **Merge Video Clips** Http Request *Service*
- 20 **Publish to Facebook** Blotato *Service*
- 21 **Publish to TikTok** Blotato *Service*
- 22 **Publish to Instagram** Blotato *Service*
- 23 **Update Success Status** Google Sheets *Service*
- 24 **Update Error Status** Google Sheets *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 24, with 1 branch, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Apify, Google Sheets
- **Model:** Gemini

## Questions

What does it need to run?

An n8n account, plus your own Apify and Google Sheets accounts, and a key for Gemini. 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. 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-and-publish-ai-videos-with-sora-2-cameos-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.

[Apify](https://millionrounds.com/workflows?service=Apify#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

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

- [**AI content creation and auto WordPress publishing** 24 steps · calls a model · Google Sheets, WordPress](https://millionrounds.com/workflow/ai-content-creation-and-auto-wordpress-publishing)
- [**Auto-generate Instagram carousels with OpenAI** 24 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/auto-generate-instagram-carousels-with-openai)
- [**Automated LinkedIn post generator with Gemini** 24 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automated-linkedin-post-generator-with-gemini)
- [**Automated Thai content creation & publishing with Ollama** 24 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/automated-thai-content-creation-and-publishing-with-ollama)
- [**Create daily AI news LinkedIn posts with OpenAI and NewsAPI** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/create-daily-ai-news-linkedin-posts-with-openai-and-newsapi)
- [**Generate & publish SEO articles with Claude and Webflow** 24 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/generate-and-publish-seo-articles-with-claude-and-webflow)
