Skip to main content

Automated UGC video generator with Gemini images and SORA 2

Workflow preview

Workflow preview
100%
Automated UGC video generator with Gemini images and SORA 2 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 workflow automates the creation of user generated content style product videos by combining Gemini's image generation with OpenAI's SORA 2 video generation. It accept...

Best for

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

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.wait, n8n-nodes-base.googlesheets, n8n-nodes-base.googledrive, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automated UGC video generator with Gemini images and SORA 2
Workflow name
Automated UGC video generator with Gemini images and SORA 2

This workflow automates the creation of user-generated-content-style product videos by combining Gemini's image generation with OpenAI's SORA 2 video generation. It accepts webhook requests with product descriptions, generates images and videos, stores them in Google Drive, and logs all outputs to Google Sheets for easy tracking.

Main Use Cases

  • Automate product video creation for e-commerce catalogs and social media.
  • Generate UGC-style content at scale without manual design work.
  • Create engaging video content from simple text prompts for marketing campaigns.
  • Build a centralized library of product videos with automated tracking and storage.

How it works

The workflow operates as a webhook-triggered process, organized into these stages:

  1. Webhook Trigger & Input

    • Accepts POST requests to the /create-ugc-video endpoint.
    • Required payload includes: product prompt, video prompt, Gemini API key, and OpenAI API key.
  2. Image Generation (Gemini)

    • Sends the product prompt to Google's Gemini 2.5 Flash Image model.
    • Generates a product image based on the description provided.
  3. Data Extraction

    • Code node extracts the base64 image data from Gemini's response.
    • Preserves all prompts and API keys for subsequent steps.
  4. Video Generation (SORA 2)

    • Sends the video prompt to OpenAI's SORA 2 API.
    • Initiates video generation with specifications: 720x1280 resolution, 8 seconds duration.
    • Returns a video generation job ID for polling.
  5. Video Status Polling

    • Continuously checks video generation status via OpenAI API.
    • If status is "completed": proceeds to download.
    • If status is still processing: waits 1 minute and retries (polling loop).
  6. Video Download & Storage

    • Downloads the completed video file from OpenAI.
    • Uploads the MP4 file to Google Drive (root folder).
    • Generates a shareable Google Drive link.
  7. Logging to Google Sheets

    • Records all generation details in a tracking spreadsheet:
      • Product description
      • Video URL (Google Drive link)
      • Generation status
      • Timestamp

Summary Flow:

Webhook Request → Generate Product Image (Gemini) → Extract Image Data → Generate Video (SORA 2) → Poll Status → If Complete: Download Video → Upload to Google Drive → Log to Google Sheets → Return Response

If Not Complete: Wait 1 Minute → Poll Status Again

Benefits:

  • Fully automated video creation pipeline from text to finished product.
  • Scalable solution for generating multiple product videos on demand.
  • Combines cutting-edge AI models (Gemini + SORA 2) for high-quality output.
  • Centralized storage in Google Drive with automatic logging in Google Sheets.
  • Flexible webhook interface allows integration with any application or service.
  • Retry mechanism ensures videos are captured even with longer processing times.

Created by Daniel Shashko

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 - Webhook

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

Block 2 - Nano Banana

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

Block 3 - Extract Image

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

Block 4 - SORA 2

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

Block 5 - Get Video

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

Block 6 - Video Complete?

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

Block 7 - Wait & Retry

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

Block 8 - Add to Google Sheets

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

Block 9 - Download Video File

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

Block 10 - Upload file

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

Block 11 - Sticky Note

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

Block 12 - Sticky Note1

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

Block 13 - Sticky Note2

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

Block 14 - Sticky Note3

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

Block 15 - Sticky Note4

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

Block 16 - Sticky Note5

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

Block 17 - Sticky Note6

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

Block 18 - Sticky Note7

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

Block 19 - Sticky Note8

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

Block 20 - Sticky Note9

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

Block 21 - Sticky Note10

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

3. Summary Table

Workflow Automated UGC video generator with Gemini images and SORA 2
Complexity advanced
Nodes 21
Categories Content Creation, Multimodal AI
Author Daniel Shashko
Published 22 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10053/10053.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 Automated UGC video generator with Gemini images and SORA 2 do?

This workflow automates the creation of user generated content style product videos by combining Gemini's image generation with OpenAI's SORA 2 video generation. It accept...

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.