Technical illustration: Same Filename, Different Content: How AI Agents Detect Document Versions

Document verification · approx. 4 min

Same Filename, Different Content: How AI Agents Detect Document Versions

A corrected document may arrive under an unchanged filename. Reliable automation must recognise the new version before deciding what to do with it.

Short answer: An invoice can be corrected without its filename changing. A safe automated process therefore checks file identity, compares relevant content when changes are detected, and records the approval decision.

The filename is not the problem

A digital assistant checks an incoming invoice and passes the required details into a business process. The next day the supplier sends another file with exactly the same name. This time an amount or delivery date has been corrected.

A simple automated workflow might reject the second file as “already processed”. That creates a risk: a filename tells you nothing about whether the data inside is identical.

What can a digital checksum do?

A checksum, such as an SHA-256 hash, converts the file's content into a digital comparison value. If the file changes, that value will almost certainly change too. This makes it possible to determine whether a newly received file is byte-for-byte identical to an earlier version.

There are limits: a checksum initially shows only that content has changed. It cannot explain which invoice line differs, or whether new information is factually correct or legally binding.

A traceable process in four steps

  1. Preserve the original. Record the unchanged file, its arrival and its unique association with the business case.
  2. Identify the version. Calculate a checksum and compare it with previously received files.
  3. Compare content. For a new version, compare relevant fields such as amount, date, items and delivery date.
  4. Approve changes. Record material differences and review them before committing the update.

An AI agent can help with the third step by spotting changed wording, tables or line items and preparing a comparison. The business decision still requires defined rules and appropriate approval.

What does this mean for your business?

Separate three tasks in your process: receiving a file, identifying its version and evaluating changes to its content. Each has different technical requirements. A dependable workflow makes these differences visible instead of hiding them behind “already processed”.

Start with a small test set containing originals, corrected versions and unchanged duplicate submissions. Check that the agent detects genuine changes without silently overwriting a new version.

Want to automate recurring document reviews and change comparisons? I can help design a controlled, traceable workflow.

Discuss a project ↗

Sources and further reading