Skip to content

Extract SKUs, dates, and entities from document text

Pull purchase IDs, shipping addresses, SKU tables, and contact blocks from uploaded document text into normalized JSON objects.

Copy the prompt and paste it into the AI assistant you already use.

Checklist for accurate document entity extraction

  1. 01

    Split metadata from line items

    Define separate schema blocks for document header fields and repeating table item arrays.

  2. 02

    Instruct against inventing missing keys

    Require nullable properties so illegible or absent document fields return null reliably.

  3. 03

    Clean OCR whitespace artifacts

    Preserve rough column alignment when passing extracted PDF text so line items stay grouped.

  4. 04

    Flag ambiguous OCR fields

    Include an extraction_notes array alerting callers to clipped pages or unreadable digits.

Common questions

Can this accept messy OCR output with broken line wraps?

Yes. Visual prompt instructions plus layout-preserving text handling extract coherent header and row entities even from noisy OCR.

How do we handle multi-page packing slips?

Passing full document text within context limits extracts continuous line-item arrays across page breaks cleanly.

Can we highlight uncertain extractions for human check?

Adding a review_flags array in your schema lets the endpoint report clipped text or ambiguous quantities.