Skip to main content
Community template Uses AIContent CreationMultimodal AI

Transform long videos into viral shorts with AI and schedule to social media using Whisper & Gemini - n8n workflow template

This automation template turns any long video into multiple viral-ready short clips and auto-schedules them to TikTok, Instagram Reels, and YouTube Shorts. It works with both vertical and horizontal inputs and respects the original input resolution (no unnecessary upscaling)…

Template by Juan Carlos Cavero Gracia · Original listing (opens in a new tab)

Starts on
Form submission
Nodes
19 nodes
Level
Advanced
Setup
About 26 min

Workflow preview

How this workflow runs

  1. 1

    Form: Upload Video

    Starts the workflow from a public form submission, capturing the submitted fields.

  2. 2

    Google Gemini Chat Model

    Provides Google Gemini as the chat model for the AI steps.

  3. 3

    FFmpeg: Extract Audio

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

  4. 4

    Wait 10s (Audio)

    Pauses the workflow for a set time or until a condition is met (used for polling / async jobs).

  5. 5

    Check Audio Job Status

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

  6. 6

    Is Audio Job Completed?

    Branches the workflow based on a true/false condition.

  7. 7

    Download Audio

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

  8. 8

    Wait 5s & Retry (Audio)

    Pauses the workflow for a set time or until a condition is met (used for polling / async jobs).

  9. 9

    Whisper: Transcribe with Timestamps

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

  10. 10

    Parse Whisper Results

    Runs custom JavaScript to transform or manipulate the data flowing through the workflow.

Creator's notes and setup

Written by Juan Carlos Cavero Gracia for the original listing.

This automation template turns any long video into multiple viral-ready short clips and auto-schedules them to TikTok, Instagram Reels, and YouTube Shorts. It works with both vertical and horizontal inputs and respects the original input resolution (no unnecessary upscaling), cropping or letterboxing intelligently when needed. The workflow automatically extracts between 3 and 6 clips (based on video length and the most engaging segments) and schedules one short per consecutive day—e.g., 3 clips → the next 3 days, 6 clips → the next 6 days.

Note: This workflow uses OpenAI Whisper for word-level transcription, Google’s Gemini for clip selection and metadata, and Upload-Post’s FFmpeg API for GPU-accelerated cutting/cropping and social scheduling. You can use the same Upload-Post API token for both FFmpeg jobs and publishing uploads. Upload-Post also offers a generous free trial with no credit card required.

Who Is This For?

  • Creators & Editors: Batch-convert long talks/podcasts into daily Shorts/Reels/TikToks.
  • Agencies & Social Teams: Turn webinars/interviews into a reliable short-form stream.
  • Brands & Founders: Maintain a steady posting cadence with minimal hands-on editing.

What Problem Does This Workflow Solve?

Manual clipping is slow and inconsistent. This workflow:

  • Finds Hooks Automatically: AI picks 3–6 high-retention segments from transcript + timestamps (count scales with video length/quality).
  • Cuts Cleanly: Absolute-second FFmpeg timing to avoid mid-word cuts.
  • Vertical & Horizontal Friendly: Handles both orientations and respects source resolution.
  • Schedules for You: Posts one clip per day on consecutive days.

How It Works

  1. Form Upload: Submit your long video.
  2. Audio Extraction: FFmpeg job extracts audio for accurate ASR.
  3. Whisper Transcription: Word-level timestamps enable precise clipping.
  4. AI Clip Mining (Gemini): Detects 3–6 “viral” moments (15–60s) and generates titles/descriptions.
  5. Cut & Crop (FFmpeg): GPU pipeline produces clean clips; preserves input resolution/orientation when possible and crops/pads appropriately for target platforms.
  6. Status & Download: Polls job status and retrieves the final clips.
  7. Auto-Scheduling (Consecutive Days): Schedules one short per day starting tomorrow, for as many days as clips were produced (e.g., 3 clips → 3 days, 6 clips → 6 days) at a configurable time (default 20:00 Europe/Madrid).

Setup

  1. OpenAI (Whisper): Add your OpenAI API credentials.
  2. Google Gemini: Add Gemini credentials used by the AI Agent node.
  3. Upload-Post (free trial no credit card required): Generate your api token https://app.upload-post.com/ connect your social media accounts and add your API token credentials in n8n (same token works for FFmpeg jobs and publishing).
  4. Scheduling: Adjust posting time/intervals and timezone (Europe/Madrid by default).
  5. Metadata Mapping: Titles/descriptions are auto-generated per platform; tweak as needed.

Requirements

  • Accounts: n8n, OpenAI, Google (Gemini), Upload-Post, and social platform connections.
  • API Keys: OpenAI token, Gemini credentials, Upload-Post token.
  • Budget: Whisper + Gemini inference + FFmpeg compute + optional posting costs.

Features

  • Word-Accurate Cuts: Absolute-second timecodes with subtle pre/post-roll.
  • Orientation-Aware: Supports vertical and horizontal inputs; preserves source resolution where possible.
  • Platform-Optimized Output: 9:16-ready delivery with smart crop/pad behavior.
  • Consecutive-Day Scheduler: 3–6 clips → 3–6 consecutive posting days, automatically.
  • Retry & Polling: Built-in waits and status checks for robust processing.
  • Modular: Swap models, adjust clip count/length, or add/remove platforms quickly.

Turn long-form video into a consistent sequence of Shorts/Reels/TikToks—automatically, day after day, while respecting your source resolution.

n8n nodes used (7 types)

What every node does (19)
  • Download Audio (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • FFmpeg: Extract Audio (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Schedule to TikTok, Instagram, and YouTube (Upload Post)Uploads and publishes a post to a social platform.
  • Parse Whisper Results (Code)Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
  • Google Gemini Chat Model (LLM Chat Google Gemini)Provides Google Gemini as the chat model for the AI steps.
  • AI Agent - Select Viral Clips (Agent)The AI agent that orchestrates the workflow — it reasons over the input and decides which tools to call.
  • Whisper: Transcribe with Timestamps (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Wait 5s & Retry (Audio) (Wait)Pauses the workflow for a set time or until a condition is met (used for polling / async jobs).
  • Is Audio Job Completed? (If)Branches the workflow based on a true/false condition.
  • Check Audio Job Status (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Wait 10s (Audio) (Wait)Pauses the workflow for a set time or until a condition is met (used for polling / async jobs).
  • Form: Upload Video (Form Trigger)Starts the workflow from a public form submission, capturing the submitted fields.
  • Wait 5s & Retry (Short) (Wait)Pauses the workflow for a set time or until a condition is met (used for polling / async jobs).
  • Download Short (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Is Short Job Completed? (If)Branches the workflow based on a true/false condition.
  • Check Short Job Status (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Wait 10s (Short) (Wait)Pauses the workflow for a set time or until a condition is met (used for polling / async jobs).
  • Parse Gemini Analysis (Code)Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
  • FFmpeg: Upload & Cut (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

FAQ

Transform long videos into viral shorts with AI and schedule to social media using Whisper & Gemini: questions

How do I import the "Transform long videos into viral shorts with AI and schedule to social media using Whisper & Gemini" workflow into n8n?

Copy the workflow JSON from this page, open the n8n editor, click on an empty canvas and paste with Ctrl+V (Cmd+V on macOS). You can also download the .json file and choose Import from File in the workflow menu. Save the workflow, then attach credentials before activating it.

Which nodes and credentials does "Transform long videos into viral shorts with AI and schedule to social media using Whisper & Gemini" use?

It uses HTTP Request, If, Wait, Code, Agent and Form Trigger, plus 1 more. Any node that connects to an external service needs your own credential — open each node after import and select or create one. Trigger, logic and transformation nodes usually need no credentials.

Can it run on n8n Cloud and on self-hosted n8n?

The workflow format is the same on both. If a node appears as unknown or outdated after import, update n8n to a recent version or, on self-hosted instances, install the required community node package. Features such as $env access are available on self-hosted instances only.

How can I customise "Transform long videos into viral shorts with AI and schedule to social media using Whisper & Gemini"?

Start by changing the trigger (schedule, webhook or app event) and the destination nodes to match your stack — it is listed under Content Creation, Multimodal AI. Edit prompts, field mappings and filters in the relevant nodes, use expressions like {{ $json.field }} to map data, and test with a manual execution before activating.

n8n is a trademark of n8n GmbH. AltFTool is not affiliated with, endorsed by or sponsored by n8n. Community templates are credited to their creators and link to the original listing; AltFTool originals are written and tested by the AltFTool team.

About this page

Free n8n workflow templates to copy and import

The AltFTool n8n library collects free n8n workflow templates for AI agents, Gmail, Google Sheets, Telegram and other apps. Each workflow page shows a preview, the list of nodes and the credentials it needs, and lets you copy or download the JSON to import into your own n8n.

Search the templates by app or task, or browse them by category and by node. The Workflow Inspector checks any workflow JSON for triggers, credentials and hardcoded keys before you share it, and the expressions cheat sheet gives copy-paste n8n expression examples. AltFTool is not affiliated with n8n.

People also search for

  • n8n workflow templates
  • n8n templates
  • n8n automation examples
  • n8n json workflows
  • n8n nodes
  • free n8n workflow templates
  • n8n ai agent template
  • n8n expressions cheat sheet