AutomationMart
Home/Browse/Generate and publish AI short videos using Gemini, Sora-2, Apify, and Google Sheets
n8n

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

n8nn8n18 modulesv1.0
Google SheetsGemini

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 g

At a glance

Generate and publish AI short videos using Gemini, Sora-2, Apify, and Google Sheets is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Google Sheets, Gemini. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Google Sheets, Gemini
Modules
18
Price
Free
Version
v1.0
Generate and publish AI short videos using Gemini, Sora-2, Apify, and Google Sheets workflow diagram

About this workflow

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: - Automatically collecting viral content ideas on a scheduled basis - Generating videos from text-based ideas without manual recording or editing - Publishing video content to social media platforms using a single workflow - Managing content status and processing history through Google Sheets - Running automated content pipelines for multiple niches or channels 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: - Apify API Token: Used to scrape and collect viral content data - Google OAuth2: Required for Google Sheets API access - Gemini API Key: Used by the AI Agent for content analysis and generation - Video Generation API Key: (Kie.ai, GeminiGen.ai, fal.ai...) Required to generate AI videos - Blotato API Key: Used to automatically publish content to multiple social media platforms ⚠️ 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 - Transforms ideas into AI-generated videos and publishes them automatically - Google Sheets as the Central Database Google Sheets serves as the central data layer to: - Act as the main content database - Prevent duplicate content processing - Track content status throughout the entire pipeline 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 - Executes an Apify Actor to scrape viral content data from selected sources - Retrieves a dataset containing raw content ideas, links, and metadata - This step is responsible for data collection and crawling. 3. Normalize scraped content data - Cleans and normalizes the scraped data - Removes unnecessary fields - Formats the content into a standardized structure suitable for storage This ensures consistency and data quality. 4. Save to Google Sheets (Viral Content) - Appends the processed content ideas into a dedicated Google Sheet - Each row represents a single viral content idea Google Sheets serves as the central idea repository for downstream workflows. Output: - After the workflow completes, you will have: - A continuously updated list of viral content ideas - Structured data ready for video generation - A centralized idea database accessible by other workflows 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) - Retrieves a single unprocessed content idea from Google Sheets - Ensures that each idea is used only once - This step prevents duplicate content generation. 3. Analyze Content - Analyzes the selected content idea - Extracts key context, topic, and intent - This prepares structured input for the AI Agent. 4. AI Agent (Gemini + Structured Output Parser) - The AI Agent generates: - Video title - Video description - Video generation prompt A structured output parser is used to ensure consistent and predictable results for downstream steps. 5. Format AI output for video generation - Cleans and formats the AI-generated output - Prepares the final payload for the video generation API - This step ensures compatibility with the video generation service. 6. Create Video (Video Generation API) - Sends the prepared prompt to the video generation API - Starts the AI video rendering process - The video is generated asynchronously. 7. Wait → Get Video → Switch - Wait: Pauses the workflow while the video is rendering - Get Video: Checks the current rendering status - Switch: If Processing: wait and retry If Completed: continue to publishing If Failed: handle errors or retry 8. Create Post (Blotato) - Publishes the generated video to selected social media platforms - Uses: Title Description Generated video Blotato handles multi-platform posting automatically. 9. Update Google Sheets - Updates the corresponding row in Google Sheets with: Processing status Published post URL Timestamp This provides full visibility and tracking across the pipeline. Output - After the workflow completes, you will have: - An AI-generated video - Automatically published content across social platforms - Updated tracking data in Google Sheets 8. Notes, Limitations & Best Practices Notes The overall content quality depends heavily on: - The quality of scraped viral ideas - The AI prompts used for analysis and video generation - The capabilities of the selected video generation API 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: - The number of videos generated per day - The frequency of scraping and posting Video generation APIs may: - Fail occasionally due to rendering issues - Produce inconsistent results depending on prompt complexity Social media platforms may impose: - Posting limits - Content moderation restrictions Best Practices Start with a low posting frequency and gradually scale up Regularly review and refine: - AI prompts - Video formats Use Google Sheets status fields to: - Monitor failures - Prevent duplicate processing Add error handling and retry logic for: - Video generation - Posting steps Periodically clean and optimize your Google Sheets data to maintain performance Watch the tutorial video on YouTube..

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Send automated replies on Line for new messages filtered in Google Sheets

Automatically respond to new Line messages filtered in Google Sheets. Streamline communication by sending replies based on specific criteria.

Free

Enhance Chat Responses with Real-Time Search via Bright Data MCP & Gemini AI

Disclaimer This template is only available on n8n self-hosted as it's making use of the community node for MCP Client. Who this is for? The Chat Conversations with Bright Data MCP Search Engines & Google Gemini workflow is designed for users who need real-time, AI-enhanced conversations powered by live search engine results. This workflow is tailored for:​ 1. Data Analysts - Who want live, search-based data fused with AI reasoning. 2. Marketing Researchers - Seeking up-to-the-minute market or c

Free

Create Pinterest pins from Google Sheets data and delete rows

Streamline your Pinterest content management by automatically creating pins from Google Sheets data and deleting rows once processed, using Make's integration.

Free

Save new RD Station leads to Google Sheets

Every time a new lead is created via RD Station API, Make will automatically save it to Google Sheets. This template uses this [example spreadsheet](https://docs.google.com/spreadsheets/d/1I1BWeGqy_-wcI5jbWqTzNkIP_uy3PdD9wZAZ-nU5TUY/edit#gid=0).

Free

RAG chatbot for company documents using Google Drive and Gemini

This workflow implements a Retrieval Augmented Generation (RAG) chatbot that answers employee questions based on company documents stored in Google Drive. It automatically indexes new or updated documents in a Pinecone vector database, allowing the chatbot to provide accurate and up-to-date information. The workflow uses Google's Gemini AI for both embeddings and response generation. How it works The workflow uses two Google Drive Trigger nodes: one for detecting new files added to a speci

Free

Create a new Google Sheets row for every new article from RSS feed using Claude

Automatically add a new row in Google Sheets for each new article from your RSS feed using Claude AI. Streamline content tracking effortlessly.

Free

Company knowledge base agent (RAG)

Overview Turn your docs into an AI-powered internal or public-facing assistant. This chatbot workflow uses RAG (Retrieval-Augmented Generation) with Supabase vector search to answer employee or customer questions based on your company documents—automatically updated via Google Drive. Whether it’s deployed in Telegram or embedded on your website, this agent supports voice and text input, transcribes voice messages, pulls relevant context from your internal files, and responds with a helpful,

Free

Automatic media download from WhatsApp Business messages with HTTP storage

This workflow listens for incoming WhatsApp messages that contain media (e.g., images) and automatically downloads the media file using WhatsApp's private media URL. - The trigger node activates when a WhatsApp message with media is received. - The media ID is extracted from the message payload. - A private media URL is retrieved using the media ID. - The media file is downloaded using an authenticated HTTP request. Ideal for: - Archiving WhatsApp media to external systems. - Triggering further

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free