Skip to content

Blog / Product

How Opsline reads an invoice

Fields you define, values checked twice, and a run that stops when the model can't find what it needs.

Opsline · November 20, 2026 · 1 min read

Forward a PDF to a workflow's email address or upload it on a request form, and an AI extract step reads it into the fields you define. For an invoice that's usually the vendor, invoice number, amount, and due date.

Fields first

Each field has a type, such as text, amount, date, or a dropdown with fixed options. Opsline turns the list into a JSON schema and asks the model to return exactly that, with null for anything the document doesn't contain. The answer is checked again afterwards. "$1,250.00" becomes 1250, a timestamp becomes a date, and a dropdown answer has to match one of its options.

A missing value stops the run

If a required field comes back empty, the step fails. A wrong amount that flows into an approval is worse than a run that stops and alerts an admin. Once the input is fixed, the run can be retried from that step.

The PDF stays out of the run history

The file is stored once. The run carries a small reference with its name, type, size, and id, and the bytes are loaded only inside the step that sends them to the model. Step history and workspace exports never contain the document itself.

Pick the model per step

Extraction goes through OpenRouter, so each step can use any model it offers. The default is Claude Haiku 5.5. In our test it read a one-page invoice correctly for about $0.00025.

Then a person decides

The extracted amount can drive what happens next. In the seeded invoice workflow, anything over $1,000 goes to finance. The approver sees the fields and the original PDF in the approval email and adds a GL code before approving.