Skip to main content

Create viral social media videos with FalAI Flux/Kling and GPT-4 automation

Workflow preview

Workflow preview
100%
Create viral social media videos with FalAI Flux/Kling and GPT-4 automation preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 an...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.googledrive, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.wait, n8n-nodes-base.merge, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.googlesheets

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Matthew.

Original n8n.io source

1.1 Workflow description

Title
Create viral social media videos with FalAI Flux/Kling and GPT-4 automation
Workflow name
Create viral social media videos with FalAI Flux/Kling and GPT-4 automation

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 🎬

  1. 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.

  2. 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).
  3. 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/flux model 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-video model to turn the still image into a 5-second animated video clip based on the new animation prompt.
  4. Assemble the Final Video 🎞️:

    • Stitch Clips: Once all 12 clips are generated, the Merge Clips node uses the fal-ai/ffmpeg-api to concatenate them into a single, seamless 60-second video.
    • Add Audio: The Combine Voice and Video node then layers the AI-generated voiceover onto the stitched video.
  5. 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

  1. 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.
  2. Configure Fal.ai API Key:

    • Crucially, you must replace the placeholder API key in all HTTP Request nodes that call the fal.run URL.
    • Find the Authorization header in each of these nodes and replace the existing key with your own Key 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.
  3. 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 Idea1 node to change the theme of the videos you want to generate.
  4. Configure Google Sheets & Drive:

    • In the Organise idea, caption etc1 node, select your Google Sheets credential and specify the Spreadsheet and Sheet ID you want to use for logging ideas.
    • In the Upload file to drive node, select your Google Drive credential and choose the destination folder for your final videos.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Upload file to drive

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 3 - URL to file

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Get Full Voiceover Prompt

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Wait1

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 6 - Wait11

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 7 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - List Elements1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Merge1

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 10 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Get Video1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - Create Video1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 13 - Video Prompts1

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 14 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Get Images1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 16 - Create Images1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 17 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Unbundle prompts1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - Create New Idea1

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 20 - Generating scenes1

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 21 - Organise idea, caption etc1

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 22 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Combine Voice and Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 24 - Get Voice and Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Showing the first 24 of 39 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Create viral social media videos with FalAI Flux/Kling and GPT-4 automation
Complexity advanced
Nodes 39
Categories Content Creation, Multimodal AI
Author Matthew
Published 02 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6918/6918.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Create viral social media videos with FalAI Flux/Kling and GPT-4 automation do?

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 an...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.