This workflow automates the full pipeline for extending short Viral UGC-style videos using AI, merging them, and finally publishing the output to cloud storage or social media platforms (TikTok, Instagram, Facebook, Linkedin, X, and YouTube). It integrates multiple external APIs (Fal.ai, Runpod/Kling 2.1, Postiz, Upload-Post, Google Sheets, Google Drive) to create a smooth end-to-end video-generation system.
The workflow covers the entire process:
No manual intervention required after starting the workflow.
The system uses Kling 2.1 (Kling 2.1 or other models like Veo 3.1 or Sora 2) to extend short videos realistically, enabling:
Ideal for viral social media content.
The spreadsheet becomes a control panel:
This makes the system user-friendly even for non-technical operators.
Every external API includes:
This ensures reliability when working with long-running AI processes.
Once videos are generated, the workflow:
This drastically reduces time required for content production and distribution.
Because it is built in n8n:
This workflow automates the process of extending and merging videos using AI-generated content, then publishing the final result to social media platforms. The process consists of five main stages:
Data Input & Frame Extraction
The workflow starts by reading video and prompt data from a Google Sheet. It extracts the last frame from the input video using Fal.ai’s FFmpeg API.
AI Video Generation
The extracted frame is sent to RunPod’s Kling 2.1 AI model to generate a new video clip based on the provided prompt and desired duration.
Video Merging
Once the AI-generated clip is ready, it is merged with the original video using Fal.ai’s FFmpeg merge functionality to create a seamless extended video.
Storage & Publishing
The final merged video is uploaded to Google Drive and simultaneously distributed to social media platforms via:
Progress Tracking
Throughout the process, the Google Sheet is updated with the status, video URLs, and completion markers to keep track of each step.
To configure this workflow, follow these steps:
Prepare the Google Sheet
START (video URL), PROMPT (AI prompt), and DURATION (in seconds) columns.Configure Fal.ai API for Frame Extraction & Merging
AuthorizationKey YOUR_API_KEYSet Up RunPod API for AI Video Generation
Bearer YOUR_RUNPOD_API_KEYConfigure Social Media Publishing
YOUR_USERNAME and TITLE in the “Upload to Youtube” node.Channel_ID and TITLE in the “Upload to Social” node.Connect Google Services
Execute the Workflow
Contact me for consulting and support or add me on Linkedin.