Templates / Process legal documents with Ollama AI & generate HTML reports (100% local)

Process legal documents with Ollama AI & generate HTML reports (100% local)

Ready for 3.0

by Rish ✓ · 1,103 views · created 2025-06-11 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 7 nodes and runs on Local File events. Along the way it connects OpenAI Chat Model.

How it runs

Trigger: On Local File events.

  1. Read/Write Files from Disk: reads a file from disk
  2. Extract from File: extracts data from a file
  3. AI Agent: runs an AI agent, with model: OpenAI Chat Model
  4. Convert to File: converts data to a file
  5. Read/Write Files from Disk: reads a file from disk

Services it uses

OpenAI Chat Model

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 (6)

From the author

TUTORIAL VIDEO Key Features 🧠 AI-Powered Analysis - Use any Ollama-compatible model (Llama, Mistral, CodeLlama, etc.) 🔧 Flexible Input - Supports PDFs, Word docs, text files, and more 📊 Structured Output - Generates clean HTML reports and summaries 🔄…

Excerpt from Rish's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.