Skip to content
CASE STUDY

An on-premises AI document processing pipeline

A legal services provider needed to process documents with varying layouts in batches of up to 100 pages, without the recurring cost of a cloud AI API at volume. We deployed a physical AI server on-site behind the client's own static IP, orchestrated by n8n, with a local model returning structured JSON and no per-request cost.

CLIENT
A US legal services provider
INDUSTRY
Legal services
ENGAGEMENT
On-premises AI and OCR document processing architecture and development
STACK
On-prem AI server, n8n, Local LLM, OCR pipeline
THE PROBLEM

High-volume document processing, with cloud AI pricing and data residency both working against it.

  • Cloud AI API costs would be significant at the client's document volume
  • Documents have varying layouts and formatting, requiring flexible, reliable extraction rather than a fixed template
  • Data-residency and privacy considerations apply when legal documents are sent to outside services
WHAT WE BUILT

One system, built around how the work actually happens.

01A physical AI server on-site
02n8n as the automation layer
03A local model, not a cloud API call
04No per-request AI API cost
HARDWARE

A physical AI server on-site

Installed at the client's own office, sitting behind their static IP, rather than a cloud instance or a VPS anywhere else.

ORCHESTRATION

n8n as the automation layer

The client's web app hands a document to n8n, which routes it to the on-premises AI server and returns the structured result to the application.

PROCESSING

A local model, not a cloud API call

A locally hosted model (Llama-class) processes each document on the client's own AI server and returns structured JSON, rather than sending it to a third-party AI API.

COST

No per-request AI API cost

The cost model is the one-time hardware investment plus electricity and upkeep, rather than a fee for every request as volume grows.

TECHNOLOGIES

What it runs on.

On-prem AI servern8nLocal LLMOCR pipeline
OUTCOME

What changed.

  • No per-request cloud AI API cost, only the one-time hardware cost plus electricity and upkeep
  • Documents with varying layouts and page counts processed into structured JSON
  • Document processing runs on the client's own AI server rather than a third-party cloud AI API

This page shows no percentages or figures because none have been confirmed by the client for publication. Where a number is not verified, it is left out rather than estimated.

RELATED SERVICES

The work behind this project.

RELATED INDUSTRIES

Where this work applies.

LET'S TALK

Running into something similar?

Describe what you are dealing with and we will tell you honestly whether this is a pattern we have solved before.

Start a project