Generate SRT and VTT subtitles from media URLs with Gladia and Google Drive
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs when someone submits an n8n form (“Generate subtitles from a media URL”). Along the way it connects Google Drive. It also calls api.gladia.io over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Generate subtitles from a media URL”).
- Set Polling Config (Edit Fields (Set)): sets 2 fields: wait_seconds, max_attempts
- Submit Media to Gladia (HTTP Request): calls api.gladia.io (POST)
- Wait: pauses before continuing
- Report Subtitle Failure (n8n Form): shows the next form page
- Fetch Transcription Result (HTTP Request): calls an HTTP API
- Route by Status (Switch): routes items into 2 branches
- Build Subtitle Files (Code): runs custom JavaScript code
- Upload Subtitles to Drive (Google Drive): upload (file)
- Compose Download Reply (Code): runs custom JavaScript code
- Show Download Links (n8n Form): shows the next form page
Services it uses
HTTP calls to: api.gladia.io
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 (8)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - Google Drive
n8n-nodes-base.googleDrive - n8n Form
n8n-nodes-base.form
From the author
Quick Overview This workflow collects a public media URL via an n8n form, sends it to Gladia to generate SRT and VTT subtitles, uploads the subtitle files to Google Drive, and returns Drive download links back in the form completion page. How it works 1.…