Create a document processing custom model
After you review the requirements, you can get started creating your document processing model.
Sign in to AI Builder
Sign in to Power Apps or Power Automate.
On the left pane, select AI Builder > Explore.
Select Extract custom information from documents.
Select Get Started.
A step-by-step wizard walks you through the process by asking you to list all data you want to extract from your document. If you want to create your model by using your own documents, make sure you have at least five examples that use the same layout. Otherwise, you can use sample data to create the model.
Select Train.
Test the model by selecting Quick test.
Select the type of document
On the Choose document type step, select the type of document you want to build an AI model to automate data extraction. There are two options:
Structured and semi-structured documents. Structured and semi-structured documents are those where for a given layout, the fields, tables, checkboxes, and other items can be found in similar places. Examples of structured and semi-structured documents are invoices, purchase orders, delivery orders, tax documents, and more.
Unstructured and free-form documents. Unstructured documents are those where there's no set structure, usually free documents with a varying number of paragraphs. Examples of unstructured documents are contracts, statement of work, letters, and more.
Invoices (preview). Augment the behaviors of the prebuilt invoice processing model by adding new fields to be extracted in addition to the ones by default, or samples of documents not properly extracted.
Define information to extract
On the Choose information to extract screen, define the fields, tables, and checkboxes you want to teach your model to extract. Select the +Add button to start defining these.
For each Text field, provide a name you'd like the field to have in the model.
For each Number field (preview), provide a name you'd like the field to have in the model. Also, define the format dot (.) or comma (,) as decimal separator.
For each Date field (preview), provide a name you'd like the field to have in the model. Also, define the format (Year, Month, Day) or (Monthly, Day, Year) or (Day, Month, Year)
For each Checkbox, provide a name you'd like the checkbox to have in the model. Define separate checkboxes for each item that can be checked in a document.
For each Table, provide the name you'd like the table to have. Also, define the different columns that the model should extract.
Note
The custom invoices model comes with default fields that can’t be edited.
Group documents by collections
A collection is a group of documents that share the same layout. Create as many collections as document layouts that you want your model to process. For example, if you're building an AI model to process invoices from two different vendors, each having their own invoice template, create two collections.
For each collection that you create, you need to upload at least five sample documents per collection. Files with formats JPG, PNG, and PDF files are currently accepted.
Note
You can create up to 200 collections per model.
Next step
Tag documents in a document processing model
See also
Feedback
Submit and view feedback for