AI document extraction template

Intelligent document processing with an LLM: OCR, classify, extract to a schema, validate, and send low-confidence cases to a person.

Use this templateFree, opens in your browser. No sign-up.

AI document extraction template
AI document extraction
Every document is read, sorted and turned into fields. Only the ones the checks doubt reach a person.
Documents: email, upload, scan
OCR + layout
Classify: invoice, contract, ID
LLM extracts fields to a JSON schema
Validate: totals, dates, VAT ID
Confident and valid?
Post to the ERP
Review queue: a person fixes it
Corrections become test cases
Invoice fields
Field
Rule
invoice_no
Unique per vendor
total
= lines + tax, ±0.01
due_date
After the issue date
vat_id
Matches the vendor record
Aim: 85% straight through; confidence threshold 0.9
yes
no
The AI document extraction template as it opens in Kelvo: 9 boxes, 1 decision among them, 1 table and 9 links.

What's on the board

Table columns: Field, Rule.

  • Documents: email, upload, scan
  • Classify: invoice, contract, ID
  • LLM extracts fields to a JSON schema
  • Validate: totals, dates, VAT ID
  • OCR + layout
  • Invoice fields
  • Confident and valid?
  • Post to the ERP
  • Review queue: a person fixes it
  • Corrections become test cases
  • Aim: 85% straight through; confidence threshold 0.9

How to use this template

  1. Click Use this template. It opens in the Kelvo app as a new board, saved in your browser.
  2. Double-click any box to change its text. Replace the examples with your own content.
  3. Sketch, then convert. Draw boxes and arrows with the pen, select the strokes and click Convert sketch: they become real boxes and links.
  4. Ask Kelvo right on the board (Pro). With Pro, type @kelvo and what you want in any box or text, for example “@kelvo add error handling”, and press Enter. The change is made there and the request disappears; ⌘Z undoes it.
  5. Keep the prompt next to the diagram. Add a code block from the Insert (+) menu for prompts, schemas or config, right beside the boxes they belong to.

Good for

  • ai
  • llm
  • document processing
  • idp
  • ocr
  • automation
  • Explaining an LLM feature's architecture to engineers and stakeholders
  • Deciding between prompting, retrieval and fine-tuning
  • Planning evaluations and risks before launch

Related templates

  • RAG pipeline template previewRAG pipeline

    Retrieval-augmented generation end to end: ingest and embed documents offline, then retrieve, rerank and answer with citations.

  • LLM agent loop template previewLLM agent loop

    How a tool-using agent plans, calls tools, observes results and updates memory until the goal is met, with guardrails.

  • Prompt design canvas template previewPrompt design canvas

    Design a production prompt piece by piece — role, context, task, constraints, examples, output format — plus test cases.

  • Model evaluation plan template previewModel evaluation plan

    Metrics, datasets, targets and owners for evaluating an LLM or ML model, plus the gate a release must pass.

  • Email nurture sequence template previewEmail nurture sequence

    A trial nurture flow with timed emails, an activation check and different paths for engaged and quiet users.

  • Individual development plan template previewIndividual development plan

    A year's growth plan for one person: where they are, where they want to be, and the experience, people and courses that get them there.

All ai and machine learning diagram templates · All templates

Use the AI document extraction template