About Portfolio Cases Services Blog Contact 🎙 Talk to AI
EN DE RU
🎙 Talk to AI
December 3, 2026 · 5 min read

Incoming invoices without retyping: a realistic path for small businesses

Denis Shokhirev
Denis Shokhirev
Agentic AI Systems Architect
Telegram LinkedIn

I’m Denis Shokhirev, an Agentic AI Systems Architect based in Freiburg im Breisgau, Germany, and at DennisCraft AI Studio I ship production AI systems on Claude, Supabase, n8n, Doppler, and self-hosted Postgres. The painful moment is rarely “we need AI.” It’s a bookkeeper retyping the same supplier invoice from a PDF into accounting, missing one digit in the VAT amount, and the owner finding out only after the payment run is wrong.

For a small business owner, the real goal is simple: incoming invoices should enter the accounting flow without manual retyping, but still with enough control that errors, duplicates, and fraud signals do not slide through. The practical answer is not a fully autonomous setup. It is a system that reads the document, checks a small set of business rules, and asks a human when confidence is low or the invoice looks unusual.

Start with the process, not the model

Most small firms do not have an OCR problem. They have a process problem. Invoices come from 4–7 places: email, supplier portals, scans from paper mail, forwarded attachments, and sometimes phone photos from the field. Before touching automation, I usually map 3 things:

  • where invoices actually arrive,
  • which 6–10 fields accounting really needs,
  • where a human must approve the result.

This matters because a narrow workflow is much easier to trust than a big “document AI” promise. A good first scope is: receive document, extract fields, run checks, queue exceptions for review. If the business already has a defined approval path, that first stage can often go live in 2–4 weeks.

What the system should do in plain business terms

1. Extract a fixed list of fields

For incoming invoices, the useful list is usually short: supplier name, invoice number, invoice date, currency, net amount, VAT amount, gross amount, IBAN, due date, and optionally a purchase order or cost center. The narrower the target, the more stable the result.

2. Check business rules, not just text recognition

Reading the PDF is only step one. The bigger operational risk is what happens next. Is this invoice already in the system? Did the supplier suddenly change the bank account? Does the gross amount equal net plus VAT? Does the total match the purchase order? These checks are often more valuable than the extraction itself.

StageWhat the system doesWhen a human steps in
Document intakeCollects PDFs from email or folderIf the file is damaged or password-protected
Field extractionPulls invoice data into structured formIf confidence is low or required fields are missing
Rule checksLooks for duplicates, new IBAN, total mismatchApproves exceptions
Accounting handoffPrepares data for postingFinal approval if your policy requires it

Where this pays off, and where it does not

If you process 30 invoices a month, building a custom AI-assisted flow may be the wrong move. In many cases, a standard feature inside DATEV, your ERP, or a document management system is the better answer. I would not build a custom process just to avoid a few minutes of admin work.

But if you are closer to 300–1000 invoices per month, manual entry turns into a recurring cost center. One number you can act on: at 3 minutes per invoice, 500 invoices per month consume 1,500 minutes, or 25 staff hours, before exception handling and corrections. For an owner, that is not “back office noise.” It is a visible monthly cost with avoidable error risk.

What I do not recommend: do not start with full automation of posting and payment release. And do not build a custom agent when an off-the-shelf tool already handles 80% of your invoice flow at an acceptable quality level. A custom setup makes sense when document quality is messy, approvals are specific, or your standard import keeps failing on real documents.

A minimal production pattern

The architecture can stay simple. n8n watches an inbox or folder. A model extracts fields from the PDF. The structured result is stored in Postgres or Supabase. Then a small rule layer decides whether the invoice is safe to queue for accounting or needs human review. Every decision is logged: what was extracted, what was changed, who approved it, and why an exception was raised.

from anthropic import Anthropic
import json

client = Anthropic()

prompt = """
Extract these invoice fields as JSON:
supplier_name, invoice_number, invoice_date,
net_amount, vat_amount, gross_amount, iban, due_date.
Return valid JSON only.
"""

message = client.messages.create(
    model="claude-sonnet-4-20250514",
    max_tokens=400,
    temperature=0,
    messages=[{"role": "user", "content": prompt}]
)

invoice = json.loads(message.content[0].text)
print(invoice["supplier_name"], invoice["gross_amount"])

The code is not the important part. The control layer is. The gap between “the model extracted a value” and “finance uses that value” is where most production mistakes either get caught or leak into operations.

workflow:
  trigger: new_email_with_pdf
  steps:
    - save_file
    - extract_invoice_fields
    - check_duplicate_invoice
    - check_iban_change
    - compare_totals
    - route:
        if: "all_checks_pass"
        then: "queue_for_booking"
        else: "human_review"

Risk, audit trail, and data handling

An invoice contains names, addresses, bank details, and sometimes personal data. That means this is not just about efficiency. You need to decide where files are stored, who can access them, how long the history is kept, and whether data leaves your infrastructure or the EU. In regulated environments, those decisions matter as much as extraction quality.

For an external reference on AI application risks, OWASP updated the LLM Top 10 in 2025 and explicitly calls out prompt injection, sensitive information disclosure, and insecure output handling: https://owasp.org/www-project-top-10-for-large-language-model-applications/. In plain business language, that means: do not trust model output without checks, do not give the system broader access than it needs, and do not let extracted text trigger downstream actions by itself.

One more honest stop condition: if nobody in the company can define which fields are mandatory, when an invoice counts as approved, and who owns exceptions, pause the project. Automation does not fix a missing process owner. It just makes confusion move faster.

FAQ

What does this usually cost?

Market pricing varies a lot depending on volume, ERP, and whether you choose a standard invoice processing product or a custom integration. The useful comparison is not just license cost, but total process cost: setup, exception handling, support, and audit requirements.

How long does implementation take?

A narrow first workflow can often be delivered in 2–4 weeks. If you have multiple legal entities, complex approval paths, or older accounting software, expect longer timelines.

What happens when it fails?

A good setup does not hide failure. It routes the invoice to a person with the original document, extracted fields, and the reason it was flagged. Nothing should go straight to payment based only on model output.

Does my data leave the building?

That depends on the design. Before go-live, you should document where PDFs are stored, which services process them, and whether any data transfer happens outside your environment or outside the EU.

Who is liable if the system makes a mistake?

The company remains accountable for accounting and payment decisions. The model does not take legal responsibility, which is why approval points and a clear audit trail are not optional in practice.

If you look at your invoice process honestly today, where do you lose more money: manual entry time, bad bank details, or approval delays that create late payments? I’d genuinely like to know, because that bottleneck should be fixed first instead of trying to automate the entire back office in one move.

I run a free 30-min stack audit for DACH founders building AI in regulated markets. DM me on LinkedIn or write to @ger_dennis_ai.

For your business

I build agents like this for businesses in Germany and the EU.

Tell me in two sentences what eats your team’s time – reply within 24 hours.

E-invoices with n8n (German page) →
Continue reading
Is Your AI Coding Assistant Silently Sabotaging Code? How to Audit AI-Generated Changes Before Production
Claude Ship Approves Your PRs: Who Is Accountable When the Agent Ships a Hole to Prod?
Writing quotes eats your evenings: where automation starts in a trade business
7 signs that AI search engines do not know your business
All articles →
Where this is applied
Services — what we build
Talk to the voice agent
Case studies
Ready to build?

Turn your process into an AI system

Production quality. DACH B2B focus.

Start a project → ← All articles