Templates / Extract viral-worthy clips from YouTube videos with Gemini AI & FFmpeg editing

Extract viral-worthy clips from YouTube videos with Gemini AI & FFmpeg editing

Ready for 3.0

by Habeeb Mohammed ✓ · 5,936 views · created 2025-12-07 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 37 nodes and runs when someone submits an n8n form (“Clipping”) (plus 2 other triggers). Along the way it connects Gmail and Google Gemini.

How it runs

Trigger: When someone submits an n8n form (“Clipping”) (plus 2 other triggers).

  1. video download with yt-dlp (Execute Command): runs a shell command on the n8n host
  2. get transcript from yt-dlp (Execute Command): runs a shell command on the n8n host
  3. Split Out: splits a list into separate items
  4. get the downloaded video location (Code): runs custom JavaScript code
  5. extract filepath (Code): runs custom JavaScript code
  6. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  7. wait for both branches to complete and merge (Merge): merges the data from its input branches
  8. read srt from disk (Read/Write Files from Disk): reads a file from disk
  9. If: checks a condition and branches into true / false
  10. seperate actionable data items (Code): runs custom JavaScript code

…plus 24 more steps. See the full node list below.

Services it uses

GmailGoogle Gemini

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (18)

From the author

Who's it for This workflow transforms hours of manual video editing into an automated AI-powered pipeline. Perfect for anyone looking to repurpose long-form content into viral short-form clips. Ideal users include: - Content Creators - YouTubers producing…

Excerpt from Habeeb Mohammed's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.