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

⚡ 14,215 views · 🎬 Content Creation & Video

💡 Pro Tip — Since TikTok doesn’t have a public API, getting data usually means fragile HTTP scraping. ScraperNode is a community node that gives you clean JSON for TikTok profiles, videos, and comments — drop it into your workflow and skip the parsing.

View All Scrapers

Description

image.png

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?

What Problem Does This Workflow Solve?

Manual clipping is slow and inconsistent. This workflow:

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

Features

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

đź”— Nodes Used

HTTP Request, AI Agent, n8n Form Trigger, Google Gemini Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup