Azure AI Document Intelligence – invoice data extraction

TAS can automatically extract structured data from invoices (both digital PDFs and scans), such as suppliers, amounts, VAT, due dates and line items, and pass it to the approval workflow. The extraction is handled by Microsoft's Azure AI Document Intelligence service with the prebuilt-invoice model, which is designed specifically for invoices. No language AI model (Azure OpenAI) is needed.

This article sums up what the customer needs to set up and hand over so that TAS can connect to the service.

Standard vs. custom model
The prebuilt-invoice model is suitable for initial verification. For production use, we recommend a custom model trained on the customer's invoices. The standard model does not return some fields needed for Czech documents (in particular the company ID (IČO) and payment symbols).

What to set up in Azure

To be set up by the customer's IT or Azure administrator:

  • Azure AI Document Intelligence resource in an EU region, e.g. West Europe or Germany West Central. An EU region is mandatory because of GDPR, as invoices contain personal data.
  • Pricing tier and quotas that match the expected invoice volume. The service is billed per processed page. The S0 tier is sufficient for verification.
  • Network access to the endpoint for the TAS backend: allow HTTPS (443) from the environment where TAS runs to the resource endpoint (firewall or private endpoint, depending on the customer's security policy).
Steps in the Azure portal
Create a resource → AI Services → Document Intelligence → select the subscription, resource group, EU region and pricing tier. Once the resource is created, you can find the endpoint and keys in the Keys and Endpoint section.

Credentials to hand over

Once the resource is set up, the following three values need to be handed over:

Value

Description

endpoint

URL of the Document Intelligence resource endpoint (Keys and Endpoint section).

apiKey

Secret service key (Key 1 or Key 2).

model

prebuilt-invoice for verification; the custom model ID once it has been trained.

Hand over the key only through a secure channel
Never send the apiKey by regular email. In TAS, it is stored in the Vault on the backend, so it never appears in template scripts or in the application frontend. Calling the service with a key from the Vault is described in the article AXIOS using the Vault.

Invoice sample

For verification and later training of a custom model, a real sample of the customer's invoices is needed:

  • Variety of suppliers and templates matters more than quantity, as different invoice layouts behave differently.
  • A mix of digital PDFs and scans, including lower-quality scans.
  • Real documents across the types the customer routinely processes.

Field definition and custom model

Together with the customer, we put together a list of fields to extract (e.g. supplier, company ID/VAT ID, invoice number, dates, amounts, variable/constant/specific symbols, IBAN, line items). The list is mapped to the standard model and extended with fields that the standard model does not return.

For production, we recommend deploying a custom model, which the customer arranges as the Azure service subscriber. Training requires a labelled training set of roughly 5 or more samples per layout / invoice type. The more varied the set of suppliers and templates, the more robust the model.

Summary checklist

#

Requirement

Provided by

Note

1

Azure AI Document Intelligence resource (EU region)

customer

mandatory

2

Credentials: endpoint, apiKey

customer

mandatory, secure channel

3

Network access from TAS to the endpoint (HTTPS 443)

customer – IT

mandatory

4

Invoice sample (various suppliers, digital and scanned)

customer

mandatory

5

List of fields to extract

customer + Neit

mandatory

6

Labelled training set (~5+ samples per layout)

customer

for production (custom model)

Next steps

  1. Once the details from items 1–3 have been handed over, we connect TAS to the service and verify the extraction on the customer's invoice sample.
  2. We then evaluate the field coverage together. The customer arranges the training of the custom model for production on their side; we are happy to advise on the field design and on preparing the training set.
If you have any questions about the setup, contact your Neit Consulting project manager.

TAS call module - TAS 2 TAS (process creation via API)

DB View

Syca (opens in a new tab)

Powered by HelpDocs (opens in a new tab)