Context-aware reading: how to get data from a PDF or an email into your ERP

Facebook
Twitter
LinkedIn
WhatsApp

In many businesses there is someone who, every day, opens their email, downloads a PDF and types the data inside it into the ERP: an order, a quote, a delivery note, a report. It is slow, error-prone work that nobody chooses to do. And it almost always has the same cause: the business doesn’t control what arrives, because every customer or supplier writes in their own way.

This article explains how to extract data from PDFs and emails and get it into your ERP without retyping it, and why reading the document is only part of the problem.

Reading is not the same as understanding

OCR turns the image of a document into text. It is a mature and useful technology, but it solves the easy part. The hard part is something else: knowing what type of document it is, who sent it, which data in it matters to your business and what needs to happen to that data next. An order and a complaint can arrive in the same format and need completely different handling.

What context-aware reading is

Context-aware reading is a way of extracting data from documents in which the system doesn’t just read the text: it knows what type of document it is reading, who sent it and which data the business needs, and it stores that data in a structured way for the next step in the process.

The intelligence isn’t only in the reading, but in the process around it: the business rules, the validations and where each piece of data ends up.

Three businesses, three different readings

  • A painting company receives building quotes and needs to know how many square metres have to be painted.
  • A textile manufacturer receives orders and needs references, sizes and quantities to plan production of, say, shirts.
  • A laboratory receives reports and needs to read the composition on each label to check that it complies.

All three “read PDFs”. But each needs a different reading, with its own vocabulary, rules and destination. That is why a generic tool is rarely enough.

How it works, step by step

  1. Capture: the system reads the email and its attachments, and identifies who sent it and what type of document it is.
  2. Extract: it pulls out only the data that matters for that business and that document.
  3. Structure: it stores the data in a tailor-made database, with its relationships.
  4. Decide: it applies the business rules and prepares the result: an order, a quote, an alert.
  5. Validate: a person reviews on screen the cases where the system has doubts.
  6. Integrate: the result goes into the ERP or whichever application the business uses.

The validation screen: the document on one side, the data on the other

The piece that builds the most trust is also the simplest: a screen that shows what the document says on one side and what the system has understood on the other. The person confirms, corrects or completes it. Every correction helps improve the system and adapt it when a sender changes their format, which happens more often than you might think.

When you don’t need it

If all you need is to read standard invoices and send a few fields to accounting, there are good off-the-shelf tools that charge per document read. We’ll tell you so. Context-aware reading makes sense when the document carries information specific to your business and what happens after it is read matters as much as the reading itself.

Where to start

Before talking about technology, answer four questions:

  • Which documents arrive, and through which channel?
  • Roughly how many a week?
  • Who types them in today, and how long does it take?
  • Where does the data need to end up?

With those answers, you can already design a first chain of building blocks. That’s what we do in TFL Tools: our own building blocks that turn an input into a digital output, adapted to each case.

Which documents do you type in by hand every week? Tell us and we’ll tell you which building blocks you’d need.

Which process is eating up most of your team's time?

Tell us about it. In a first conversation we’ll tell you how we would approach it and whether a tailor-made solution makes sense.