Skip to main content

Transform text to UGC videos with OpenAI SORA-2 on Replicate

Workflow preview

Workflow preview
100%
Transform text to UGC videos with OpenAI SORA-2 on Replicate 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 entire text to video generation process using OpenAI's SORA 2 model via Replicate API. Simply provide a seed image, text prompt describing your desired scene, and video ...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.set, n8n-nodes-base.wait, n8n-nodes-base.httprequest, n8n-nodes-base.if, n8n-nodes-base.code, n8n-nodes-base.stickynote, n8n-nodes-base.splitinbatches

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Transform text to UGC videos with OpenAI SORA-2 on Replicate
Workflow name
Transform text to UGC videos with OpenAI SORA-2 on Replicate

This workflow automates the entire text-to-video generation process using OpenAI's SORA-2 model via Replicate API. Simply provide a seed image, text prompt describing your desired scene, and video duration (4, 8, or 12 seconds), and the workflow handles the video creation, status monitoring, and delivery of your AI-generated content - typically ready in 2-5 minutes.

Tools Used

  • n8n: The automation platform that orchestrates the workflow
  • Replicate API: Powers the OpenAI SORA-2 AI model for text-to-video generation
  • OpenAI API: Required for SORA-2 model authentication
  • Status Monitoring: Automated checking system with intelligent retry logic
  • Error Handling: Built-in resilience with comprehensive error management
  • Batch Processing: Optional bulk generation for multiple videos

How to Install

  1. Import the Workflow: Download the .json file and import it into your n8n instance
  2. Get API Keys: Sign up at replicate.com and openai.com for your API tokens
  3. Configure API Tokens: Replace placeholders in the "Set API Token" node with your keys
  4. Add Seed Image: Update the image URL in the "Add Seed Image, Prompt and amount of seconds" node (1280x720 recommended)
  5. Write Your Prompt: Describe your desired video scene and set duration, then run the workflow

Use Cases

  • Ad Agencies: Generate multiple video variations for A/B testing campaigns
  • E-commerce Brands: Create product demonstration videos from a single photo
  • Content Creators: Produce unique video content without filming equipment
  • Marketing Teams: Rapidly iterate on video ad concepts for social media
  • Startups: Create professional video content without expensive production costs
  • Social Media Managers: Generate platform-specific video content at scale

Connect with Me

#n8n #automation #ai #sora2 #texttovideo #openai #replicate #contentcreation #videomarketing #adcreatives

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

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

Block 2 - Set API Token

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

Block 3 - Wait 5s

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

Block 4 - Check Status

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

Block 5 - Is Complete?

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

Block 6 - Has Failed?

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

Block 7 - Success Response

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

Block 8 - Error Response

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

Block 9 - Display Result

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

Block 10 - Log Request

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

Block 11 - Sticky Note9

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

Block 12 - Sticky Note4

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

Block 13 - Create Video

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

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 - Loop Over Items

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

Block 18 - Sticky Note3

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

Block 19 - Sticky Note5

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

Block 20 - Wait 90s

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

Block 21 - Add Seed Image, Prompt and amount of seconds

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

3. Summary Table

Workflow Transform text to UGC videos with OpenAI SORA-2 on Replicate
Complexity advanced
Nodes 21
Categories Content Creation, Multimodal AI
Author Yaron Been
Published 07 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9362/9362.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 Transform text to UGC videos with OpenAI SORA-2 on Replicate do?

This workflow automates the entire text to video generation process using OpenAI's SORA 2 model via Replicate API. Simply provide a seed image, text prompt describing your desired scene, and video ...

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.