From the course: Microsoft Power Apps: AI Builder

Use the AI model in an app - PowerApps Tutorial

From the course: Microsoft Power Apps: AI Builder

Use the AI model in an app

- We're going to spend just a few minutes using our published model in a power app so you can see how that works. We won't do this for all of the models we create, but I think it helps to have created an app or a workflow that takes advantage of one of the models that you've created. Click on Apps, click New App. And, there are three types of apps you can create in Power Apps, even though one of them says model-driven, don't head for that. It doesn't have anything to do with the fact that it has an AI builder model in it. A model-driven app is an app that is pointed at a particular data store, the common data service for applications. We're going to create a canvas app. And we can chose, really, whichever layout we wish. We're going to create a blank application. But, let's give ourselves some space and actually create a blank app that has a pretty large form factor. I'm going to choose the Tablet layout which would fit, for example, on my iPad. And here is my blank application. Make this a little bit smaller, that will help. And we're going to go to the Insert tab. And I'm going to choose AI Builder and Form Processor. Note that these are the four types of AI builder models that are available for production right now. All of them are premium services, that's the diamond on the right hand side. But, we've created a form processor model. We're going to click to insert it into our app here in Power Apps. It says anyone using this app has to have an AI builder license. Cool, got it. Now, immediately, when we asked to place this control, Power Apps went out to our list of models and says, well, you said form processing, you only have one of those, and that's this one, so, I'm going to click to map that particular model, the one we just built, to this control. And we could immediately play this app, but I put this in a tablet so we'd have some space. It's really pretty small, so I'm going to stretch it out. It's nice to have a little bit of frame around the edges, but we don't need much. And now let's click Play. And it's waiting for us to do something, there's only one button here it's Analyze, let's click it. We'll be asked to identify a form that we want to analyze. And this is going to work the same way that it worked when we were doing this in the browser in the Power Apps Studio. But, with one exception, it's actually showing us, for each of the fields, what the confidence level is. If we point to any of the selected fields, it tells us that there were no tables detected, there were nine fields, and it tells us the name of the field, field and then the field name. That's how this application works. If we wish, we could add other functionality to our application. And if you'd like to know how to build out this Power App or other Power Apps, there are a number of courses on Power Apps in the LinkedIn learning library. But, my purpose was to show you how you would connect the form processing model that you built with an application in Power Apps. And we have now done that. If you wish to save this Power App and play more with it later, you can. Simply go to File in Settings, give it a name. Looking for something that looks a little bit like an evaluation if there is something like that here. Sure, and whatever color you would like, so it will stand out from others, a brief description. This is a Sample App created by and your name if you wish and why. Click Save and then click Save again to save the app in your environment, either in the cloud or to save it temporarily to your computer, you download it here. I'm going to go ahead and save it to the cloud. Click the Save button. And now I have created my model, and I have used it in an application.

Contents