Skip to content

Receipt Capture

Snap or drop a receipt and an agent reads it. Its steps show live, then the amount large and each field with its confidence. The ones it is unsure of are flagged with a reason: here a service fee of 13.4% on a lunch in Saigon. Tap a field to confirm or fix it in a sheet; Save stays off until every flag is settled. Camera first on a phone, a drop zone on a desktop.

On this page

Examples

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

read
(source, signal) => AsyncIterable<ReceiptEvent>
Yields steps ({ type: "step", id, title, detail, status }) and fields ({ type: "field", field }). Stop when the signal aborts: Retake aborts it.
onSave
(fields, source) => void | Promise
Gets the settled fields. The button spins until it resolves.
fields
string[]
Defaultmerchant, date, total, category, account
The keys you expect, in order. Placeholders hold their place while reading.
threshold
number
Default0.85
Fields under this confidence are flagged, as are fields with a reason.
samples / defaultSample
ReceiptSample[] / string
Ready-made receipts to try, and one to start on.
categories
ExpenseCategory[]
Defaultsix defaults
The category field is picked from these.
title
ReactNode
Default"New expense"
The heading.

When to use

When to use

  • Turning a photo of a receipt into an expense, with the agent's steps and its unsure fields flagged for a person.
  • Any capture flow where a model reads a picture and a person confirms before it is saved.

When not to use

  • A long document with many typed fields and its source boxes: use Document Extract.
  • Uploading files with no reading step: use File Drop.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Receipt Capture to my app and wire it to my own data.
  • I need turning a photo of a receipt into an expense, with the agent's steps and its unsure fields flagged for a person. Set that up with the Knowns UI Receipt Capture.
  • Which Receipt Capture props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "receipt-capture" }) and search_docs({ query: "receipt capture" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Receipt Capture, or found something off? We read every message.