Power Platform AI Builder: Entity Extraction AI Model

You are currently viewing Power Platform AI Builder: Entity Extraction AI Model

AI Builder entity extraction models recognize specific data in the text that you target based on your business needs.
The model identifies key elements in the text and then classifies them into predefined categories. This can help you transform unstructured data into structured data that’s machine-readable. You can then apply processing to retrieve information, extract facts, and answer questions.

The term “Entity” in Entity Extraction AI Model means predefined categories like Age, Color, Date and time etc.

Types of Entity Extraction models

  • Prebuilt Model: Prebuilt models are ready to use, don’t require training or publishing, and are appropriate for many uses where customization isn’t needed.
  • Custom Model: Custom entity extraction models must be built, trained, and published before you can use them. By using your training data and design parameters, you can create an entity extraction model that’s purpose-built for your unique requirements.

Use formulas in Power Apps for text AI models

You can integrate some AI Builder models in Power Apps Studio by using the formula bar. Here’s the syntax for Entity Extraction Models:

Syntax: AIBuilder.ExtractTextEntities(text, {modelId: Guid, language: Text})
where text (mandatory) – the input string,
(Optional) modelID – Guid of the custom model and language – the language used by the model

So we can utilize the Entity Extraction models in formulas as follows:

Prebuilt Model:
Concat(AIBuilder.ExtractTextEntities(txt_inputdata.Text).entities, type & “: ” & value & “, “)

Custom Model:
Concat(AIBuilder.ExtractTextEntities(txt_inputdata.Text, {modelId: GUID(“406b89fb-c5a7-464f-aa4d-e13894e26f97″), language:”en”}).entities, type & “: ” & value & “, “)

Entity Extraction in Power Apps

Use in Power Automate

Similar to Power Apps, we can utilize the Entity Extraction models in Power Automate as well. Same as above, we have two options to use this feature.

Prebuilt Model: To use prebuilt Entity Extraction model in a flow, search for the term AI Builder, and then select ”Extract entities and their types from text” in the list of actions.

AI Builder - Extract entities and their types from text

Custom Model: For any custom AI Builder model, we can use the “Predict” action in Power Automate. Here we can select our custom model and pass the text and language to get the result.

AI Builder - Predict for custom model

Well, I hope everyone would like to try out this feature and learn how to utilize it to extract valuable information for our customers.
As it is in the Preview mode, we can expect some changes in future before release.
Till next time, Cheers 😉

Manish Rawat

Microsoft Certified: Dynamics 365 + Power Platform Solution Architect Expert, with little Knowledge of Scrum (PSM-I) & keen to learn about Power Platform 😎