AI Builder brings a huge change to creating smart self-service Applications. In this post we are going to see how to create a smart application that able to read the Business Card content and extract them, then import them using Power Automate to the Outlook contact list.
Creat Business Card Reader using Power Apps and AI Builder
First login in the environment that supports the AI Builder.
Now in the new Canvas app, create a new Phone layout
In the new page, click on the Insert option, then click on the AI Builder –> Business Card Reader
In the next step, click on the Insert Lable, and for the label write the below formula, BusinessCardReader1.FullName
Copy and paste two times for the email and Phone number
BusinessCardReader1.Email
and
BusinessCardReader1.BusinessPhone
Next, Save the App and Navigate to the Power Automate (Microsoft Flow)
Create Flow in Power Automate
Now navigate to the same Environment in Power Automate with the same account, First, create a new Flow, and the trigger should be Power Apps that do not get any input from the Power Automate,
Next, click on the Next step and add the “Create contact(V2)”
we need to set up some part of this component.
First the Folder ID, for me is Contacts
Next, the Given Name which is mandatory, click on the box, choose to Ask in Power Apps, then another component fir the GivenName will show choose that one and remove the Ask in pOwer APPs, do the same for the Home Phone and Email address
Then save the Flow and back to the Power Apps
Connect the Power Apps and Power Automate
Back to Power Apps to connect the Apps with Power Automate. Click on the Insert, then click on the button, and change the name of the Button to the Add
Next, click on the Button, then Action, then Power Automate, and in the list at the right sides of the page choose the Flow you just created, then at the formula bar you should it.
The list of required parameters has been listed also there.
Next, add the parameters as below
GettheContact_powerapps.Run(BusinessCardReader1.FullName,BusinessCardReader1.BusinessPhone,BusinessCardReader1.Email)
As you can see all the elements we already add in the Flow to be added in the Contact have been requested here as input parameters.
Run the application using the Run button at the top right
you should see the details and also you should see the contacts have been added to the contact section in outlook
see the video from here