π¬ Repurpose influencer videos into short clips using WayinVideo AI and Google Drive
β‘ 220 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.
Description
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
-
Get your WayinVideo API key Log in at WayinVideo, go to your account settings or developer section, and copy your API key.
-
Paste the API key into node β2. WayinVideo β Submit Clipping Taskβ Open this node, find the Authorization header, and replace
YOUR_WAYINVIDEO_API_KEYwith your actual key. -
Paste the API key into node β4. WayinVideo β Poll Clips Resultβ Open this node, find the same Authorization header, and replace
YOUR_WAYINVIDEO_API_KEYagain. > β οΈ 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. -
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.
-
Set your Google Drive folder ID In node β8. Google Drive β Upload Clipβ, find the
folderIdfield. ReplaceYOUR_GOOGLE_DRIVE_FOLDER_IDwith 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/. -
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_KEYin 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: info@incrementors.com π Website: https://incrementors.com/
π Nodes Used
HTTP Request, Google Drive, n8n Form Trigger
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File