📦 ai7 nodes20-25 min

AI Document Summarizer with Ollama

Eliminate document reading fatigue. Drop any PDF, DOCX, or text file into a monitored folder and this workflow extracts the text, sends it to your local Ollama instance (hermes3, mistral, llama3, or any model), generates a concise summary with key points and action items, emails the summary to you, and saves both the original and summary to an output folder. Fully local — no data leaves your machine. Perfect for research papers, contracts, meeting notes, and long reports.

aiollamadocumentsummarizationautomation
$24

One-time purchase

⬇ Download Free Preview

How It Works

1Watch

Monitors a folder for new PDF, DOCX, or TXT files

2Extract

Extracts full text from document using built-in parser

3Summarize

Sends to Ollama with optimized prompt for concise summaries

4Deliver

Emails summary + saves to output/originals/ and output/summaries/

📋 Prerequisites

  • Local Ollama instance running (e.g., hermes3:8b, mistral, llama3)
  • File system access (local folder or network share)
  • n8n instance with file system access
  • Email configuration (Gmail/SMTP)

🎁 What You Get

  • Importable n8n workflow JSON file
  • File watcher trigger configuration
  • PDF/DOCX/TXT text extraction
  • Ollama API prompt template for summarization
  • Email delivery with summary
  • Organized output folder structure

📖 Setup Guide

## Setup Guide 1. **Watch File node**: Monitor input folder (e.g., ~/Documents/to-summarize/) for new files (.pdf, .docx, .txt) 2. **Extract from File node**: Convert PDF to text (or DOCX/TXT passthrough) 3. **Function node**: Trim text to model's context window (~8000 chars for hermes3:8b) 4. **HTTP Request node (Ollama)**: POST to http://localhost:11434/api/generate with summarization prompt 5. **Function node**: Parse Ollama JSON response, extract summary text 6. **Gmail node**: Email summary with original filename and character count 7. **Move File node**: Move original to output/originals/, write summary to output/summaries/ > 💡 **Pro tip**: Customize the prompt per document type — use "Extract key legal obligations" for contracts, "Identify methodology and findings" for research papers, "List action items and decisions" for meeting notes.

Ready to automate?

Get this template and start automating in 20-25 min. One-time purchase, lifetime access.