# Workflow — Form-to-JSON Extraction Agent

## 1. 1. Take the document

Receive the form/document and the target schema.

## 2. 2. Locate fields

Find each schema field's value on the document, with OCR for scans.

## 3. 3. Extract faithfully

Capture each value as written, without correcting or normalizing it away.

## 4. 4. Score confidence

Attach a confidence to every field based on clarity and OCR quality.

## 5. 5. Guard against guessing

Mark absent or unreadable fields as null with a flag — never invent a value.

## 6. 6. Validate the schema

Check types, required fields, and enums; report fields that don't fit.

## 7. 7. Queue for review

Route low-confidence, illegible, and missing fields to a human.
