Generate multilingual AI video clips using WayinVideo and Google Drive
Paste any video URL into the form, choose your target languages, and this workflow handles everything else. It sends the video to WayinVideo AI, which automatically generates short vertical clips with translated subtitles in every language you selected. Each clip is 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 global brands who want to repurpose videos across multiple languages at scale — without editing a single frame.
What This Workflow Does
Multilingual clip generation** — Sends your video to WayinVideo once and generates a separate set of AI-clips per language, all in one run Translated subtitles embedded** — Every clip includes AI-generated captions translated into the target language — no manual subtitle work needed Auto-polling with retry** — Waits 45 seconds, checks if clips are ready, and loops back automatically every 30 seconds until all results arrive Batch clip processing** — Extracts every clip from the results — title, score, tags, description, and timestamps — and processes each one individually 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 Team-friendly form** — 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 "3. WayinVideo — Submit Clipping Task" Open this node, find the Authorization header, and replace YOUR_WAYINVIDEO_API_KEY with your actual key.
Paste the API key into node "5. WayinVideo — Get 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 "3. WayinVideo — Submit Clipping Task" and "5. WayinVideo — Get Clips Result" or the workflow will fail.
Connect your Google account Open node "10. 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 "10. Google Drive — Upload Clip", find the folderId field. Replace YOUR_GDRIVE_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/.
Activate the workflow Toggle the workflow to Active. Open the form URL generated by node "1. Form — Video URL + Languages" and submit a test video with one or two language codes 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 four things: the video URL, the brand or project name, the target languages as comma-separated codes (e.g. en,hi,es,fr), and the number of clips to generate per language. This form is hosted by n8n and can be shared with anyone on your team — no technical knowledge required.
Step 2 — Split by Language (Code) The language codes entered in the form are split into individual items — one per language. So if you entered en,hi,es, the workflow creates three separate jobs. Each job carries the video URL, brand name, target language, and clip count. From this point, every language runs through the same steps independently.
Step 3 — Submit to WayinVideo AI For each language, 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, AI reframing enabled, and captions set to display translated text in the target language. WayinVideo processes the video and returns a task ID used to track that specific job.
Step 4 — Wait 45 Seconds The workflow pauses for 45 seconds to give WayinVideo time to process the video before the first status check. This prevents unnecessary requests being sent too early when results are not yet available.
Step 5 — Poll for Results The workflow calls the WayinVideo results endpoint using the task ID from Step 3. It checks: "Are the clips ready?" and receives either a completed clips array or a status that indicates processing is still in progress.
Step 6 — Check: Status SUCCEEDED? (YES / NO branch) YES** — If the status equals SUCCEEDED, the workflow moves forward to extract and process each clip. NO** — If the job is still processing, the workflow routes to a 30-second retry wait, then loops back to Step 5 and polls again. This continues automatically until the clips are ready.
> ⚠️ Infinite Loop Risk: If WayinVideo never returns a SUCCEEDED status — due to an invalid video URL, a private video, or an API error — this loop will run forever. Consider adding a retry counter to stop the loop after a set number of attempts and send an error alert instead.
Step 7 — Wait 30 Seconds (Retry) When clips are not ready yet, the workflow pauses for 30 seconds before polling again. This gap prevents hitting WayinVideo's API rate limits during the retry loop.
Step 8 — Extract Each Clip (Code) Once the status is SUCCEEDED, a code step reads the clips data and splits it into individual items — one per clip. Each item includes the clip title, export download link, AI score, tags, description, and start/end timestamps in milliseconds.
Step 9 — 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 saved.
Step 10 — 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 8, so every clip arrives in Drive with a clean, descriptive, ready-to-use filename.
The final result is a Google Drive folder containing all short clips — organised by AI-generated titles — in every language you requested, ready to publish.
Key Features
✅ Multilingual in one run — Enter multiple language codes and the workflow generates a full clip set per language automatically — no need to run it separately for each language ✅ Translated captions baked in — Subtitles are translated and embedded at the WayinVideo stage — clips arrive ready to post with no extra editing ✅ 9:16 vertical format — Every clip is automatically reframed for TikTok, Instagram Reels, and YouTube Shorts — no manual cropping required ✅ AI clip scoring — WayinVideo ranks clips by engagement potential, so you always get the most shareable moments first ✅ Auto-retry polling — The workflow keeps checking until clips are ready — you don't need to monitor or manually re-run anything ✅ Smart file naming — Each clip in Drive is named using its AI-generated title, not a random ID — your folder stays organised and client-ready ✅ Batch processing — Multiple clips per language are all downloaded and uploaded in a single run ✅ Team-friendly form input — Anyone on your team can submit a video job through the web form — no access to n8n needed
Customisation Options
Generate shorter clips for TikTok In node "3. WayinVideo — Submit Clipping Task", change target_duration from DURATION_30_60 to DURATION_15_30 to generate 15–30 second clips better suited for TikTok's shorter format.
Switch to square format for Twitter/LinkedIn In the same Submit node, change ratio from RATIO_9_16 to RATIO_1_1 to produce square clips optimised for Twitter and LinkedIn feeds.
Add Slack or email notifications Insert a Slack or Gmail node after "10. Google Drive — Upload Clip" to automatically ping your team with a message and the Drive folder link every time a new batch of clips 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, language, and Drive link in a spreadsheet — useful for content calendars and client reporting.
Sort clips into language-specific subfolders Pass the target_lang value from Step 2 into the folder selection in "10. Google Drive — Upload Clip" to automatically save each language's clips into its own subfolder (e.g. /clips/hi/, /clips/es/).
Add a retry limit to prevent infinite loops Add a Set node before the retry wait to track a counter. Add a second IF node to check if the counter exceeds 8–10 attempts — if it does, route to a Gmail or Slack node to send an error alert and stop the loop.
Troubleshooting
API key not working: Check that you replaced YOUR_WAYINVIDEO_API_KEY in both node "3. WayinVideo — Submit Clipping Task" and node "5. WayinVideo — Get 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 geo-blocked videos will not process in WayinVideo Open the output of node "5. WayinVideo — Get Clips Result" and inspect the raw response to see if WayinVideo returned an error message If clips never arrive, the workflow will loop indefinitely — fix the video URL and re-run
Wrong language codes entered: Use standard ISO 639-1 two-letter codes only: en, hi, es, fr, pt, ar, de, ja, zh, ko, ru, id Do not use full language names like "Hindi" or "Spanish" — these will not be recognised by the WayinVideo API Separate codes with commas and no spaces (e.g. en,hi,es) or with spaces after commas — the workflow trims them automatically
Google Drive upload failing: Make sure the Google OAuth2 credential in "10. 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 permission for that specific folder
Form not triggering the workflow: Make sure the workflow is set to Active — it will not accept form submissions in inactive mode Copy the form URL directly from node "1. Form — Video URL + Languages" by clicking the node and finding the production URL If testing inside n8n, use the production URL, not the test URL
Support
Need help setting this up or want a custom version built for your team or agency?
📧 Email:info@isawow.com 🌐 Website:https://isawow.com
Related Templates
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
📰 AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments