Generate short scripts, TTS audio, and SRT captions with OpenAI GPT-4o and Whisper
Ready for 3.0What this workflow does
This workflow has 7 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls api.openai.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Generate Script (HTTP Request): calls api.openai.com (POST)
- Extract Script (Code): runs custom JavaScript code
- Generate TTS Audio (HTTP Request): calls api.openai.com (POST)
- Transcribe Whisper (HTTP Request): calls api.openai.com (POST)
- Build SRT (Code): runs custom JavaScript code
- Respond (Respond to Webhook): sends the response back to the webhook caller
HTTP calls to: api.openai.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (4)
- Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code
From the author
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…