AutomatedReality, home

n8n Automation for Content Creation With a Brief Pipeline

Overview & Architecture

Going from an idea to a usable outline normally means a blank page, a pile of browser tabs and a lot of rewriting. This blueprint puts that process behind one n8n form. You enter a topic, audience and goal, optionally paste source text or upload a file, and choose Approve or Hold for review.

The AI steps run on a local Ollama model, and references come from your own SearXNG search server. The finished record is saved to a Postgres table together with its approval status.

The Pipeline

  1. Form Trigger: Collects topic, audience, goal, optional pasted source material, an optional source file and an Approve / Hold for review dropdown.
  2. Normalize Inputs: A Code node cleans the fields and marks whether a file was uploaded.
  3. Apache Tika Extraction: If a file was uploaded, an HTTP Request sends it to Tika’s /tika endpoint for plain text. With no file this step is skipped. A Code node then merges pasted and extracted text (capped at 12,000 characters).
  4. Content Brief: A Basic LLM Chain with an Ollama Chat Model (gemma4:12b-it-qat, 8192 context) writes a structured brief.
  5. SearXNG References: An HTTP Request calls the SearXNG JSON search endpoint and a Code node removes duplicate URLs and keeps up to six numbered references.
  6. Draft: A second Ollama stage writes a first draft from the brief, source text and references.
  7. Critique and Revision Plan: A third stage critiques the draft and produces a numbered revision checklist.
  8. Publish-Ready Outline: A fourth stage applies the revision plan and outputs the outline with a sources list.
  9. Save and Approval Gate: A Postgres node creates the content_pipeline table if needed and saves every stage plus the status. An If node returns the finished markdown document for approved items, or a pending message for held ones.

What You Need

Key Deployment Hurdles & Solutions

Download the Workflow (.json)

Import-ready n8n workflow with all 21 nodes including the four Ollama model nodes. In n8n choose Import from file, then select your own Ollama and Postgres credentials on those nodes and check the Tika and SearXNG URLs.

Download the n8n workflow (.json)

Download the Companion System Prompt (.md)

Enter your first name to personalize the content-pipeline assistant prompt so your AI helper can walk you through Ollama, SearXNG, Tika and Postgres setup step by step. Add your email optionally to get notified when new home lab blueprints drop.