Skip to main content

Generate short scripts, TTS audio, and SRT captions with OpenAI GPT-4o and Whisper

Workflow preview

Workflow preview
100%
Generate short scripts, TTS audio, and SRT captions with OpenAI GPT-4o and Whisper preview
Open on n8n.io

1. Workflow Overview

Quick overview This workflow exposes a webhook that generates a punchline first YouTube Shorts script with OpenAI, turns it into an MP3 voiceover using OpenAI Text to Speech, then transcribes that ...

Best for

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

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.respondtowebhook, n8n-nodes-base.httprequest, n8n-nodes-base.code, 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 Foldworks Studio LLC.

Original n8n.io source

1.1 Workflow description

Title
Generate short scripts, TTS audio, and SRT captions with OpenAI GPT-4o and Whisper
Workflow name
Generate short scripts, TTS audio, and SRT captions with OpenAI GPT-4o and Whisper

Quick overview

This workflow exposes a webhook that generates a punchline-first YouTube Shorts script with OpenAI, turns it into an MP3 voiceover using OpenAI Text-to-Speech, then transcribes that audio with Whisper to return word-timed SRT captions plus the audio as base64.

How it works

  1. Receives a POST webhook request with a topic plus optional word count and OpenAI TTS voice.
  2. Calls the OpenAI Chat Completions API (gpt-4o-mini) to generate a short CLAIM → PROOF → ESCALATION script.
  3. Extracts the script text from the OpenAI response and validates it is not empty.
  4. Sends the script to the OpenAI Text-to-Speech API (tts-1) to generate an MP3 narration.
  5. Uploads the MP3 to the OpenAI Whisper transcription API (whisper-1) to get word-level timestamps.
  6. Builds an SRT file by chunking timed words into short caption cues and responds to the webhook with {script, srt, audioBase64, durationSeconds}.

Setup

  1. Create an OpenAI credential in n8n with your OpenAI API key and select it for the three OpenAI HTTP requests (Chat Completions, Text-to-Speech, and Transcriptions).
  2. Activate the workflow and copy the webhook URL, then POST JSON containing at least a "topic" (optionally "words" and "voice") from your client or source app.
  3. If you want to store the MP3 instead of returning it inline, add a file or cloud storage node after audio generation or after transcription and map the binary audio accordingly.

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.1

Block 2 - Respond

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.5

Block 3 - Generate Script

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

Block 4 - Extract Script

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

Block 5 - Generate TTS Audio

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

Block 6 - Transcribe Whisper

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

Block 7 - Build SRT

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

Block 8 - Sticky Overview

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

Block 9 - Sticky Script

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

Block 10 - Sticky Receive

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

Block 11 - Sticky Captions

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

Block 12 - Sticky Audio

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

Block 13 - Sticky Respond

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

3. Summary Table

Workflow Generate short scripts, TTS audio, and SRT captions with OpenAI GPT-4o and Whisper
Complexity intermediate
Nodes 13
Categories Content Creation, Multimodal AI
Author Foldworks Studio LLC
Published 03 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16105/16105.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 Generate short scripts, TTS audio, and SRT captions with OpenAI GPT-4o and Whisper do?

Quick overview This workflow exposes a webhook that generates a punchline first YouTube Shorts script with OpenAI, turns it into an MP3 voiceover using OpenAI Text to Speech, then transcribes that ...

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.