Skip to main content

Auto-generate AI videos with Gemini, KIE AI Sora-2 & Blotato (Multi-Platform)

Workflow preview

Workflow preview
100%
Auto-generate AI videos with Gemini, KIE AI Sora-2 & Blotato (Multi-Platform) preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This n8n template automates the entire process of generating short form AI videos and publishing them across multiple social media platforms. It combines Google Gemini for structured prompt creatio...

Best for

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

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.wait, n8n-nodes-base.httprequest, @blotato/n8n-nodes-blotato.blotato

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Auto-generate AI videos with Gemini, KIE AI Sora-2 & Blotato (Multi-Platform)
Workflow name
Auto-generate AI videos with Gemini, KIE AI Sora-2 & Blotato (Multi-Platform)

Overview

This n8n template automates the entire process of generating short-form AI videos and publishing them across multiple social media platforms. It combines Google Gemini for structured prompt creation, KIE AI for video generation, and Blotato for centralized publishing. The result is a fully automated content pipeline ideal for creators, marketers, agencies, or anyone who wants consistent, hands-free content generation.

This workflow is especially useful for short-video creators, meme pages, educational creators, UGC teams, auto-posting accounts, and brands who want to maintain high-frequency posting without manual effort.


Good to Know

  • API costs: KIE AI generates videos using paid tokens/credits. Prices vary based on model, duration, and resolution (check KIE AI pricing).
  • Google Gemini model restrictions: Certain Gemini models are geo-limited. If you receive “model not found,” the model may not be available in your region.
  • Blotato publishing: Blotato supports many platforms: YouTube, Instagram, Facebook, LinkedIn, TikTok, X, Bluesky, and more. Platform availability depends on your Blotato setup.
  • Runtime considerations: Video generation can take time (10–60 seconds+, depending on the complexity).
  • Self-hosted requirement: This workflow uses a community node (Blotato). Community nodes do not run on n8n Cloud. A self-hosted instance is required.

How It Works

  1. Scheduler Trigger Defines how frequently new videos should be created (e.g., every 12 hours).

  2. Random Template Selector A JavaScript node generates a random number to choose from multiple creative prompt templates.

  3. AI Agent (Google Gemini) Gemini generates a JSON object containing:

    • A short title
    • A human-readable video description
    • A detailed text-to-video prompt

    The Structured Output Parser ensures strict JSON shape.

  4. Video Generation with KIE AI The prompt is sent to KIE AI’s video generation API. KIE AI creates a synthetic AI video based on the description and your chosen parameters (aspect ratio, frames, watermark removal, etc.).

  5. Polling & Retrieval The workflow waits until the video is fully rendered, then fetches the final video URL.

  6. Media Upload to Blotato The generated video is uploaded into Blotato’s media storage for publishing.

  7. Automatic Posting to Social Platforms Blotato distributes the video to all connected platforms. Examples include:

    • YouTube
    • Instagram
    • Facebook
    • LinkedIn
    • Bluesky
    • TikTok
    • X
    • Any platform supported by your Blotato account

This results in a fully automated “idea → video → upload → publish” pipeline.


How to Use

  • Start by testing the workflow manually to verify video generation and posting.

  • Adjust the Scheduler Trigger to fit your posting frequency.

  • Add your API credentials for:

    • Google Gemini
    • KIE AI
    • Blotato
  • Ensure your Blotato account has social channels connected.

  • Edit or expand the prompt templates for your content niche:

    • Comedy clips
    • Educational videos
    • Product demos
    • Storytelling
    • Pet videos
    • Motivational content

The more template prompts you add, the more diverse your automated videos will be.


Requirements

  • Google Gemini API Key Used for generating structured titles, descriptions, and video prompts.
  • KIE AI API key Required for creating the actual AI-generated video.
  • Blotato account Required for uploading media and automatically posting to platforms.
  • Self-hosted n8n instance Needed because Blotato uses a community node, which n8n Cloud does not support.

Limitations

  • KIE AI models may output inconsistent results if prompts are vague.
  • High-frequency scheduling may consume API credits quickly.
  • Some platforms (e.g., TikTok or Facebook Pages) may require additional permissions or account linking steps in Blotato.
  • Video rendering time varies depending on prompt complexity.

Customization Ideas

  • Add more prompt templates to increase variety.

  • Swap Gemini for an LLM of your choice (OpenAI, Claude, etc.).

  • Add a Telegram, Discord, or Slack notification once posting is complete.

  • Store all generated titles, descriptions, and video URLs in:

    • Google Sheets
    • Notion
    • Airtable
    • Supabase
  • Add multi-language support using a translation node.

  • Add an approval step where videos go to your team before publishing.

  • Add analytics logging (impressions, views, etc.) using Blotato or another service.


Troubleshooting

  • Video not generating? Check if your KIE AI model accepts your chosen parameters.
  • Model not found? Switch to a supported Gemini model for your region.
  • Publishing fails? Ensure Blotato platform accounts are authenticated.
  • Workflow stops early? Increase the wait timeout before polling KIE AI.

This template is designed for easy setup and high flexibility. All technical details, configuration steps, and workflow logic are already included in sticky notes inside the workflow. Once configured, this pipeline becomes a hands-free AI-powered content engine capable of generating and publishing content at scale.

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 - Schedule Trigger

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

Block 2 - Code in JavaScript

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

Block 3 - AI Agent

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

Block 4 - Google Gemini Chat Model

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

Block 5 - Structured Output Parser

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

Block 6 - Wait1

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

Block 7 - Get

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

Block 8 - Upload media1

Type / Role
@blotato/n8n-nodes-blotato.blotato - blotato
Config choices
Version 2

Block 9 - Create post1

Type / Role
@blotato/n8n-nodes-blotato.blotato - blotato
Config choices
Version 2

Block 10 - create video

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

Block 11 - Instagram

Type / Role
@blotato/n8n-nodes-blotato.blotato - blotato
Config choices
Version 2

Block 12 - Youtube

Type / Role
@blotato/n8n-nodes-blotato.blotato - blotato
Config choices
Version 2

Block 13 - Sticky Note1

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

Block 14 - Sticky Note2

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

Block 15 - Sticky Note3

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

Block 16 - Sticky Note4

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

Block 17 - LinkedIn2

Type / Role
@blotato/n8n-nodes-blotato.blotato - blotato
Config choices
Version 2

Block 18 - Bluesky

Type / Role
@blotato/n8n-nodes-blotato.blotato - blotato
Config choices
Version 2

Block 19 - Facebook

Type / Role
@blotato/n8n-nodes-blotato.blotato - blotato
Config choices
Version 2

Block 20 - Sticky Note

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

Block 21 - Sticky Note5

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

3. Summary Table

Workflow Auto-generate AI videos with Gemini, KIE AI Sora-2 & Blotato (Multi-Platform)
Complexity advanced
Nodes 21
Categories Content Creation, Multimodal AI
Author Amit Kumar
Published 15 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10867/10867.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 Auto-generate AI videos with Gemini, KIE AI Sora-2 & Blotato (Multi-Platform) do?

This n8n template automates the entire process of generating short form AI videos and publishing them across multiple social media platforms. It combines Google Gemini for structured prompt creatio...

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.