Back to Templates

Repurpose influencer videos into short clips using WayinVideo AI and Google Drive

Created by

Created by: Incrementors || incrementors
Incrementors

Last update

Last update 4 hours ago

Share


Paste any long influencer or YouTube video URL into the form, and this workflow does everything else. It sends the video to WayinVideo AI, which automatically finds the most engaging short clips. Each clip is then downloaded and saved directly to your Google Drive folder — ready to post on TikTok, Instagram Reels, or YouTube Shorts. Built for content agencies, social media managers, and creators who want to repurpose long videos at scale without editing manually.


What This Workflow Does

  • AI clip extraction — Sends any video URL to WayinVideo, which identifies and generates the top viral short clips using AI scoring and engagement signals
  • Auto-polling with retry — Waits 45 seconds, then checks if clips are ready. If still processing, it loops back automatically until results arrive
  • Batch clip processing — Extracts every clip from the results — including title, score, tags, description, and timestamps — and processes each one separately
  • Automatic file download — Downloads each clip video file directly from the WayinVideo export link, no manual clicking required
  • Google Drive upload — Saves every downloaded clip to your specified Google Drive folder, named using the clip's AI-generated title
  • Form-based input — A simple web form lets anyone on your team submit jobs — no n8n knowledge needed

Setup Requirements

Tools you'll need:

  • Active n8n instance (self-hosted or n8n Cloud)
  • WayinVideo account + API key
  • Google account connected to n8n via OAuth2

Estimated Setup Time: 10–15 minutes


Step-by-Step Setup

  1. Get your WayinVideo API key
    Log in at WayinVideo, go to your account settings or developer section, and copy your API key.

  2. Paste the API key into node "2. WayinVideo — Submit Clipping Task"
    Open this node, find the Authorization header, and replace YOUR_WAYINVIDEO_API_KEY with your actual key.

  3. Paste the API key into node "4. WayinVideo — Poll Clips Result"
    Open this node, find the same Authorization header, and replace YOUR_WAYINVIDEO_API_KEY again.

    ⚠️ This key appears in 2 nodes — you must replace it in both "2. WayinVideo — Submit Clipping Task" and "4. WayinVideo — Poll Clips Result" or the workflow will fail.

  4. Connect your Google account
    Open node "8. Google Drive — Upload Clip". Click the credential field and connect your Google account via OAuth2. Follow the on-screen prompts to authorise n8n.

  5. Set your Google Drive folder ID
    In node "8. Google Drive — Upload Clip", find the folderId field. Replace YOUR_GOOGLE_DRIVE_FOLDER_ID with your actual folder ID. To find it: open your target Google Drive folder in a browser — the folder ID is the string of letters and numbers at the end of the URL after /folders/.

  6. Activate the workflow
    Toggle the workflow to Active. Open the form URL generated by node "1. Form — Video URL + Brand + Clip Count" and submit a test video to confirm everything works end to end.


How It Works (Step by Step)

Step 1 — Form Trigger (Web Form)
The workflow starts when someone fills out the web form. They enter three things: the influencer video URL, the brand or creator name, and how many clips to generate. This form is hosted by n8n and can be shared with anyone on your team.

Step 2 — Submit to WayinVideo AI
The video URL and settings are sent to the WayinVideo API. The request includes clip duration (30–60 seconds), HD 720p resolution, 9:16 vertical ratio for social media, captions enabled, and AI reframing. WayinVideo processes the video and returns a task ID that the workflow uses to check for results.

Step 3 — Wait 45 Seconds
The workflow pauses for 45 seconds to give WayinVideo time to process the video before the first check. This avoids sending requests too early when results won't be ready yet.

Step 4 — Poll for Results
The workflow calls the WayinVideo results endpoint using the task ID from Step 2. It asks: "Are the clips ready yet?" and receives either a clips array or an empty result.

