Itequia

How to automate invoice processing with AI Builder?

Person reviewing invoices manually with documents, laptop, calculator, and coffee on the table.

We are all familiar with situations in which we or a third person spend part of their time processing data from one medium to another or from one information system to another. We will all agree that it is a tedious process. However, by using the AI ​​Builder feature, we will be able to improve the efficiency of this process and therefore the productivity of our employees.

For example, imagine that we work in the accounting department of an organization and one of our tasks is to enter the invoices of our suppliers into the ERP of said organization, which reaches us in PDF format via email.

The traditional working method consists of:

  1. Download email invoice.
  2. Access the ERP.
  3. Manually enter the invoice data to finalize the posting of said purchase.

What is AI Builder?

AI Builder is a feature of the Microsoft Power Platform that helps us automate processes and predict outcomes using pre-built Artificial Intelligence models. That is, users can implement the capabilities of such models without having to write code.

AI Builder’s pre-built AI models can be used within Power Apps applications or Power Automate automated workflows, so we can find this feature in both Power Platform applications, as seen below.

Screenshot of AI Builder interface showing options for automating invoice and receipt processing.
Screenshot of AI Builder interface showing options for automating invoice and receipt processing.
Power Automate interface displaying AI Builder options for automating business processes.
Power Automate interface displaying AI Builder options for automating business processes.

Invoice Processing Model in AI Builder

In this article, we are going to focus on one of the pre-built AI models offered by AI Builder: invoice processing.
As we have seen previously, we can access AI Builder models from Power Apps and Power Automate. In the example developed below, we access Power Automate. Once inside Power Automate, we select the Invoice Processing model.

Power Automate interface highlighting invoice data extraction using AI Builder.
Power Automate interface highlighting invoice data extraction using AI Builder.

Next, the AI ​​Builder itself will show us how the selected model works.

In this case, we see that the model uses an OCR (optical character recognition) component to identify data in a document and be able to process it in another format, as we can see in the Extracted information section.

Example of AI Builder extracting fields from a delivery order document, including name, address, and priority status.
Example of AI Builder extracting fields from a delivery order document, including name, address, and priority status.

When creating this Invoice Processing model, AI Builder will present us with a wizard that will guide us in generating it.

First, the model will ask us if the documents to be processed by the OCR component of the model are structured, that is, if they have a fixed structure, such as a company invoice model, or not.

In this example, we’re going to assume that our supplier’s invoice model will be the same with all invoices that the AI ​​Builder model will process.

AI Builder interface showing document type selection for invoice processing automation.
AI Builder interface showing document type selection for invoice processing automation.

Next, we will need to indicate what information, in our case, fields we want the AI ​​Builder model to retrieve.

Power Automate interface for selecting fields to extract from invoices, such as company, date, and amount.
Power Automate interface for selecting fields to extract from invoices, such as company, date, and amount.

At this point, we must provide the model with a set of documents so that the model can be trained, identifying the format of the documents and detecting the information that we want to extract.

Interface for uploading document collections to train AI Builder models in Power Automate.
Interface for uploading document collections to train AI Builder models in Power Automate.

But first, so that the model can start learning, we must manually mark the information that we want to extract from the documents that we have provided to the example model. Once this step is complete, we can start training the model.

Power Automate screen showing AI model training in progress for invoice processing.
Power Automate screen showing AI model training in progress for invoice processing.

When our model has finished its training, AI Builder will show us the accuracy of its prediction.

Accuracy score screen showing 99% prediction accuracy for an AI Builder invoice model.
Accuracy score screen showing 99% prediction accuracy for an AI Builder invoice model.

At this point in the example, we’re ready to embed and use the model within a Power Apps app or within a Power Automate flow.

Flows in Power Automate

We could set up a flow where, by dropping an invoice document from a specific vendor into that vendor’s folder on our Sharepoint Online site, the flow would call AI Builder‘s invoice processing model to pull the desired information and place and store it wherever we wanted: an Excel table, a SharePoint list, a Dataverse entity, etc.

What benefits does AI Builder bring us?

The main benefit of using this function is clear, it will allow us to do more with less. It is a simple idea, but very powerful.

The more time we can free up for our teams with task automation, the more time they can spend on tasks that add the most value to their organizations.

In addition, freeing our team from repetitive and boring tasks will allow us to have time to tackle creative and more motivating tasks, improving the efficiency and satisfaction of our employees.

Nico García Fernández – Senior Product Owner at Itequia