Build a Power Automate flow to use the AI Builder Business card reader

Completed

In this exercise, you build a Power Automate flow to check when an image is added to a folder and trigger AI Builder Business card reader. If the contact information is extracted, it's saved in Microsoft Dataverse. (See Use the business card reader prebuilt model in Power Automate).

Create a flow in Power Automate

Create a flow to manage the triggering of AI Builder business card reader when an image is added to your OneDrive, and then save the result in the Contacts table.

  1. Sign in to Power Automate and open the Create menu.

  2. In the Start from blank section, select Automated flow.

  3. Enter Contoso Business card reader as the name.

  4. Enter When a file is created - OneDrive for Business as the trigger.

  5. Select Create.

  6. In your When a file is created trigger, select the OneDrive folder where you're going to place business card images to trigger the flow.

Note

You can use any kind of trigger such as "When an email arrives in Outlook," "When a record is created in Dataverse," "When an item is created in SharePoint," and more.

Call AI Builder Business card reader

To call AI Builder Business card reader, follow these steps:

  1. Select New step.

  2. Select Predict.

  3. Select BusinessCard model in the Model drop-down list.

  4. Select File content type for the File type property.

  5. Select File content for the File property.

    Screenshot of the Predict step with Image type and Image options filled in.

Save the result in the Contacts table

To save the result in the Contacts table, follow these steps:

  1. Select New step > Add a new row - Microsoft Dataverse.

  2. Select the Contacts table in the Table Name property.

You can map the Contacts table fields to the extracted fields from the Business card reader model. Fields for first name, family name, address information, email, and so on, are available. Currently, 18 fields are available.

Note

You can also send the results by email, create a file in SharePoint, and more.

You should end with following flow. Select Save, and your flow is now ready to process images.

Screenshot of a flow with When a file is created, Predict, and Create a new record steps.

You can drop a business card image in the designated folder of your OneDrive to trigger your flow. Power Automate automatically processes this file, triggers AI Builder Business card reader, and stores a new record in the Contacts table with the extracted data from the business card.

You've learned how to integrate AI Builder Business card reader in Power Automate, which helps you automatically process business cards from OneDrive and store results in Dataverse.