If you work with forms, you probably know this routine. You open a PDF, find the details you need, and type them into a spreadsheet. Then you open the next form and do it all again.

Think about a school that receives admission forms on paper or as PDFs. Someone has to read each one and copy the student's details into Excel. The same thing happens with hospital admission forms, employee onboarding forms, and plenty of other paperwork.

In this guide, I'll show you how I set up Microsoft AI Builder to pull a few fields out of PDF forms and send them to Excel with Power Automate. I used three demo forms: a student admission form, a hospital admission form, and an employee onboarding form. They look different, but they all ask for some of the same information.

To keep things simple, I picked three fields:

  • Name
  • Mobile Number
  • Date of Birth

You don't have to use the same fields. Pick whatever you normally copy by hand from your own forms.

Here is the full workflow:

Sample PDF forms → AI Builder → Define fields → Upload training documents → Tag values → Train and publish → Power Automate → Excel

One thing to know before you start: I got all the way through training, publishing, and building the flow. But when I ran the flow, it stopped with a credit error because my environment had no AI Builder credits. I'll show you exactly where that happened and what it means, so you can check it before you hit the same wall.

What You Need Before Starting

  • Access to Power Apps and Power Automate. Use the same Power Platform environment for the model and the flow.
  • A Power Platform environment with Microsoft Dataverse. If you're not sure your environment is ready for AI Builder, ask your administrator.
  • Permission to create models and flows. The built-in Environment Maker role can create AI Builder models.
  • A short list of fields. Decide what you want to collect before you open the wizard.
  • At least five sample documents. AI Builder needs a minimum of five and a maximum of 20 documents per collection. PDF, JPG, and PNG files are supported.
  • One extra form for testing. Keep a form aside that you don't use for training, so you can test the model fairly.
  • An Excel workbook with a table. Store it in OneDrive for Business or SharePoint, and give the table clear column headers.
  • AI Builder or Copilot Credits. Training a model is one thing. Running it inside a flow uses credits. Ask your administrator to confirm your environment has credits allocated.
  • Practice data only. Use made-up forms while learning. Don't upload real student, patient, or employee details just to practise.

About licensing (checked 30 November 2026): Microsoft says AI Builder trials have been discontinued, and new customers use Copilot Credits to run models. A Microsoft 365 subscription alone doesn't guarantee your flow can run, so check this early.

Sources: Microsoft's licensing overview, roles and security guidance, document processing FAQ, and Excel Online (Business) connector reference. Licensing can change, so confirm it in your own environment.

Step 1: Open the Custom Document Processing Model

Open Power Apps or Power Automate and go to More → AI hub → AI models. In my environment, AI models was already in the left menu, so yours may look a little different. (Reference: Microsoft's custom document processing guide.)

Under the Documents category, select Extract custom information from documents. This is the custom model, not the prebuilt invoice or receipt model.

Selecting Extract custom information from documents in AI Builder
Select Extract custom information from documents.

The next screen gives a quick introduction with examples of what the model can extract: text, numbers, tables, checkboxes, and handwriting. Select Create custom model.

AI Builder introduction screen with the Create custom model button
The introduction screen. The delivery-order sample is Microsoft's example, not one of my forms.

Step 2: Choose the Document Type

AI Builder asks what kind of documents you'll process. The options are:

  • Fixed template documents: every form has the same layout.
  • General documents: the layout can vary.
  • Invoices

I picked General documents, because my three forms don't share the same layout.

General documents selected as the document type in AI Builder
I selected General documents.
AI Builder examples explaining the General documents option
AI Builder shows a few examples of what counts as a general document.

If all your forms use the exact same template, choose Fixed template documents instead. Then select Next.

Step 3: Choose the Information to Extract

Now you're on the Choose information to extract screen. Think about what you normally type into your spreadsheet. Those are your fields.

Select Add. AI Builder offers five field types:

  • Text field
  • Number field
  • Date field
  • Checkbox
  • Table
The Add button on the Choose information to extract screen
Select Add to start adding fields.
Field type options in the AI Builder Add dialog
Pick a field type. The mortgage statement is Microsoft's sample.

You don't need to extract everything on the page. Here's what I set up:

  • Name → Text field
  • Mobile Number → Number field
  • Date of Birth → Date field

Tip: I'd use a Text field for Mobile Number next time. A Number field can drop the leading zero, the plus sign, or spaces. My screenshots show the Number field because that's how I first set it up.

Step 4: Add the Name Field

Select Text field, type Name as the field name, and select Done.

Adding the Name text field in AI Builder
Adding the Name field.

Give your fields clear names. You'll see these names again in Power Automate, and "Name" is much easier to work with than "Field1".

Step 5: Add the Other Fields

Repeat the same steps for Mobile Number and Date of Birth. When you're done, all three fields appear in the list.

Final field list with Name, Mobile Number and Date of birth
The final list: Name, Mobile Number, and Date of birth.

While exploring, I also tried adding a Checkbox and a Table.

Field list with a checkbox and a table added during testing
I added a checkbox and a table to see how they work, then removed them.

A table can have its own name, and you can add, rename, or delete its columns.

AI Builder table editor with one text column and one number column
The table editor, with one text column and one number column.

If you add a field you don't need, you can delete it.

Deleting the checkbox field in AI Builder
Deleting the checkbox field.

For this guide, I kept just the three fields. Fewer fields means less tagging and an easier first model.

Step 6: Create a Document Collection

Select Next to reach Add collections of documents. A collection is simply a group of sample documents the model learns from.

Select New collection, open it, and select Add documents.

Empty Collection 1 asking for at least five sample documents
Collection 1 is empty. AI Builder asks for at least five documents.

You need at least five documents in each collection (up to 20). If your scans are blurry or your forms vary a lot, add more. Use real variety instead of five copies of the same page.

Step 7: Upload Your Sample Forms

AI Builder lets you pick where the files come from. My environment showed:

  • My device
  • SharePoint
  • Feedback loop
  • Azure Blob Storage (greyed out in my case)

I used My device, because it's the simplest option.

Document source options in AI Builder with My device selected
Choose My device to upload files from your computer.

Here I'm selecting my three demo forms. Since a collection needs at least five documents, the final collection ended up with five, as you'll see in the next step.

Selecting student, hospital and employee demo PDF forms for upload
Selecting the student admission, hospital admission, and employee onboarding forms.

Step 8: Check the Collection

After uploading, Collection 1 showed five training documents. Select Next to start tagging.

Collection 1 containing five training documents
Five documents in Collection 1.

Step 9: Tag the Name

Tagging is how you show the model where each value is on the page.

Open the first document, select the person's name, and assign it to Name. In one of my samples, the name was Nafisa Rahman.

Tagging the Name field on a training document in AI Builder
Tagging the Name field. Four documents are done, one is left.

Do the same on every training document.

Step 10: Tag the Mobile Number

Select the mobile number on the form and assign it to Mobile Number. Repeat this on all five documents.

Assigning a phone number to the Mobile Number field
Assigning the phone number to Mobile Number.

If your forms write phone numbers in different ways (with a country code, with spaces, with dashes), include those variations in your samples.

Step 11: Tag the Date of Birth

Select the date and assign it to Date of Birth. In this sample, the date was written as 15/03/2013 (day/month/year).

Tagging 15/03/2013 as Date of birth
Tagging the date of birth.

Step 12: Finish Tagging All Documents

Go through all five documents and tag every field. When everything is tagged, AI Builder shows a confirmation.

AI Builder confirmation that all documents are tagged
All documents are tagged.

Take a minute to double-check your tags. A wrong tag teaches the model the wrong thing. Then select Next.

Step 13: Review and Train

The Model summary screen shows everything before training. Mine showed:

  • Document type: General documents
  • One collection
  • Five tagged examples each for Name, Mobile Number, and Date of birth

You can also rename the model here. I typed "Practical guide", but later screens still show the default name "Document Processing", so the rename didn't save in my case. Whatever name you end up with, remember it, because you'll pick it in Power Automate.

AI Builder model summary before training
The model summary before training.

Select Train. Training can take a while, especially for General documents models.

Step 14: Check the Trained Model

Go back to AI models. Your model appears in the list with the status Trained.

AI models list showing the model with Trained status
The model is trained but not yet published.

A trained model isn't ready to use yet. You need to publish it first.

Step 15: Test and Publish the Model

Open the trained model. The page shows the training documents, the fields to extract, and two buttons: Quick test and Publish.

Model page showing Not published status with Quick test and Publish buttons
Before publishing, the status says Not published.

Before publishing, use Quick test. Upload the extra form you kept aside and check whether each value comes back correctly. When you're happy with it, select Publish.

Model page showing Published status with three fields
The model is now published.

Step 16: Choose How to Use the Model

Select Use model. You can build an automation with Power Automate, build an app with Power Apps, or use a document automation solution. I went with Power Automate, because I wanted to send a PDF in and get the values into Excel.

Use model options for Power Automate, Power Apps and document automation
I chose the Power Automate option.

Step 17: Create an Instant Cloud Flow

In Power Automate, open Flows and create a new Instant cloud flow. Choose Manually trigger a flow, give the flow a name, and select Create.

Creating an instant cloud flow with Manually trigger a flow
Creating the instant cloud flow.

Add a File input to the trigger. This is where you'll upload the PDF when you run the flow.

Step 18: Add the Process Documents Action

Select New step under the trigger.

Power Automate flow with the manual trigger and New step button
The flow so far, with just the trigger.

Search for the AI Builder action Process documents and set it up like this:

  • AI model: your published model
  • Form type: PDF Document
  • Form: the File from the manual trigger

Step 19: Send the Values to Excel

Add the Excel Online (Business) action Add a row into a table. My workbook was in OneDrive for Business. Pick your file and table, then map each column to the matching AI Builder output:

  • Excel Name ← Name
  • Excel Mobile Number ← Mobile Number
  • Excel Age ← Date of birth

Note: In my workbook, the column was named "Age", but it holds the date of birth, not a calculated age. In your workbook, name the column "Date of Birth". The Address column in the screenshot is left empty.

Power Automate flow with Process documents and Add a row into a table actions
The finished flow: trigger, Process documents, and Add a row into a table.

Excel isn't the only option. You can send the values to SharePoint, Dataverse, or any other connector your workflow uses.

What Happened When I Ran the Flow

I saved the flow and ran it with a PDF. The trigger worked, but Process documents failed with this message:

"No Copilot Credit or AI Builder credit capacity in this environment."

Because that step failed, the Excel step was skipped.

Flow run showing Process documents failed for missing credit capacity
The trigger succeeded, Process documents failed, and the Excel step was skipped.

The model itself was fine. It was trained and published, and the flow was set up correctly. The problem was credits. The error said the administrator needs to allocate Copilot Credits or AI Builder credits to this environment, and that access to unallocated tenant credits had been blocked.

So no row reached Excel in this test. If you see the same error, contact your Power Platform administrator and ask them to allocate credits to your environment. Once credits are in place, run the flow again.

Before you call it done

  • Run a Quick test and compare each value with the original form.
  • Check that phone numbers keep their leading zero or plus sign, and that dates are in the right format.
  • Make sure the flow is using your published model.
  • Confirm your environment has credits available.
  • Run the flow and open the Excel file to check that the row was actually added.

What I Learned

Starting small made a big difference. With only three fields, I could focus on how each step works: defining a field, tagging it, and connecting the model to a flow.

The bigger lesson: a trained and published model doesn't mean your flow will run. Licensing and credits are a separate piece, so check them before you start building.

If you're trying this for the first time, here's what I'd suggest:

  1. Start with one kind of form.
  2. Pick just a few fields.
  3. Prepare at least five sample documents.
  4. Tag each value carefully.
  5. Train the model.
  6. Run a Quick test before publishing.
  7. Confirm your credits before building the flow.
  8. Add more fields only once the small version works.

Practical Tips for Better Results

Use realistic sample documents

Five copies of the same page with one value changed won't teach the model much. Use samples that look like the forms you'll actually receive, with different layouts, formats, and scan quality.

Match the document type to your forms

If every form uses the same layout, Fixed template documents works well. If the layout varies, use General documents. Either way, test with the kinds of forms you really expect.

Use clear field names

Names like Name, Mobile Number, or Date of Birth are easy to find later in Power Automate. Avoid names like Field1.

Use clean scans

Blurry scans, heavy shadows, and messy handwriting make recognition harder. The clearer the document, the better the results.

Test before you build a big flow

Use Quick test first. It's much easier to fix the model early than to troubleshoot a large flow later.

Frequently Asked Questions

Can AI Builder read handwriting?

Yes. It works with both printed and handwritten text, but messy handwriting will lower accuracy.

What file formats are supported?

PDF, JPG, and PNG.

How many documents do I need for training?

Between five and 20 per collection. Five can be enough if the documents are clear and similar. Use more if your scans are poor or your layouts vary a lot.

Can AI Builder extract checkboxes and tables?

Yes. You can add Checkbox and Table fields, and set up the table's columns yourself.

Do I have to use Excel?

No. Excel is just the example here. Power Automate can send the values to many other places, such as SharePoint lists or Dataverse.

Why did Process documents fail in this guide?

My environment had no Copilot Credits or AI Builder credits. An administrator has to allocate credits before the model can process documents in a flow.

Do I need to publish the model?

Yes. Training prepares the model, but you can only use it in Power Apps or Power Automate after you publish it.

Final Thoughts

If you copy the same details from forms into a spreadsheet every day, AI Builder is worth a try. You don't need to automate every form or every field at once. Start with one form and a few fields.

Prepare samples → define fields → create a collection → tag → train → publish → connect to Power Automate → check credits → run and verify.

In my test, everything worked up to the flow run, which stopped because of missing credits. That's the step most guides skip, so check your credits early and you'll save yourself the surprise.

About This Walkthrough

This is an independent tutorial based on my own setup. All forms use made-up practice data. Microsoft's interface and licensing can change, so check the linked Microsoft pages and talk to your administrator before using this in production.