# Create and publish viral video clips with Reap and OpenAI: n8n workflow

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

Source: https://millionrounds.com/workflow/create-and-publish-viral-video-clips-with-reap-and-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)

# Create and publish viral video clips with Reap and OpenAI

Started by an event in a connected app, and works across YouTube. It hands the judgement calls to OpenAI. 36 steps, 7 branches, 4 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%2Fcreate-and-publish-viral-video-clips-with-reap-and-openai)

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

**7** Branches: places the flow splits

**4** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 1 Logic 21 Service 13

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

- 1 **When clicking ‘Execute workflow’** Manual trigger *Starts it*
- 2 **Content Input** Set *Logic*
- 3 **Video Settings** Set *Logic*
- 4 **Validate Input** Code *Logic*
- 5 **Reap - Create Clip Project** Http Request *Service*
- 6 **Reap - Wait Before Status Check** Wait *Logic*
- 7 **Reap - Check Project Status** Http Request *Service*
- 8 **Reap - Project Completed?** If *Logic*
- 9 **Reap - Fetch Generated Clips** Http Request *Service*
- 10 **Reap - Select Best Clip** Code *Logic*
- 11 **Social Content Settings** Set *Logic*
- 12 **AI - Generate Platform Content** Open Ai *Model*
- 13 **Parse AI Content** Code *Logic*
- 14 **Validate Platform Content** Code *Logic*
- 15 **Publishing Settings** Set *Logic*
- 16 **Validate Publishing Settings** Code *Logic*
- 17 **Publish to Instagram?** If *Logic*
- 18 **Publish to YouTube?** If *Logic*
- 19 **Publish to TikTok?** If *Logic*
- 20 **Instagram - Create Reel Container** Http Request *Service*
- 21 **Download Final Video** Http Request *Service*
- 22 **Zernio - Create Upload URL** Http Request *Service*
- 23 **TikTok - Download Video** Http Request *Service*
- 24 **Wait1** Wait *Logic*
- 25 **YouTube - Upload Short** You Tube *Service*
- 26 **Zernio - Merge Upload Data** Merge *Logic*
- 27 **Instagram - Check Reel Status** Http Request *Service*
- 28 **Zernio - Upload Video** Http Request *Service*
- 29 **Instagram - Reel Ready?** If *Logic*
- 30 **Zernio - Create TikTok Post** Http Request *Service*
- 31 **Instagram - Publish Reel** Http Request *Service*
- 32 **Zernio - TikTok Capacity Error?** If *Logic*
- 33 **Zernio - Wait Before Retry** Wait *Logic*
- 34 **Zernio - Retry TikTok Post** Http Request *Service*
- 35 **Zernio - Retry Again?** If *Logic*
- 36 **Zernio - Wait Before Next Retry** Wait *Logic*

## How it's built

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

## Questions

What does it need to run?

An n8n account, plus your own YouTube account, 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 36 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 36 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-viral-video-clips-with-reap-and-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.

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

## Workflows like it

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

- [**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 cinematic videos from text prompts with OpenAI** 34 steps · calls a model · Google Sheets, YouTube](https://millionrounds.com/workflow/generate-cinematic-videos-from-text-prompts-with-openai)
- [**Create & publish inspirational videos with Google Drive** 34 steps · Google Drive, Google Sheets](https://millionrounds.com/workflow/create-and-publish-inspirational-videos-with-google-drive)
- [**AI storyteller & video creator with OpenAI and Supabase** 39 steps · calls a model · Supabase, Telegram](https://millionrounds.com/workflow/ai-storyteller-and-video-creator-with-openai-and-supabase)
- [**Hacker News to video content with OpenAI and Dropbox** 39 steps · calls a model · Dropbox, Google Drive](https://millionrounds.com/workflow/hacker-news-to-video-content-with-openai-and-dropbox)
- [**Create viral baby podcast YT shorts with OpenAI and Hedra** 32 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/create-viral-baby-podcast-yt-shorts-with-openai-and-hedra)
