Document processing

Data protection across a document-processing workflow

Reading time
8 minutes
Updated
Published
Written by
modernagents editorial teammodernagents is an AI automation agency from Austria for SMEs, based in the Vienna region.
AI-generated image: Paper shredder with an indigo lid and inserted sheet on brushed aluminium

Perhaps invoices, delivery notes and contracts reach you by email every day, and in future a program is to read them for you. When it comes to data protection in document processing, one question is then on your mind above all. Where does this data end up, who can see it, and is it really gone when you delete it?

Official sources in this article

  • FDPIC
  • European Union

Data protection in document processing starts with writing down the whole path of the data: which originals, extracted texts and logs are created, where they are processed and who can access them. Check this before the first production upload, meaning before the first document is uploaded in live operation. A server location in Europe or the words "GDPR compliant" do not replace checking purpose, permissions, service providers and deletion.

An example: a plumbing and sanitary wholesaler in Ostend with 35 employees receives its incoming invoices in a shared mailbox. Today, Pieter from accounts opens each invoice, types in the supplier, invoice number and amount, and files the PDF in the document storage. In future, a recognition service is to read the invoices, and Pieter only checks the extracted details.

Key takeaways

  • Before launch, write down which data goes where by which route and who can see it.
  • A deletion rule that covers only the original PDF is not enough, because further copies and logs are often created along the way.
  • Check a provider's answers for your plan, your API and your region. "Not used for model training" and "not stored" are two different promises.
  • Test deletion with an approved test case, and then search everywhere for copies that are left over.

01 / 09

Which data does a document create on its way through the workflow?

Follow a typical document from the mailbox to the destination system. Processing a document often creates, alongside the original, a preview image, the OCR text, meaning the text that text recognition reads from the PDF, and structured fields such as invoice number and amount. Tasks, emails and technical logs are often created as well, at the wholesaler for example a review task for Pieter when a supplier sends an invoice as a PDF. Any of these parts can contain personal data, for example the name and bank details of a tradesperson who supplies as a sole trader. A deletion rule that covers only the original PDF is therefore incomplete.

For each transfer, write down which system sends, which receives, why the transfer is needed and how long the resulting copy is needed. Add who can access as an administrator, what access the provider's support has and which backups exist. The fact that data moves matters even when Pieter seems to be working in just one program.

A good start is a table of the data flow in document processing with six columns:

  • data object
  • purpose
  • location
  • authorised role
  • provider
  • deletion trigger

The table should describe how things actually run in operation. Where a field is still open, that is a task for the responsible people. Do not fill such gaps with a vendor's general marketing statements.

Test data

Also record how you select test data. If a real invoice is copied into a demonstration account, that creates another place where it is processed. Prefer artificially created or appropriately prepared examples until the intended test environment and the access rules have been approved.

02 / 09

Austria and Germany: the GDPR as a shared framework

The open question is which rules apply to this data. Within the scope of the GDPR, personal data is subject to principles including purpose limitation, data minimisation and storage limitation. Other key areas to check are the lawful basis, processors, meaning processing by a service provider on your behalf, security and, where applicable, transfers to a third country or a data-protection impact assessment. Articles 5, 6, 28, 32, 35 and 44 onwards are the key references, which you can read in the official GDPR text.

This does not result in one universal legal basis for every text recognition project. An invoice in accounts, a personnel file and a medical document have different purposes and risks. The responsible organisation must assess the specific case. Consent is not a universal substitute for this assessment either.

Involve the business owner of the process and privacy specialists early, at the wholesaler that means Pieter and the person who looks after data protection in the business. Special categories of personal data or professional confidentiality can trigger additional requirements. This guide helps with technical and organisational preparation, but it does not certify that an individual processing arrangement is lawful.

03 / 09

Switzerland: assess the applicable Swiss requirements

In Switzerland, the Data Protection Act also applies to AI-supported processing of personal data. The FDPIC, the federal data protection authority, states this explicitly (FDPIC: AI and data protection). So do not adopt German terminology or a GDPR checklist unchecked as a complete Swiss assessment.

The FDPIC also explains that responsibility does not simply pass to the cloud provider when a business outsources processing (FDPIC cloud guidance). In particular, establish what the provider actually does with the data and which other providers are involved. Cross-border activities may require more than one framework to be considered.

