User Journey
What a person sees and what the system does while a document is read, in version 1.
Watch a document being read
Someone who has just uploaded an invoiceEXTRACTION-V1-E3-01EXTRACTION-V1-E3-02EXTRACTION-V1-E3-04
Starts when: The app starts extraction after the upload.
The personSees 'Reading your document' with four steps: getting the file, reading it, checking the numbers, saving.
The systemExtraction records the job as queued and starts it in the background.
The personWatches each step tick off, without the page reloading.
The systemThe page asks for the job's status every 2 seconds; each step is marked done as it ends.
The personSees the document on the left and the fields on the right, each with a coloured confidence badge.
The systemClaude has read the document; the answer passed its schema check; the rule checks ran and the fields were saved. The job is extracted.
The personSees 'Review 3 flagged fields' or, if none, 'Continue to results'.
The systemThe app reads the flagged count from the job and offers the next step.
Result: Every value on the invoice is on screen, with how sure the system is and where it came from. Typically under a minute for a short invoice.
Check where a value came from
Someone looking at an extracted valueEXTRACTION-V1-E3-04
Starts when: Taps a field.
The personTaps the Total field, marked red.
The systemThe field's page, quote and reasons are already on the page from the fields request.
The personSees 'TOTAL DUE $1,240.00, page 2' and the reason 'Total ≠ subtotal + tax (1,150.00 + 80.00 = 1,230.00)'.
The systemNothing new is fetched.
The personOn a computer, sees the document jump to page 2.
The systemThe app moves its document preview to the field's page.
Result: The person can judge the value themselves, with the evidence in front of them.
Extraction fails, then a retry works
Someone whose extraction hit a problemEXTRACTION-V1-E3-01
Starts when: The model is overloaded.
The personSees the reading step take a little longer than usual.
The systemClaude reported overload. Extraction waits 2 seconds and tries again, then 8 seconds and tries once more.
The personSees 'Reading this document is taking longer than usual. Try again in a few minutes.' and a Retry button.
The systemBoth retries failed. The job is failed with model_unavailable, marked retryable. Nothing was charged twice.
The personTaps Retry a few minutes later.
The systemThe app starts a new job for the same file. The failed job stays in the history.
The personSees the steps run again and the fields appear.
The systemThe new job succeeds.
Result: The person recovers with one tap. Each attempt is recorded with its cost.
Look at cost and speed
The owner (admin)EXTRACTION-V1-E3-05
Starts when: Opens the jobs page.
The personOpens /admin/jobs.
The systemExtraction checks the caller is an admin; anyone else gets 'not found'.
The personSees the last 100 jobs with model, prompt version, pages, tokens, cost and time, and the failure rate, average cost and slowest times at the top.
The systemThe figures come from each job's record. No document content or file names are shown.
Result: The owner can see whether extraction stays under its targets: 60 seconds and $0.10 per document.
When something goes wrong
- The model is overloaded or rate-limited after both retries
model_unavailable - 'Reading this document is taking longer than usual. Try again in a few minutes.' with Retry.
- The model's answer does not fit the schema, even after one repair
output_invalid - 'We couldn't read this document reliably. Try again, or upload a clearer copy.'
- The file cannot be opened, for example a damaged or password-protected PDF
document_unreadable - 'We couldn't open this document. Upload another copy.'
- No text is found, even by OCR: a blank page, or a photo too blurred or dark to read
no_text_found - 'No text found' and Choose another file. No Retry: the same file would give the same result.
- The job takes longer than its limit
timed_out - 'Reading took too long. Try again.' with Retry.
- The file was deleted or expired before it could be read
file_unavailable - 'This file is no longer available. Upload it again.'
- Starts extraction on a file still uploading
file_not_ready - 'This file is still uploading.'
- Asks for fields while the job is still running
job_not_finished - The steps continue; the fields appear when ready.
- Follows a link to someone else's job
job_not_found - 'Not found.'
- Upload cannot be reached when starting
dependency_unavailable - 'Something went wrong starting. Try again.'
- Starts more than 10 extractions in a minute
rate_limited - 'Too many at once. Wait a moment and try again.'
User journeys on GitHub →