Skip to main content

Viral video creator: Fal.ai AI videos → TikTok, YouTube & Instagram automation

Workflow preview

Workflow preview
100%
Viral video creator: Fal.ai AI videos → TikTok, YouTube & Instagram 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

The AI Viral Video Factory: From Concept to Content in Minutes This n8n workflow is a fully automated pipeline that takes a creative concept and transforms it into a polished, platform ready sho...

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.scheduletrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.toolthink, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.googlesheets, n8n-nodes-base.code

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Viral video creator: Fal.ai AI videos → TikTok, YouTube & Instagram automation
Workflow name
Viral video creator: Fal.ai AI videos → TikTok, YouTube & Instagram automation

🎬 The AI Viral Video Factory: From Concept to Content in Minutes

This n8n workflow is a fully automated pipeline that takes a creative concept and transforms it into a polished, platform-ready short-form video. It ideates, generates video and audio using AI, merges them, and publishes the final content to your social media accounts!

✨ Core Features

  • Automated Ideation: Leverages GPT-4 to generate unique, trend-aware ASMR video concepts, complete with captions and hashtags.
  • AI-Powered Visuals: Uses Fal.ai to transform text prompts into multiple cinematic video scenes.
  • Custom Soundscapes: Generates matching ASMR audio tracks to enhance the sensory experience.
  • End-to-End Automation: The entire process, from idea generation to social media publishing, runs automatically on a schedule.
  • Content Management: Logs all ideas and final video URLs into Google Sheets for easy tracking and management.

🛠️ Setup and Configuration Guide

Follow these detailed steps to get the workflow running. You'll need accounts for n8n, OpenAI, Google, Fal.ai, and Blotato.

Prerequisites

  • n8n instance (self-hosted or cloud)
  • OpenAI account with API access
  • Google account with Sheets access
  • Fal.ai account with API access
  • Blotato account for social media publishing
  • Connected Instagram and TikTok accounts in Blotato

Step 1: Google Sheets Template Setup

This workflow requires two separate sheets in a single Google Spreadsheet.

  1. Create a new Google Spreadsheet

    • Go to Google Sheets and create a new spreadsheet
    • Name it something memorable (e.g., "AI Video Factory Data")
    • Note the Spreadsheet ID from its URL:
      https://docs.google.com/spreadsheets/d/SPREADSHEET_ID_IS_HERE/edit#gid=0
      
    • You'll need this ID later for the workflow configuration
  2. Sheet 1: Idea Logging

    This sheet stores the initial ideas generated by the AI.

    • Create a sheet and name it exactly: Ideas

    • Set up the following columns in this exact order (case-sensitive):

      Column A Column B Column C Column D Column E
      Caption Idea Environment Sound Status
    • Do not add any additional columns or headers

  3. Sheet 2: Final Output Logging

    This sheet stores the links to the final, published videos.

    • Create a second sheet in the same spreadsheet

    • Name it exactly: Published

    • Set up the following columns in this exact order (case-sensitive):

      Column A Column B Column C Column D
      final_output thumbnail_url status created_date
    • Do not add any additional columns or headers

Step 2: API Key and Credentials Configuration

You need to obtain and configure credentials for each service used in the workflow.

OpenAI Configuration
  1. Get your API Key:

  2. Add to n8n:

    • In n8n, go to Credentials > New
    • Search for "OpenAI" and select it
    • Paste your API key
    • Name the credential (e.g., "OpenAI account")
    • Save the credential
  3. Update the workflow:

    • In the nodes LLM: Generate Raw Idea (GPT-4.1) and LLM: Draft Video Prompt Details (GPT-4.1)
    • Select the OpenAI credential you just created
Google Sheets Configuration
  1. Set up OAuth2:

    • In n8n, go to Credentials > New
    • Search for "Google Sheets" and select Google Sheets OAuth2 API
    • Follow the OAuth setup instructions to connect your Google account
    • Name the credential (e.g., "Google Sheets account")
  2. Update the workflow:

    • In all Google Sheets nodes:
      • Save Idea & Metadata to Google Sheets
      • Save Final Video URL to Sheets
      • Retrieve Final Video Data
    • Select your Google Sheets credential
    • Enter your Spreadsheet ID in the Document ID field
    • Ensure the sheet names match exactly ("Ideas" and "Published")
Fal.ai Configuration
  1. Get your API Key:

    • Sign up at fal.ai
    • Go to your dashboard and get your API Key
    • The key format is: key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  2. Update the workflow:

    • No separate n8n credential needed
    • Find these HTTP Request nodes and update the Authorization header:
      • Generate Video Clips (Wavespeed AI)
      • Generate ASMR Sound (Fal AI)
      • Merge Clips into Final Video (Fal AI)
      • Poll Video Generation Status
      • Poll Sound Generation Status
      • Poll Merge Status
    • In each node's Header Parameters, replace {{YOUR_FAL_AI_KEY}} with your actual key
    • The value should be: key YOUR_ACTUAL_FAL_AI_KEY
Blotato Configuration
  1. Get your API Key:

    • Sign up at blotato.com
    • Get your API key from the dashboard
    • Connect your Instagram and TikTok accounts
    • Note down the Account IDs for each platform
  2. Update the workflow:

    • In these nodes:
      • Upload Video to Blotato
      • Publish to Instagram
      • Publish to TikTok
    • Replace {{YOUR_BLOTATO_API_KEY}} with your actual API key in the Header Parameters
  3. Set Social Media IDs:

    • In the Assign Social Media IDs node
    • Replace {{YOUR_INSTAGRAM_ACCOUNT_ID}} with your Instagram account ID from Blotato
    • Replace {{YOUR_TIKTOK_ACCOUNT_ID}} with your TikTok account ID from Blotato

