← All projects

Reference solution, sample documents

Production documents agent

The agent reads orders and quality reports in different formats, extracts their data into a fixed schema, and hands the fields it is not sure about to a person.

  • documents
  • quality
  • ERP

Problem

Orders arrive as PDFs, scans or e-mail bodies, each with its own layout. Quality reports have their own forms. Someone retypes them into a spreadsheet or the ERP, which takes time and causes mistakes that surface only on the shop floor or in a complaint.

Full automation without control is risky: a missing field or an ambiguous quantity must not be “guessed”.

Solution

The agent turns a document into data in a fixed schema, checks it against rules and flags uncertain fields. The interface shows the document on the left and the extracted data on the right, with the fields to check highlighted. Approved data goes to the export.

  • extraction into a schema (structured output) and rule validation
  • hard cases, such as a missing field or an ambiguity, are flagged, not guessed
  • export to CSV and XLSX, standing in for an ERP integration in the reference version
  • a recorded mode at no cost and a live mode with an API key, run locally

Try it

The application loads here as you scroll and needs JavaScript. You can also open it in a separate tab.

From document to record. Recorded runs on several fictional orders and quality reports, including documents with missing data. Recorded run: the application replays saved answers on sample data and makes no API calls.

Open the application in a new tab (opens in a new tab)

Stack

  • TypeScript
  • Vite
  • Claude API (structured output)
  • SheetJS
  • Vitest

Repository

The repository is private for now; the code is available on request.

A similar problem on your side?

Tell us about it in a few clicks. You do not need a finished specification.

Tell us what you dream of

We usually reply within one business day. Prefer e-mail? Write to joanna@kokot.it.