Skip to main content

Recipe: audit invoices

Find duplicate invoices, unusually large totals and missing details across everything in your workspace, with each finding linked to the document and page it came from. For finance and audit teams.

Before you start

Invoices are in the workspace and have been read (by a Spec, a process, or talonic_extract). Set up a workspace if not.

Tell your agent

"Audit our 2026 invoices: any vendor that billed the same amount twice, any invoice over 25,000 EUR, and any without an invoice number. Give me a table with a link to each document."

What the agent does

  1. Duplicates. talonic_ask: "Which vendors invoiced the same amount more than once in 2026?" The answer cites each pair of invoices.
  2. Large totals. talonic_find_data for "invoice total" to get the field name, then talonic_filter with gt 25000. Numeric comparisons need a number field; the agent checks first.
  3. Missing numbers. talonic_filter with is_empty on the invoice-number field.
  4. Evidence. For any finding you question, talonic_field_values or talonic_extract with include_provenance shows the page and passage the value came from.
Invoices over 25,000
{
  "conditions": [
    { "field": "invoice.total", "operator": "gt", "value": 25000 },
    { "field": "invoice.date", "operator": "between", "value": "2026-01-01", "value_to": "2026-12-31" }
  ]
}

Reading the results

  • Every answer comes with citations; open them before acting on a finding.
  • Values with a confidence below 0.7 are worth a second look.
  • If a filter returns warnings[] (for example a field name it could not match), the agent tells you instead of guessing.

Limits and cost

  • Filters, field values and look-ups are free; each question uses credits.
  • Results include only documents you are allowed to see.