Create Viral Social Media Videos with FalAI Flux/Kling and GPT-4 Automation
Categories
Created by
maMatthewLast edited 58 days ago
AI-Powered Viral Video Factory 🚀
This workflow automates the entire process of creating short, cinematic, fact-based videos ready for social media. It takes a single concept, generates a script and visuals, creates video clips, adds a voiceover, and assembles a final video, which is then uploaded directly to your Google Drive. It's perfect for content creators and marketing agencies looking to scale video production with minimal manual effort.
How It Works 🎬
-
Generate a Viral Idea 💡: The workflow begins with the
Create New Idea1(OpenAI) node, which generates a viral-ready video concept, including a punchy title, hashtags, and a brief description based on a core theme (e.g., space, black holes). This idea is then logged in a Google Sheet. -
Create a Cinematic Script & Voiceover 📜:
- An OpenAI node (
Generating scenes1) creates a detailed 12-scene script, outlining the visuals for a 60-second video. - The script text for all scenes is combined and prepared for voiceover generation by another OpenAI node (
Generate Voiceover).
- An OpenAI node (
-
Generate Scene-by-Scene Visuals ✨: The workflow loops through each of the 12 scenes to create an animated clip:
- Image Generation: An HTTP Request node sends the scene's prompt to the
fal-ai/fluxmodel to create a photorealistic still image. - Animation Prompting: The
Video Prompts1(OpenAI Vision) node analyzes the generated image and creates a new, specific prompt to animate it cinematically. - Image-to-Video: Another HTTP Request node uses the
fal-ai/kling-videomodel to turn the still image into a 5-second animated video clip based on the new animation prompt.
- Image Generation: An HTTP Request node sends the scene's prompt to the
-
Assemble the Final Video 🎞️:
- Stitch Clips: Once all 12 clips are generated, the
Merge Clipsnode uses thefal-ai/ffmpeg-apito concatenate them into a single, seamless 60-second video. - Add Audio: The
Combine Voice and Videonode then layers the AI-generated voiceover onto the stitched video.
- Stitch Clips: Once all 12 clips are generated, the
-
Deliver to Google Drive 📂: Finally, the completed video is converted from a URL to a file and automatically uploaded to your specified Google Drive folder for easy access and publishing.
Key Technologies Used
- n8n: For orchestrating the entire automated workflow.
- OpenAI (GPT-4.1 & GPT-4o): For idea generation, scriptwriting, voiceover, and vision analysis.
- Fal.ai: For high-performance, API-based image generation (
Flux), video animation (Kling), and video processing (FFMPEG API). - Google Drive & Sheets: For logging ideas and storing the final video output.
Setup Instructions
-
Add Credentials:
- In n8n, add your OpenAI API key.
- Connect your Google account for Google Sheets and Google Drive access.
- You will need a Fal.ai API Key.
-
Configure Fal.ai API Key:
- Crucially, you must replace the placeholder API key in all HTTP Request nodes that call the
fal.runURL. - Find the
Authorizationheader in each of these nodes and replace the existing key with your ownKey YOUR_FAL_AI_KEY_HERE. - Nodes to update:
Create Images1,Get Images1,Create Video1,Get Video1,Merge Clips,Get Final video,Combine Voice and Video.
- Crucially, you must replace the placeholder API key in all HTTP Request nodes that call the
-
Configure OpenAI Nodes:
- Select each OpenAI node (e.g.,
Create New Idea1,Generating scenes1) and choose your OpenAI credential. - You can customize the main prompt in the
Create New Idea1node to change the theme of the videos you want to generate.
- Select each OpenAI node (e.g.,
-
Configure Google Sheets & Drive:
- In the
Organise idea, caption etc1node, select your Google Sheets credential and specify the Spreadsheet and Sheet ID you want to use for logging ideas. - In the
Upload file to drivenode, select your Google Drive credential and choose the destination folder for your final videos.
- In the
You may also like
New to n8n?
Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!