In practice, Swiss businesses should ask for the same transparency: which data leaves their own environment, which people can inspect it and how access, correction and deletion requests are supported. The legal assessment depends on the specific circumstances, not on the country a product appears to come from.

04 / 09

Which questions should you ask OCR, AI and integration providers?

Suppose the provider of the recognition service writes to Pieter: "Your documents are not used to train our models." That does not yet mean they are not stored. "Not used for model training" and "not stored" are different properties. Also check the answers for the specific plan, the API used, meaning the interface through which your program talks to the service, and the region. A statement about a product for businesses does not simply apply to a free chat account from the same provider.

With these six questions, you can assess a provider of text recognition, AI or connections between your programs, each with the matching evidence:

Area Specific question Useful evidence
Purpose Are customer documents used only for the commissioned processing? Contract terms for the service actually used
Subprocessors Who receives originals, text or metadata? Current list and procedure for changes
Operation Can support staff inspect documents? Rules for permissions and support
Storage Which temporary copies and logs remain? Documented retention periods and settings
Exit How is data exported and then deleted? Procedure including backups
Incidents How are security incidents reported? Named contacts and contractual procedure

Translate promises into settings and evidence. If temporary storage can be configured, record the value chosen. And if support access requires the customer's consent, establish who can give that consent and how the access is logged. Only then does the assessment help you day to day.

Got a workflow like this?

Tell me about it. Honest take and a rough price, usually within a day.

05 / 09

Invoices at the wholesaler: avoiding unnecessary copies

Suppose Pieter and the wholesaler's service provider design the process for incoming invoices. In the first design, the whole email mailbox is synchronised with the new program. The PDF files go to the recognition service, and its responses are stored in full in a diagnostic log, meaning the technical record used for troubleshooting. In addition, a general team channel receives copies of the invoices for review.

In the revised design, things look different:

First design Revised design
The whole mailbox is synchronised Only the invoice folder is read, and only the necessary attachments and a reference to the email are taken over
Copies go to a general team channel for review The review view links to the controlled storage
The diagnostic log contains the full responses The diagnostic log contains status and case identifier

In the revised design, the content of an invoice is only made accessible when there is a justified, limited troubleshooting case. The example is invented and shows data minimisation as a concrete design decision, but it does not establish that the processing as a whole is lawful. The remaining processing still needs to be justified, placed in the right contractual framework and appropriately protected. But fewer copies make it easier to review access rights and to delete later.

06 / 09

How do you coordinate retention and deletion?

Not every data object needs the same retention period. The original invoice that must be retained, a short-lived response from the AI model and a technical diagnostic log serve different purposes. So for each object, define what triggers deletion or further retention and who is responsible for it. Statutory retention duties and particular preservation requirements must be assessed by specialists.

Test deletion with an approved test case. At the wholesaler, this can be a test invoice from an invented supplier that Pieter sends through the whole process and then deletes. Then search the storage, the search index, the review list and the integration for copies that are left over. A "Delete" button does not prove that the whole path of the data has been covered.

Before launch, the data flow, responsibilities, contracts, roles and deletion rules should be approved. Repeat the check when a new model, a further service provider or another type of document is added, for example if the wholesaler also wants delivery notes read. That way, data protection becomes a part of operation that you can check and that keeps pace with the actual process.

07 / 09

For your IT team

When testing deletion, also document how backups are handled and how restored data becomes subject to the intended rules again.

08 / 09

Take the worksheet

Worksheet

Download the editable CSV table

LocationPossible contentDecision
IntakeOriginal and messageRecipients and retention
ProcessingOCR and intermediate fieldsNecessary storage
Model serviceSubmitted excerptsSupplier and purpose
ReviewDocument and correctionsRoles and traceability
DestinationApproved data and source linkApplicable retention
DiagnosticsError payloadsReduce sensitive content

Columns to fill in, in the file: Your value / observation, Owner, Next action.

Download the editable CSV table (CSV). Add your own values, owners and open points. This worksheet contains no measured client results.

09 / 09

If you are planning data protection in your document processing, read on here:

For a review of your processes, a short description of the process, the systems involved and typical exceptions is enough to start. Discuss it with modernagents.

ShareEmail

Related reading

AI document processing

Got a workflow like this?

Tell me about it. Honest take and a rough price, usually within a day.

Robert Van Ysendyck · Founder & Managing Director