Paste any video URL in chat — YouTube, podcast, webinar, anything — and this n8n workflow automatically finds the best short clips using WayinVideo AI, adds captions, reframes to 9:16 vertical format, and uploads everything directly to your Google Drive. No editing software, no manual work. Just paste and done.
Built for content creators, marketers, and agencies who want to repurpose long-form video into viral short clips on autopilot.
This automation handles your complete video-to-clips pipeline:
Tools You'll Need:
Estimated Setup Time: 10–15 minutes
WayinVideo is the AI engine that generates short clips from your videos.
YOUR_WAYINVIDEO_API_KEY with your actual token (in the Authorization header)⚠️ The API key appears in two places — Submit node and Poll node. Replace both!
YOUR_GOOGLE_DRIVE_FOLDER_ID with your actual folder IDHow to find your Google Drive Folder ID:
drive.google.com/drive/folders/THIS_IS_YOUR_FOLDER_IDThis workflow is triggered when a user sends a video URL in the n8n chat interface.
$json.chatInput — this is the video URL the user pastesOpen the "🎬 Submit Video to WayinVideo API" node to customise:
| Parameter | Default Value | What It Does |
|---|---|---|
target_duration |
DURATION_30_60 |
Clip length (30–60 seconds) |
limit |
3 |
Number of clips to generate |
resolution |
HD_720 |
Video quality (720p) |
ratio |
RATIO_9_16 |
Vertical format (for Reels/Shorts) |
enable_caption |
true |
Auto-captions on/off |
caption_display |
original |
Caption language/style |
cc_style_tpl |
temp-7 |
Caption design template |
enable_ai_reframe |
true |
Auto-reframe to vertical |
To change clip length options:
DURATION_15_30 → 15 to 30 second clipsDURATION_30_60 → 30 to 60 second clips (default)DURATION_60_90 → 60 to 90 second clipsTo change ratio:
RATIO_9_16 → Vertical (TikTok, Reels, Shorts)RATIO_16_9 → Horizontal (YouTube, LinkedIn)RATIO_1_1 → Square (Instagram feed)To change resolution:
HD_720 → 720p (faster processing)FULL_HD_1080 → 1080p (higher quality)User pastes a video URL in the n8n chat. The URL is captured as $json.chatInput and passed to the next node.
The workflow sends a POST request to the WayinVideo API (/api/v2/clips) with:
Podcast Clips - 2025-01-15)The API returns a Job ID which is used to track processing status.
The workflow pauses for 30 seconds to give WayinVideo time to start processing. This avoids hitting the API too early with an empty response.
Using the Job ID from Step 2, the workflow calls:
GET /api/v2/clips/results/{job_id}
to check if clips are ready.
The IF node checks if the clips array in the response is non-empty:
This smart retry loop runs automatically every 30 seconds until your clips are done. No manual retries needed.
The Code node loops through all generated clips and extracts:
title — AI-generated clip titleexport_link — Direct download URL for the clipscore — AI virality/engagement scoretags — Topic tags for the clipdesc — Short clip descriptionbegin_ms / end_ms — Timestamp of the clip in the original videoEach clip becomes a separate item for parallel processing.
For each clip, the workflow downloads the video file from the export_link URL. The file is stored as binary data (responseFormat: file) ready for upload.
Each downloaded clip is uploaded to your specified Google Drive folder. The file is named using the clip's AI-generated title automatically.
✅ Zero manual editing — AI handles clip selection, captions, and reframing
✅ Smart polling loop — Auto-retries every 30s, no timeout issues
✅ Batch processing — Handles multiple clips from one video in one run
✅ AI virality scoring — Each clip comes with an engagement score
✅ Auto-named files — Clips saved with meaningful AI-generated titles
✅ Flexible formats — Supports 9:16, 16:9, and 1:1 ratios
✅ Caption support — Multiple caption style templates available
✅ Google Drive ready — Organised storage with zero manual uploads
Generate more clips per video:
Change limit from 3 to 5 or 10 in the Submit node.
Sort clips by score before uploading:
Add a Sort node after "Extract Clip Details" and sort by score descending — this ensures your best clips are uploaded first.
Save clip metadata to Google Sheets:
Add a Google Sheets node after "Extract Clip Details" to log the title, score, tags, and timestamp of each clip for tracking.
Add a response message back to chat:
Add a "Respond to Webhook" node at the end to send a confirmation message like: "✅ 3 clips have been uploaded to your Google Drive!"
Process multiple videos in batch:
Modify the chat trigger to accept comma-separated URLs and add a Split node to process each video sequentially.
Clips not generating / API returns empty:
Workflow stuck in polling loop:
Google Drive upload failing:
Video URL not accepted:
https://www.youtube.com/watch?v=...Clips uploading with wrong names:
clip.title in the Extract nodeNeed help setting this up or want a custom version for your use case?
📧 Email: [email protected]
🌐 Website: https://isawow.com