Skip to main content

Automate UGC video creation with Sora 2, OpenAI, and Gemini

Workflow preview

Workflow preview
100%
Automate UGC video creation with Sora 2, OpenAI, and Gemini preview
Open on n8n.io

Important notice

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

1. Workflow Overview

In this tutorial, I’ll show how to create UGC (User Generated Content) videos automatically using n8n and Sora 2. This workflow uses OpenAI to generate detailed prompts and Sora 2 to produce realis...

Best for

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

Tools used

n8n-nodes-base.formtrigger, n8n-nodes-base.converttofile, n8n-nodes-base.if, n8n-nodes-base.wait, n8n-nodes-base.set, n8n-nodes-base.googledrive, n8n-nodes-base.httprequest, n8n-nodes-base.extractfromfile

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automate UGC video creation with Sora 2, OpenAI, and Gemini
Workflow name
Automate UGC video creation with Sora 2, OpenAI, and Gemini

In this tutorial, I’ll show how to create UGC (User Generated Content) videos automatically using n8n and Sora 2.

This workflow uses OpenAI to generate detailed prompts and Sora 2 to produce realistic UGC-style videos that look natural and engaging.

Who is this for?

  • Marketers and social media managers scaling short-form video content

  • Agencies producing branded or influencer-style content

  • Content creators and freelancers automating their video workflows

  • Anyone exploring AI-driven video generation and automation

What problem is this workflow solving?

Creating authentic, human-like UGC videos manually takes time and effort.
This workflow automates the entire process by:

  • Generating engaging scripts or prompts via OpenAI

  • Sending those prompts to Sora 2 for automatic video generation

  • Managing rendering and delivery inside n8n

  • Eliminating manual editing and production steps

What this workflow does

This workflow connects n8n, OpenAI, and Sora 2 to fully automate the creation of short-form UGC videos.

The steps include:

  1. Taking user input (topic, tone, niche).

  2. Using OpenAI to create a detailed video prompt.

  3. Sending the prompt to Sora 2 via HTTP Request to generate the video.

  4. Handling video rendering and storing or sending results automatically.

By the end, you’ll have a complete UGC video pipeline running on autopilot — producing content for under $1.50 per video.

Setup

  1. Create Accounts:
  • Sign up for n8n.io (cloud or self-hosted).

  • Get access to OpenAI API and Sora 2.

  1. Generate API Keys:
  • Retrieve API keys from OpenAI and Sora 2.

  • Store them securely in n8n credentials.

  1. Create Workflow:
  • Add a Form Trigger or Webhook Trigger for input (topic, target audience).

  • Add an OpenAI Node to generate script prompts.

  • Connect an HTTP Request Node to send the prompt to Sora 2.

  • Use a Wait Node or delay logic for video rendering completion.

  • Store or send the output video file via Gmail, Telegram, or Google Drive.

  1. Test the Workflow:
  • Run a test topic.

  • Confirm that Sora 2 generates and returns a video automatically.

How to customize this workflow to your needs

  • Adjust OpenAI prompts for specific video styles (tutorials, product demos, testimonials).

  • Integrate video output with social media platforms via n8n nodes.

  • Add text-to-speech layers for voiceover automation.

  • Schedule automatic content creation using Cron triggers.

  • Connect with Notion or Airtable to manage content ideas.

Notes

  • You’ll need valid API keys for both OpenAI and Sora 2.

  • Sora 2 may charge per render (approx. $1–$1.50 per video).

  • Ensure your workflow includes sufficient delay/wait handling for video rendering.

  • Works seamlessly on n8n Cloud or self-hosted setups.

Want a Video Tutorial on How to Set Up This Automation?

👉 Watch on YouTube

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

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.3

Block 2 - convert_product_to_image

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

Block 3 - check_status

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

Block 4 - delay

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

Block 5 - set_frame_result

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

Block 6 - upload_video

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

Block 7 - generate_ad_prompts

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

Block 8 - Convert To Base 64

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

Block 9 - Generate Ideal Persona

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 10 - Persona Prompt Setup

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

Block 11 - UGC Video Prompts Setup

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

Block 12 - Extract Prompts

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 13 - Generate First Frame Image

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

Block 14 - Sticky Note

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

Block 15 - Sticky Note1

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

Block 16 - Sticky Note2

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

Block 17 - Download Video

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

Block 18 - Generate Video With SORA

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

Block 19 - Get Video Creation Status

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

Block 20 - Sticky Note3

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

Block 21 - Resize For Selfie Video

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

Block 22 - Download First Frame

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

Block 23 - Split Prompt To Arrays

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

Block 24 - Create 3 Videos

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

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

3. Summary Table

Workflow Automate UGC video creation with Sora 2, OpenAI, and Gemini
Complexity advanced
Nodes 28
Categories Content Creation, Multimodal AI
Author Santhej Kallada
Published 04 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10488/10488.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 Automate UGC video creation with Sora 2, OpenAI, and Gemini do?

In this tutorial, I’ll show how to create UGC (User Generated Content) videos automatically using n8n and Sora 2. This workflow uses OpenAI to generate detailed prompts and Sora 2 to produce realis...

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.