Steps:
Pre-requisites:
In this guide, we will clone Cradl AI's pre-trained «invoice model». This model achieves high extraction accuracy for most invoices without requiring any set up.
You are free to choose any AI model you like, including a custom AI model that you train from scratch on your own documents.
Sign in to your Cradl AI account and clone the invoice template model.
Edit the invoice template by adding or removing fields if necessary. In the video example below, we demonstrate removing IBAN and Line items from the model because they are unnecessary for our document needs.
Open your preferred file manager that integrates with Power Automate. For this example, we're using OneDrive.
Create a new Excel sheet and add headers that correspond to the fields you want to extract from your documents. Select your columns and format them as a table.
Create an Instant Cloud Flow in Power Automate and set it to trigger when an HTTP request is received.
The primary action here is to add a row to an Excel table. This example demonstrates using the Microsoft Business account version of the action, but you can also use the regular version.
Inside Cradl AI, select Power Automate as your export destination and copy the auto-generated JSON schema.
Return to your Power Automate trigger and paste the JSON schema into the Request Body JSON Schema input field. Copy the HTTP URL and choose "Anyone" from the "Who Can Trigger The Flow" dropdown.
Paste the HTTP URL into the "Power Automate Webhook URL" input field in Cradl AI.
Finally, within Power Automate, select your action, display all Excel table fields, and populate them with the corresponding Cradl AI fields. The Cradl AI fields will auto-suggest based on the JSON schema previously pasted into your trigger.
Begin extracting data from your documents. In Cradl AI, click "Run," upload several invoices, and wait for processing to complete.
Once processed, open the invoices in Validator to correct any errors (your corrections enhance the model over time). Then, click "Validate" to export to Power Automate.
Voilá! Your extracted data can now be found in your Excel sheet.