# Long videos into viral shorts with Whisper and Gemini: n8n workflow

> Started by someone submitting a form. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/long-videos-into-viral-shorts-with-whisper-and-gemini (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Scheduling](https://millionrounds.com/workflows?category=Scheduling#library)

# Long videos into viral shorts with Whisper and Gemini

Started by someone submitting a form. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to Gemini. 19 steps, 2 branches, 4 loops or waits: a working afternoon to understand properly.

Medium Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Flong-videos-into-viral-shorts-with-whisper-and-gemini)

**19 steps** Medium: a working afternoon

**2** Branches: places the flow splits

**4** Loops or waits

**0** Services by connector: it calls them over plain HTTP

## The flow

Starts it 1 Model 2 Logic 8 Service 8

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

- 1 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 2 **Form: Upload Video** Form trigger *Starts it*
- 3 **AI Agent - Select Viral Clips** Agent *Model*
- 4 **FFmpeg: Extract Audio** Http Request *Service*
- 5 **Parse Gemini Analysis** Code *Logic*
- 6 **Wait 10s (Audio)** Wait *Logic*
- 7 **FFmpeg: Upload & Cut** Http Request *Service*
- 8 **Check Audio Job Status** Http Request *Service*
- 9 **Wait 10s (Short)** Wait *Logic*
- 10 **Is Audio Job Completed?** If *Logic*
- 11 **Check Short Job Status** Http Request *Service*
- 12 **Download Audio** Http Request *Service*
- 13 **Wait 5s & Retry (Audio)** Wait *Logic*
- 14 **Is Short Job Completed?** If *Logic*
- 15 **Whisper: Transcribe with Timestamps** Http Request *Service*
- 16 **Download Short** Http Request *Service*
- 17 **Wait 5s & Retry (Short)** Wait *Logic*
- 18 **Parse Whisper Results** Code *Logic*
- 19 **Schedule to TikTok, Instagram, and YouTube** Upload Post *Service*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 19, with 2 branches, 4 loops or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Nothing by connector; it calls services over plain HTTP
- **Model:** Gemini

## Questions

What does it need to run?

An n8n account, and a key for Gemini. 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. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 19 steps is enough that you should read each one before running it.

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 19 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%2Flong-videos-into-viral-shorts-with-whisper-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.

## Workflows like it

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

- [**AI Calling Agent with Retell AI and Google Calendar Scheduling** 19 steps · calls a model · Google Calendar, Google Sheets](https://millionrounds.com/workflow/ai-calling-agent-with-retell-ai-and-google-calendar-scheduli)
- [**Actioning your meeting next steps with OpenAI** 19 steps · calls a model · Google Calendar, Google Drive](https://millionrounds.com/workflow/actioning-your-meeting-next-steps-with-openai)
- [**Automate email triage & meeting scheduling with Gmail** 19 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/automate-email-triage-and-meeting-scheduling-with-gmail)
- [**Automate meeting summaries & action items with Google Meet** 19 steps · calls a model · Google Calendar, Google Drive](https://millionrounds.com/workflow/automate-meeting-summaries-and-action-items-with-google-meet)
- [**Generate and schedule social media posts with OpenAI** 19 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/generate-and-schedule-social-media-posts-with-openai-2)
- [**Handle meeting no-shows with Gmail and Google Calendar** 19 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/handle-meeting-no-shows-with-gmail-and-google-calendar)
