🎬 Generate and publish AI short videos using Gemini, Sora-2, Apify, and Google Sheets

⚑ 150 views · 🎬 Content Creation & Video

πŸ’‘ Pro Tip β€” HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it β€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

1. Overview

This workflow automates the process of collecting viral content ideas, generating videos using AI services, and publishing posts to social media platforms.

It uses scheduled triggers and external APIs to run the entire content pipeline with minimal manual input. Google Sheets is used as the central data layer to store ideas, track processing status, and prevent duplicate content.

The workflow is designed to support continuous content production by connecting idea discovery, content generation, and publishing into a single automated system.

2. What Can This Workflow Do? This workflow can be used for:

The workflow is suitable for users who want to reduce manual work while maintaining a structured and repeatable content production process.

3. Required API Keys & Credentials

The following credentials must be configured before running the workflow:

⚠️ All API keys and credentials must be properly set up in n8n Credentials before executing the workflow.

4. High-Level Architecture

The system is divided into two main workflows:

  1. Get Content Viral: Collects and stores viral content ideas automatically

  2. Create Video and Auto Post

5. Workflow 1 – Get Content Viral Purpose

This workflow is responsible for automatically discovering and collecting viral content ideas, then storing them in Google Sheets for further processing.

It acts as the idea intake layer of the entire AI Content Factory. Workflow Steps

  1. Scheduled content execution The workflow is triggered automatically based on a predefined schedule (e.g. daily or multiple times per day). This allows the system to continuously collect fresh viral content ideas without manual intervention.

  2. Run Apify Actor & Get Dataset

  1. Normalize scraped content data
  1. Save to Google Sheets (Viral Content)

Google Sheets serves as the central idea repository for downstream workflows.

Output:

6. Workflow 2 – Create Video and Auto Post Purpose

This workflow is responsible for transforming viral content ideas into AI-generated videos and automatically publishing them to social media platforms.

It acts as the production and distribution layer of the AI Content Factory.

Workflow Steps

  1. Scheduled video generation The workflow runs automatically based on a predefined schedule. This allows you to control how many videos are generated and published per day.

  2. Get Viral Content (Google Sheets)

  1. Analyze Content
  1. AI Agent (Gemini + Structured Output Parser)

A structured output parser is used to ensure consistent and predictable results for downstream steps.

  1. Format AI output for video generation
  1. Create Video (Video Generation API)
  1. Wait β†’ Get Video β†’ Switch
  1. Create Post (Blotato)
  1. Update Google Sheets

Output

8. Notes, Limitations & Best Practices

Notes The overall content quality depends heavily on:

This workflow is designed for automation, not manual fine-tuning. Google Sheets is used as a lightweight database and works best for small to medium-scale content pipelines.

Limitations

API rate limits and quotas may restrict:

Video generation APIs may:

Social media platforms may impose:

Best Practices

Start with a low posting frequency and gradually scale up

Regularly review and refine:

Use Google Sheets status fields to:

Add error handling and retry logic for:

Periodically clean and optimize your Google Sheets data to maintain performance

Watch the tutorial video on YouTube..

πŸ”— Nodes Used

Google Sheets, HTTP Request, Schedule Trigger, AI Agent, Structured Output Parser, Google Gemini Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup