Most companies that automate documents reach the same fork early on. You can license an off-the-shelf intelligent document processing (IDP) platform, or you can build a custom solution on modern large language models (LLMs), fitted to your documents, rules and systems. Neither option is obviously right. The answer depends on your documents, on what happens to the data after extraction and on how much you are willing to depend on one supplier.
This guide is for COOs, CFOs and operations directors at European companies with 50 to 1,000 employees. It turns the build vs buy document AI decision into criteria you can score yourself, covering total cost, lock-in and accuracy, and ends with a scoring table.
What “buy” and “build” actually mean today
The line has blurred. In practice there are five product categories:
- Template-based capture tools. Classic OCR with rules per layout: reliable for a few layouts, fragile across hundreds of suppliers.
- Pre-trained IDP platforms. Ready-made models for invoices, receipts or identity documents, sold per page, usually as SaaS.
- Trainable IDP platforms. You label samples of your own document types and the platform learns them, with a validation screen and connectors.
- Cloud document AI APIs. Flexible building blocks from large cloud providers, not a finished process.
- Custom solutions on LLMs. An LLM reads the document, your business rules check the result, and the output goes into your ERP, DMS or CRM, with a person reviewing exceptions.
“Buy” usually means one of the first three categories. “Build” usually means the fifth, often using a cloud API from the fourth category as one component. Many good answers are hybrid: a platform for standard invoices, a custom part for your unusual contracts or certificates.
Six decision criteria that matter more than the demo
Demos run on clean samples. These questions test the options on your material.
1. How standard are your documents?
If most of your volume is supplier invoices, delivery notes or identity documents, the market has already solved most of the problem, and a pre-trained platform is hard to beat on time to value. If it is policy terms, lease contracts, tender packs or quality certificates, no pre-trained model knows your fields, you will configure a platform heavily anyway, and the gap between “buy” and “build” narrows.
2. Is extraction the job, or only the first step?
Extraction is rarely where the value is. The value comes from what happens next: matching an invoice line to the purchase order, checking a clause against your policy, or turning a customer request into a quote. In our supplier invoice reconciliation case, pairing lines with an order needs unit conversions and three product identities, none of it “document AI” in the platform sense. If most work sits after extraction, a platform covers only the easy part.
3. Can you prove every value?
For finance, insurance and compliance work, a value without its source is a liability. Check whether each extracted field links back to the page, clause or line it came from, and whether a reviewer can see that source in one click. In our insurance policy extraction case, every parameter in the output table carries a clause reference. That requirement shaped the whole design.
4. Where may the data go?
Under the GDPR, a SaaS platform that processes personal data on your behalf is a processor, and Article 28 requires a contract that sets out what it may do with that data. Check where data is processed, which sub-processors and model providers are used, and whether your documents may be used for training. If files must stay in your environment, options narrow quickly. See our guide to private LLMs and on-premise deployment.
5. How often will the rules change?
New suppliers, contract templates and regulatory fields all mean change. On a platform, ask who makes the change, how fast and at what cost. In a custom build, ask whether your team can change a field or rule without the original developer.
6. Who owns the solution in year three?
Someone has to monitor accuracy, add document types and explain odd results. With a platform that is mostly the vendor; with a custom build, your IT team, a partner or both. Name the owner before you sign.
Total cost: compare three years, not the first invoice
A fair comparison covers at least three years and includes these lines for both options:
- Set-up. Configuration, training or labelling samples, integration with the ERP or DMS, and test runs on real documents.
- Running cost. Per-page or per-document fees, user licences, minimum volume commitments, and model or hosting costs for a custom build.
- Human review. Time spent checking and correcting output. This is often the largest line and the one vendors talk about least.
- Change. New document types, new fields, new rules, and the cost of each change request.
- Exit. Exporting data, configuration and labelled samples, and rebuilding elsewhere.
Per-page pricing looks cheap in a pilot and grows with volume. A custom build costs more up front, but its running cost depends mostly on hosting and model usage. Neither is always cheaper, so run the numbers with your own volumes. Our article on what drives the cost of a custom AI solution in Europe includes a cost model you can fill in.
Lock-in: what you can take with you

Lock-in in document AI has three layers: your data, your configuration and your process knowledge.
- Data. The EU Data Act, which has applied since 12 September 2025, gives customers of cloud and SaaS services the right to switch providers. Under Article 25 of the Data Act, the maximum notice period is two months and the transition period after notice is up to 30 days, and providers must offer export in a commonly used, machine-readable format. Switching charges, including data egress charges, end completely on 12 January 2027. Custom-built services are partly exempt from some switching obligations (Article 31), so check the contract. The Act helps with data; trained models and workflow logic built on the vendor’s proprietary features are often not portable, so check what the contract counts as your exportable data and digital assets.
- Configuration. Field definitions, validation rules and trained models are usually proprietary to the platform. Ask whether you can export the labelled samples and the extraction schema, not only the results.
- Process knowledge. Do you have the business rules written down outside the tool? If they exist only as platform settings, they are hard to move.
A custom build locks you to whoever maintains the code. Reduce that by owning the code and prompts under the contract, insisting on documentation and a test set, and keeping the model swappable.
Accuracy on your documents: run a bake-off

Published accuracy figures are measured on someone else’s documents. A fair test on your own looks like this:
- Build a test set. Pick 50 to 200 real documents that cover the spread: good scans, bad scans, multi-page files, other languages and the awkward suppliers.
- Write the answer key. Have a person record the correct values for every field you need. This is tedious, and it is the most valuable time you will spend on the evaluation.
- Measure per field, not per document. An IBAN that is 99% right is still wrong. Track exact-match accuracy for critical fields separately.
- Measure what reaches review. Count the share of documents a person must touch, and how long each one takes.
- Test the failure mode. When the system is unsure, does it say so? A system that confidently fills in a wrong value costs more than one that flags its doubt.
Give every option the same test set, including any custom prototype. A short, fixed-scope pilot is a good way to do this. We describe one approach in a 4-week AI pilot.
Build vs buy document AI: a scoring table
Weight each criterion from 1 to 3, then score each option from 1 to 5 on your evidence, not the demo. The last column shows the usual direction; your scores decide.
| Criterion | Weight (1–3) | Buy: IDP platform (1–5) | Build: custom on LLMs (1–5) | Usually leans towards |
|---|---|---|---|---|
| Documents are standard types (invoices, IDs, receipts) | Buy | |||
| Documents are company-specific (contracts, specs, certificates) | Build | |||
| Value lies in logic after extraction (matching, checks, quotes) | Build | |||
| Need to go live within weeks with little IT effort | Buy | |||
| Every value must link to its source clause or line | Depends: test it | |||
| Data must stay on-premise or in a chosen EU environment | Build | |||
| Rules and document types change often | Depends: who makes the change | |||
| Three-year cost at your real volume | Calculate | |||
| Low dependency on one supplier | Depends on contract | |||
| Measured accuracy on your test set | Measure | |||
| Internal capacity to own and maintain the solution | Buy if low |
Multiply each score by its weight and add up the totals. If the totals are close, the criteria with weight 3 usually decide. If buy wins on standard documents and build wins on the rest, the hybrid route deserves a serious look.
FAQ
Is building a custom document AI solution only for large enterprises?
No. Modern LLMs have made custom builds much smaller, because work that once needed model training is now done with prompting and validation rules. What decides is how specific your documents are, not company size.
Can we start with a platform and build later?
Yes, if you protect your exit: document your rules outside the tool, make sure results and labelled samples can be exported, and avoid long minimum-volume commitments.
Are LLMs accurate enough for invoices and contracts?
For many document types, yes, provided the solution checks its own output: validation against your ERP, totals that must add up, source references, and uncertain cases sent to a person. Test on your own documents before deciding.
Does the EU AI Act affect this decision?
For most document extraction in finance, logistics or operations, the AI Act’s high-risk obligations are unlikely to apply. AI literacy duties (Article 4, as amended in 2026: take measures to support staff AI literacy) apply whichever option you choose; see our guide to AI literacy training. Uses that feed into decisions about people, such as credit or hiring, need a closer look. Our EU AI Act checklist walks through the questions.
How long does a fair comparison take?
A test set and answer key take a few days of internal effort; a focused pilot or bake-off on that set fits into a few weeks. That is a short investment next to a multi-year contract.
If you would like a second opinion on where your documents fall in this table, our Free AI Opportunity Scan is a short, no-obligation look at one process. Or get in touch and tell us which documents are slowing your team down. We will also tell you when an off-the-shelf tool is the better fit.
If an RPA platform is already part of your estate, we weigh it against a language-model approach in our comparison of UiPath and LLM-based document automation.