AutomatedReality, home

Local AI Video Generator in n8n That Turns a Topic Into a Shot List

Overview & Architecture

Prepping a video means researching, scripting, planning shots and briefing a thumbnail. None of it needs a paid tool.

This blueprint starts with an n8n form where you enter a topic, an audience and a video length. A local SearXNG instance gathers current references, a local Ollama model (gemma4 12b) writes the script, Code nodes turn it into a shot list with timing markers, and a second Ollama call writes the thumbnail brief. The result goes into a Google Doc and a Telegram message. Only the Doc and the message leave your machine.

In the test run, a 60 second video went from form submit to Telegram message in about 65 seconds, mostly the two Ollama calls. That was one run on the creator’s home server, so expect different times on your hardware.

The Pipeline

  1. Form Trigger: Topic, audience, a length dropdown (30, 60 or 180 seconds) and your Telegram chat ID.
  2. Clean Input: A Code node tidies the answers, picks how many beats to ask for and builds the search query.
  3. Search SearXNG: An HTTP Request node queries your local SearXNG instance for JSON results.
  4. Trim References: A Code node keeps the top five results as a compact reference block so the prompt stays small.
  5. Write Script: A Basic LLM Chain with an Ollama Chat Model writes a hook, numbered beats and a call to action.
  6. Shot List: A Code node parses the script, assigns whole-second durations that add up to the target length, and writes -ss and -to ffmpeg timing markers as an aligned text table.
  7. Thumbnail Brief: A second Ollama chain writes a short thumbnail brief from the script.
  8. Google Doc: One Google Docs node creates the document and another inserts the script, shot list and brief.
  9. Telegram: You get the doc link, the shot count and the total runtime.

What You Need

Key Deployment Hurdles & Solutions

Download the Workflow (.json)

Import-ready n8n workflow with all 12 nodes. In n8n choose Import from file, then attach your own Ollama, Google Docs and Telegram credentials and check the SearXNG address.

Download the n8n workflow (.json)

Download the Companion System Prompt (.md)

Enter your first name to personalize the assistant prompt so your AI helper can walk you through the n8n, Ollama, SearXNG, Google Docs and Telegram setup step by step. Add your email optionally to get notified when new home lab blueprints drop.