🎬 Generate YouTube shorts using WayinVideo AI and upload clips to Google Drive

⚑ 852 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

Description

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.


What This Workflow Does

This automation handles your complete video-to-clips pipeline:


Setup Requirements

Tools You’ll Need:

Estimated Setup Time: 10–15 minutes


Step-by-Step Setup

1. Get Your WayinVideo API Key

WayinVideo is the AI engine that generates short clips from your videos.

  1. Go to WayinVideo and create a free/paid account
  2. Navigate to Dashboard β†’ API section
  3. Copy your Bearer API token
  4. Open the β€πŸŽ¬ Submit Video to WayinVideo API” node in n8n
  5. Replace YOUR_WAYINVIDEO_API_KEY with your actual token (in the Authorization header)
  6. Do the same in the β€πŸ”„ Poll for Clip Results” node β€” replace the same placeholder there too

> ⚠️ The API key appears in two places β€” Submit node and Poll node. Replace both!


2. Connect Google Drive

  1. In n8n: Go to Credentials β†’ Add Credential β†’ Google Drive OAuth2 API
  2. Complete the Google OAuth authentication
  3. Open the β€œβ˜οΈ Upload Clip to Google Drive” node
  4. Select your Google Drive credential
  5. Replace YOUR_GOOGLE_DRIVE_FOLDER_ID with your actual folder ID

How to find your Google Drive Folder ID:


3. Configure the Chat Trigger

This workflow is triggered when a user sends a video URL in the n8n chat interface.


4. Customise Clip Settings (Optional)

Open the β€πŸŽ¬ Submit Video to WayinVideo API” node to customise:

ParameterDefault ValueWhat It Does
target_durationDURATION_30_60Clip length (30–60 seconds)
limit3Number of clips to generate
resolutionHD_720Video quality (720p)
ratioRATIO_9_16Vertical format (for Reels/Shorts)
enable_captiontrueAuto-captions on/off
caption_displayoriginalCaption language/style
cc_style_tpltemp-7Caption design template
enable_ai_reframetrueAuto-reframe to vertical

To change clip length options:

To change ratio:

To change resolution:


5. Test & Activate

  1. Open n8n and go to this workflow
  2. Click β€œChat” button to open the chat interface
  3. Paste any YouTube video URL and press send
  4. Watch the workflow run step by step in the execution view
  5. Check your Google Drive folder β€” clips should appear within 1–5 minutes
  6. Once confirmed, toggle the workflow Active at the top βœ…

How It Works (Step by Step)

Step 1 β€” Chat Trigger

User pastes a video URL in the n8n chat. The URL is captured as $json.chatInput and passed to the next node.

Step 2 β€” Submit Video to WayinVideo API

The workflow sends a POST request to the WayinVideo API (/api/v2/clips) with:

The API returns a Job ID which is used to track processing status.

Step 3 β€” Wait 30 Seconds

The workflow pauses for 30 seconds to give WayinVideo time to start processing. This avoids hitting the API too early with an empty response.

Step 4 β€” Poll for Clip Results

Using the Job ID from Step 2, the workflow calls:

GET /api/v2/clips/results/{job_id}

to check if clips are ready.

Step 5 β€” Clips Ready? (Smart Loop)

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.

Step 6 β€” Extract Clip Details

The Code node loops through all generated clips and extracts:

Each clip becomes a separate item for parallel processing.

Step 7 β€” Download Clip File

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.

Step 8 β€” Upload to Google Drive

Each downloaded clip is uploaded to your specified Google Drive folder. The file is named using the clip’s AI-generated title automatically.


Key Features

βœ… 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


Customisation Options

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.


Troubleshooting

Clips not generating / API returns empty:

Workflow stuck in polling loop:

Google Drive upload failing:

Video URL not accepted:

Clips uploading with wrong names:


Support

Need help setting this up or want a custom version for your use case?

πŸ“§ Email: info@isawow.com
🌐 Website: https://isawow.com

πŸ”— Nodes Used

HTTP Request, Google Drive

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup