Skip to main content

Create AI videos from prompts with OpenAI script, TTS & Pexels B-roll assembly

Workflow preview

Workflow preview
100%
Create AI videos from prompts with OpenAI script, TTS & Pexels B-roll assembly preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Automatically creates complete videos from a text prompt—script, voiceover, stock footage, and subtitles all assembled and ready. How it works Send a video topic via webhook (e.g., "Create a 60 sec...

Best for

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

Tools used

n8n-nodes-base.openai, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.merge, n8n-nodes-base.executecommand, n8n-nodes-base.googledrive, n8n-nodes-base.stickynote, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Oneclick AI Squad.

Original n8n.io source

1.1 Workflow description

Title
Create AI videos from prompts with OpenAI script, TTS & Pexels B-roll assembly
Workflow name
Create AI videos from prompts with OpenAI script, TTS & Pexels B-roll assembly

Automatically creates complete videos from a text prompt—script, voiceover, stock footage, and subtitles all assembled and ready.

How it works

Send a video topic via webhook (e.g., "Create a 60-second video about morning exercise"). The workflow uses OpenAI to generate a structured script with scenes, converts text to natural-sounding speech, searches Pexels for matching B-roll footage, and downloads everything. Finally, it merges audio with video, generates SRT subtitles, and prepares all components for final assembly.

The workflow handles parallel processing—while generating voiceover, it simultaneously searches and downloads stock footage to save time.

Setup steps

  1. Add OpenAI credentials for script generation and text-to-speech
  2. Get a free Pexels API key from pexels.com/api for stock footage access
  3. Connect Google Drive for storing the final video output
  4. Install FFmpeg (optional) for automated video assembly, or manually combine the components
  5. Test the webhook by sending a POST request with your video topic

Input format:

{
  "prompt": "Your video topic here",
  "duration": 60,
  "style": "motivational"
}

What you get

  • ✅ AI-generated script broken into scenes
  • ✅ Professional voiceover audio (MP3)
  • ✅ Downloaded stock footage clips (MP4)
  • ✅ Timed subtitles file (SRT)
  • ✅ All components ready for final editing

Note: The final video assembly requires FFmpeg or a video editor. All components are prepared and organized by scene number for easy manual editing if needed.

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 - Generate Video Script

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

Block 2 - Parse Script into Scenes

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

Block 3 - Generate Voiceover (TTS)

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

Block 4 - Search Stock Footage (Pexels)

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

Block 5 - Extract Video URLs

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

Block 6 - Download B-Roll Footage

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

Block 7 - Merge Audio & Video

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 2.1

Block 8 - Generate Subtitles (SRT)

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

Block 9 - Assemble Final Video

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

Block 10 - Save to Google Drive

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 - Set Video Parameters

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

Block 13 - Prepare Script Prompt

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

Block 14 - Webhook

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

Block 15 - Sticky Note1

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

Block 16 - Sticky Note3

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

Block 17 - Sticky Note5

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

Block 18 - Sticky Note8

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

3. Summary Table

Workflow Create AI videos from prompts with OpenAI script, TTS & Pexels B-roll assembly
Complexity advanced
Nodes 18
Categories Content Creation, Multimodal AI
Author Oneclick AI Squad
Published 04 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10502/10502.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 Create AI videos from prompts with OpenAI script, TTS & Pexels B-roll assembly do?

Automatically creates complete videos from a text prompt—script, voiceover, stock footage, and subtitles all assembled and ready. How it works Send a video topic via webhook (e.g., "Create a 60 sec...

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.