Step 5 — Check: Are Clips Ready? (YES / NO branch)

  • YES — If the results contain clip data, the workflow moves forward to extract and download each clip.
  • NO — If the results are empty (still processing), the workflow loops back to Step 3, waits another 45 seconds, and polls again. This loop continues until clips are ready.

⚠️ Infinite Loop Risk: If WayinVideo never returns clips (due to an invalid URL or API error), this loop runs forever. Consider adding a retry counter to stop after a maximum number of attempts.

Step 6 — Extract Clips Array
A code step reads the clips data and splits it into individual items — one per clip. Each item includes the clip title, download link, score, tags, description, and start/end timestamps.

Step 7 — Download Each Clip File
For each clip, the workflow fetches the video file from WayinVideo's export link and downloads the binary file into n8n's memory, ready to be uploaded.

Step 8 — Upload to Google Drive
Each downloaded clip file is uploaded to your Google Drive folder. The file is named using the AI-generated clip title from Step 6, so every clip arrives in Drive with a descriptive, ready-to-use filename.

The final result is a folder in your Google Drive containing all extracted short clips, named and ready to post.


Key Features

AI clip scoring — WayinVideo ranks clips by engagement potential, so you always get the most viral-ready moments first
9:16 vertical format — Every clip is automatically reframed for TikTok, Instagram Reels, and YouTube Shorts — no manual cropping
Captions included — AI captions are embedded in every clip export, improving watch time and accessibility without extra editing
Auto-retry polling — The workflow keeps checking until clips are ready — you don't need to monitor or re-run anything manually
Batch processing — Multiple clips are downloaded and uploaded in one run, no matter how many you requested
Smart file naming — Each clip in Drive is named using its AI-generated title, not a random ID — your folder stays organised
Team-friendly form — The web form means anyone on your team can submit jobs without logging into n8n
Configurable clip count — Enter any number in the form to control how many clips are generated per video


Customisation Options

Shorter TikTok clips — In node "2. WayinVideo — Submit Clipping Task", change target_duration from DURATION_30_60 to DURATION_15_30 to generate 15–30 second clips optimised for TikTok.

Add Slack or email notifications — Insert a Slack or Gmail node after "8. Google Drive — Upload Clip" to ping your team with a message (and the Drive link) every time a new clip is saved.

Log clip metadata to Google Sheets — After the upload step, add a Google Sheets "Append Row" node to record each clip's title, score, tags, and Drive link in a spreadsheet — useful for content calendars and client reporting.

Change video resolution — In the Submit node, change resolution from HD_720 to FULL_HD_1080 for higher-quality exports, or SD_480 to reduce file sizes.

Add a retry limit to the polling loop — To prevent the infinite loop risk, add a counter variable in the Wait step and check it in "5. If — Clips Ready?" — stop after 10 attempts and send an error notification instead.

Switch to a different output folder per brand — Connect the Brand Name field from the form to the folder selection in the Google Drive node to auto-sort clips into brand-specific folders.


Troubleshooting

API key not working:

  • Check that you replaced YOUR_WAYINVIDEO_API_KEY in both node "2. WayinVideo — Submit Clipping Task" and node "4. WayinVideo — Poll Clips Result"
  • Confirm your WayinVideo account is active and the key has not expired
  • Make sure there are no extra spaces before or after the key when pasting

Workflow stuck in the polling loop:

  • Check that the video URL is publicly accessible — private, age-restricted, or region-blocked videos will not process
  • Open the results from node "4. WayinVideo — Poll Clips Result" and look at the raw response to see if WayinVideo returned an error message
  • If no clips are ever returned, the workflow will loop indefinitely — activate the workflow again after fixing the URL

Google Drive upload failing:

  • Make sure the Google OAuth2 credential in "8. Google Drive — Upload Clip" is connected and not expired — reconnect it if needed
  • Confirm the folder ID is correct: it should be just the ID string (e.g. 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs), not the full URL
  • Check that your Google account has write access to that specific folder

Support

Need help setting this up or want a custom version built for your team or agency?

📧 Email: [email protected]
🌐 Website: https://incrementors.com/