DEV Community

Cover image for How to Integrate AI Builder Models with Power Automate?
Ena Vaghela
Ena Vaghela

Posted on

How to Integrate AI Builder Models with Power Automate?

If you have ever wished your routine tasks could run a bit smoother or handle themselves, integrating AI Builder with Power Automate is a great way to make that happen. You get smart automation without any coding, and your workflows start doing the heavy lifting for you.

Whether you deal with documents, emails, or data entry, you can train a model, connect it to a flow, and let automation take over. This guide walks you through the process in a simple and practical way so you can start building smarter workflows right away.

Process of Integrating AI Builder Models with Power Automate Flows

Here is the step-by-step process to integrate AI Builder Models with Power Automate Flows:

Step 1: Select or Train the Right AI Builder Model

Your first step is choosing or creating the model that fits your task. AI Builder offers several types of models. You can work with form processing, document processing, prediction, receipt reading, category classification, sentiment analysis, or object detection. If you have never used it before, you can start with prebuilt models because they are ready with no training required. If you want more control, you can create a custom model with your own examples.

To begin, open Power Automate or Power Apps. Go to AI Builder and select the Build option. From there, pick the model type you need. If you are building a custom model, you will upload documents or data so the system can learn patterns. For example, if you want to extract fields from invoices, you will upload different invoice samples. Once you add enough data, click Train. When training finishes, publish the model so you can use it inside your flow.

The important part is selecting quality examples. The better your samples are, the better your model performs. If you use documents with clear formatting and consistent structure, you will get stronger accuracy later in your automation.

Step 2: Create a Flow in Power Automate

After your model is ready, it is time to create your flow. Go to Power Automate and select Create. You can choose an automated cloud flow, an instant flow, or a scheduled flow based on your use case.

If you want the system to run when a file arrives in SharePoint, choose an automated cloud flow and select the trigger for file creation. If you prefer to run it manually, select Instant Flow. For regular daily or weekly processing, choose a scheduled flow.

Once you select the trigger, your flow dashboard opens and you are ready to add AI Builder to it.

Step 3: Add the AI Builder Action

In the next step, click New Step and search for AI Builder in the actions list. You will see options like predict, classify text, extract information from documents, process receipts, or detect objects. Choose the option that matches your model type. After that, select your published model from the dropdown list.

This is where the integration begins. You are connecting your trained AI capability directly into the workflow. Power Automate will now run your model every time the trigger condition occurs.

Step 4: Map Inputs to the Model

Once the AI Builder action is added, you need to connect data inputs from the trigger. If your trigger is a file upload, you will map the file content to the model input field. If your model works with text, you will map the text message or email content.

For document processing, connect the file content from your SharePoint or OneDrive trigger. For prediction models, map the required fields from the input source. Pay attention to the input suggestions displayed by Power Automate so your mapping stays accurate.

This mapping stage decides how well the model understands your data, so take your time and review the fields carefully. Good mapping ensures smooth automation and reliable results.

Step 5: Use the Model Output in Your Flow

Your model will return outputs such as extracted data, text labels, prediction scores, or confidence values. These outputs allow you to build the rest of your automation.

For example, if your model extracts invoice totals, you can store them in SharePoint or update a database. If your model classifies an email as a support request, you can send it to the support team. If your model predicts lead quality, you can automatically notify the sales manager.

You can add actions like sending an email, creating a row in Excel, posting to Teams, or updating Dataverse. Every output from the model can trigger a different action, and you can build conditional branches based on confidence scores. This gives you control and flexibility in your automation.

Step 6: Test Your Flow

Before using your flow in real operations, you should run a test. Power Automate lets you test the flow with sample data. Upload a document or trigger an event and check how the model behaves. Review the extracted values or predictions. Make sure the flow updates the correct systems like SharePoint or Excel.

If anything looks incorrect, go back to your model or mapping and adjust it. Test again until you feel confident that the automation performs correctly.

Step 7: Monitor the Model and Improve Accuracy

Your model will improve if you keep feeding it better data. AI Builder gives you confidence scores for every prediction or extraction. If the confidence score is low, it tells you that your model needs more training data. You can add more documents, retrain the model, and republish it.

It is also helpful to monitor your flow runs inside Power Automate. This helps you track errors, understand performance levels, and assess model accuracy over time. Regular monitoring ensures smooth automation and better results.

Conclusion

Using AI Builder with Power Automate is a simple way to make your workflows smarter and remove a lot of manual work from your day. Once you set up the right model and connect it to a flow, the system starts doing most of the hard work for you.

If you want extra support or want to improve your setup later, you can also look into Power Automate consulting services for expert guidance. This is a great time to start building smarter workflows that save you time and effort every day.

Top comments (0)