n8n YouTube Automation Free: Turn One Video Into a Week of Content
Overview & Architecture
One video can feed a whole week of posts, but writing them is the slow part. This blueprint takes a YouTube URL from an n8n form, transcribes the audio with a local Whisper server, and uses a local Ollama model to pull out the core ideas and then draft a social thread, three short-form video scripts and a newsletter.
Each asset is saved as a row in a Postgres table and a Discord message lists what was created. The transcription and writing run on your own hardware; only the video download and the Discord message use the internet.
The Pipeline
- Video URL Form: An n8n form with one field for the YouTube URL.
- Download and Extract Audio: A local ffmpeg service downloads the video and extracts an mp3.
- Local Transcription: Speaches (faster-whisper,
Systran/faster-distil-whisper-large-v3) returns the transcript. - Find the Core Ideas: Ollama (
qwen2.5:14b-instruct-q5_K_M) returns ideas, quotes and takeaways as JSON. A Code node repairs the reply and enforces that structure. - Draft the Content: A second Ollama call writes the thread, three short scripts and a newsletter.
- Split, Route and Save: A Code node labels three assets, a Switch routes them, and three Postgres nodes save one row each.
- Discord Summary: One message lists the saved assets.
What You Need
- n8n (tested on version 2.45.7) with the Form Trigger, HTTP Request, Code, Switch, Merge, Basic LLM Chain, Ollama Chat Model, Postgres and Discord nodes
- A local Ollama server with
qwen2.5:14b-instruct-q5_K_Mor another model that fits your GPU - A Speaches container with the Whisper model downloaded
- A service that can download a YouTube video and extract mp3 audio over HTTP (the build used a custom ffmpeg container)
- A Postgres database and a Discord webhook
Key Deployment Hurdles & Solutions
- Downloading YouTube Without Execute Command: n8n’s Execute Command node is disabled on this server, so the download goes through an HTTP service that wraps ffmpeg. It fetched a YouTube video in testing, but downloads like this can break when YouTube changes.
- Form Fields in a Scripted Test: Posting to the form by label left the URL empty and the download failed with
url must be http or https. Posting the field asfield-0worked. - Ollama’s JSON Reply Shape: With JSON format on, the LLM chain returned the parsed object rather than a
textstring, so the first run failed at the structure-enforcing Code node. The Code nodes now accept both. - Google Docs and Telegram Swapped Out: The assets are saved to Postgres and announced on Discord. Swap those nodes in if you prefer Docs and Telegram.
- Model Drift: The drafting model added a fact that was not in the test video, so read each draft before you post it.
- What Was Tested: One run on a 19-second YouTube video succeeded. The drafting call took about 88 seconds and idea extraction about 23 seconds. Longer videos were not tested, and the transcript is cut at 24000 characters.
Download the Workflow (.json)
Import-ready n8n workflow with 24 nodes including stage notes. In n8n choose Import from file, then connect your own Ollama, Postgres and Discord webhook credentials and point the download nodes at your own ffmpeg service.
Download the n8n workflow (.json)
Download the Companion System Prompt (.md)
Enter your first name to personalize the content-repurposing assistant prompt so your AI helper can walk you through the download service, Speaches, Ollama and Postgres setup step by step. Add your email optionally to get notified when new home lab blueprints drop.