Step 3: Workflow Activation

  1. Test the workflow:

    • Use the manual trigger to test before scheduling
    • Monitor each node's execution
    • Check Google Sheets for proper data logging
  2. Schedule automation:

    • The workflow is set to run daily
    • Adjust the schedule in the Trigger: Start Daily Content Generation node as needed

⚙️ Workflow Breakdown

Ideation & Storage

The workflow triggers on schedule. An AI Agent generates a unique ASMR video concept and saves the Idea, Caption, Environment, and Sound details into your first Google Sheet.

Scene Prompting

A second AI Agent takes the approved idea from the sheet and creates three detailed, cinematic scene prompts designed for text-to-video AI.

Video & Audio Generation

The workflow makes parallel API calls to Fal.ai:

  • Generates a video clip for each of the three scenes
  • Generates a single, corresponding ASMR audio track
  • Continuously polls Fal.ai until assets are ready

Merging & Finalizing

Once all assets are generated, it sends a request to Fal.ai's FFMPEG API to stitch the video clips and audio track into one final video.

Logging & Publishing

The final video URL is saved to your second Google Sheet. The workflow then uploads this video to Blotato and publishes it to your specified Instagram and TikTok accounts.

🎨 Customization Guide

Content Type Customization

To adapt this workflow for different content types:

  1. Modify the AI prompts:

    • In AI Agent: Generate Creative Video Idea, update the prompt to match your content style
    • Adjust the systemMessage to reflect your brand voice and content guidelines
  2. Change video parameters:

    • In Generate Video Clips (Wavespeed AI), modify:
      • duration: Video length (default: 10 seconds)
      • aspect_ratio: Change from "9:16" to "16:9" for horizontal videos
  3. Adjust audio generation:

    • In Generate ASMR Sound (Fal AI), update the prompt for different audio styles
    • Modify cfg_strength (1-10) for more/less adherence to prompt

Platform-Specific Adjustments

  1. Instagram-specific:

    • Maximum video duration: 90 seconds for Reels
    • Optimal hashtag count: 5-10
  2. TikTok-specific:

    • Maximum video duration: 10 minutes
    • Optimal hashtag count: 3-5
    • In Publish to TikTok node, adjust privacy settings as needed

Scheduling Options

Modify the Trigger: Start Daily Content Generation node:

  • Change from daily to hourly, weekly, or specific times
  • Add multiple triggers for different time zones
  • Use cron expressions for complex schedules

Error Handling

Add error handling nodes:

  • Connect error outputs to notification systems
  • Log failed attempts to a separate Google Sheet
  • Implement retry logic for API failures

🎯 Perfect For

  • Content Creators looking to scale their output with minimal effort
  • Digital Marketers seeking a consistent stream of engaging, trend-based content
  • Brands wanting to build a strong presence on short-form video platforms
  • Automation Enthusiasts building content-driven businesses

🚀 Getting Started

  1. Import the workflow into your n8n instance
  2. Follow the setup guide above step-by-step
  3. Test with manual execution first
  4. Monitor the first few automated runs
  5. Adjust prompts and parameters based on results

📧 Support

For questions or issues with this template:

🔧 Technical Stack

  • Workflow Engine: n8n
  • AI Models: GPT-4, Fal.ai (Wavespeed & MMAudio-v2)
  • Data Storage: Google Sheets
  • Publishing: Blotato API
  • Output: Platform-optimized 9:16 videos with synchronized ASMR audio

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 - Section: Input and Ideation

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

Block 2 - Trigger: Start Daily Content Generation

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 3 - AI Agent: Generate Creative Video Idea

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 4 - Tool: Inject Creative Perspective (Idea)

Type / Role
@n8n/n8n-nodes-langchain.toolThink - toolThink
Config choices
Version 1

Block 5 - LLM: Generate Raw Idea (GPT-4.1)

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 6 - Parse AI Output (Idea, Environment, Sound)

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 7 - Save Idea & Metadata to Google Sheets

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

Block 8 - AI Agent: Generate Detailed Video Prompts

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 9 - LLM: Draft Video Prompt Details (GPT-4.1)

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 10 - Tool: Refine and Validate Prompts

Type / Role
@n8n/n8n-nodes-langchain.toolThink - toolThink
Config choices
Version 1

Block 11 - Parse Structured Video Prompt Output

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 12 - Parse Scene Prompts into Individual Items

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

Block 13 - Generate Video Clips (Wavespeed AI)

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

Block 14 - Generate ASMR Sound (Fal AI)

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

Block 15 - Extract Video URL from Generation Response

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

Block 16 - Merge Clips into Final Video (Fal AI)

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

Block 17 - Wait for Video Processing (20s)

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

Block 18 - Save Final Video URL to Sheets

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

Block 19 - Configure Social Media Account IDs

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 20 - Retrieve Final Video Data

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

Block 21 - Upload Video to Blotato

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

Block 22 - Publish to Instagram

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

Block 23 - Publish to TikTok

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

Block 24 - Check if Video Generation Complete

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

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

3. Summary Table

Workflow Viral video creator: Fal.ai AI videos → TikTok, YouTube & Instagram automation
Complexity advanced
Nodes 39
Categories Content Creation, Multimodal AI
Author Reddit Dev
Published 12 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5916/5916.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 Viral video creator: Fal.ai AI videos → TikTok, YouTube & Instagram automation do?

The AI Viral Video Factory: From Concept to Content in Minutes This n8n workflow is a fully automated pipeline that takes a creative concept and transforms it into a polished, platform ready sho...

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.