AI functions in PAD
AI Builder Dataverse Power Automate
Manish Solanki  

Add intelligence with Dataverse AI functions in Power Automate Desktop flows

With the introduction of Dataverse Cloud Connector (preview) in power automate desktop flow (in Version 2.44), it becomes easier to add intelligence in PAD using Dataverse AI functions. This will address the issue of setting up HTTP request trigger or any other approach for calling AI functions from Power Automate Desktop.

You can find official documentation for AI functions in the below mentioned link:

AISummarize, AISentiment, AIReply, AITranslate, AIClassify, and AIExtract functions – Power Platform | Microsoft Learn

I did some research and found that these actions can be called using “Perform an unbound action in selected environment” action under Dataverse connector.

In this article, I will demonstrate how to set inputs parameters for each Dataverse AI functions with the example mentioned in the documentation link.

NOTE: Calling Dataverse AI functions consumes AI credits.

AIClassify

This action classifies text into one of the provided categories. 

Below is the list of input parameters:

Environment: <Select the Environment>


Action Name: AIClassify


Item/Categories: (Note: Click 'Edit' button and add below two items)
Housing
Food


Item/Text:
Washington is a state that offers a variety of food experiences for locals and visitors alike. Whether you are looking for fresh seafood, farm-to-table produce, ethnic specialties, or gourmet treats, you will find something to satisfy your taste buds in Washington. Washington is famous for its seafood,especially salmon, oysters, crab, and clams. The state has a long coastline and numerous rivers and lakes that provide abundant and high-quality seafood.

Output:

AIExtract

It extracts specified entities such as registration numbers, phone numbers, or names of people from the input data.

Environment: <Select the Environment>


Action Name: AIExtract


Item/Text:
Washington is a state that offers a variety of food experiences for locals and visitors alike. Whether you are looking for fresh seafood, farm-to-table produce, ethnic specialties, or gourmet treats, you will find something to satisfy your taste buds in Washington. Washington is famous for its seafood, especially salmon, oysters, crab, and clams. The state has a long coastline and numerous rivers and lakes that provide abundant and high-quality seafood.


Item/Entity: State

Output:

It did not return the name of the expected state. I am not sure if this is because of preview feature or some issue with AI extract model.

AIReply

This drafts a reply to the input data provided.

Below is the list of input parameters:

Environment: <Select the Environment>


Action Name: AIReply


Item/Text:
Washington is a state that offers a variety of food experiences for locals and visitors alike. Whether you are looking for fresh seafood, farm-to-table produce, ethnic specialties, or gourmet treats, you will find something to satisfy your taste buds in Washington. Washington is famous for its seafood, especially salmon, oysters, crab, and clams. The state has a long coastline and numerous rivers and lakes that provide abundant and high-quality seafood.

Output:

AISummarize

This action summarizes the text of the data provided as input.

Below is the list of input parameters:

Environment: <Select the Environment>


Action Name: AISummarize


Item/Text:
Washington is a state that offers a variety of food experiences for locals and visitors alike. Whether you are looking for fresh seafood, farm-to-table produce, ethnic specialties, or gourmet treats, you will find something to satisfy your taste buds in Washington. Washington is famous for its seafood, especially salmon, oysters, crab, and clams. The state has a long coastline and numerous rivers and lakes that provide abundant and high-quality seafood.

Output:

AISentiment

It detects the sentiment of the input provided to it.

Below is the list of input parameters:

Environment: <Select the Environment>


Action Name: AISentiment


Item/Text:
Washington is a state that offers a variety of food experiences for locals and visitors alike. Whether you are looking for fresh seafood, farm-to-table produce, ethnic specialties, or gourmet treats, you will find something to satisfy your taste buds in Washington. Washington is famous for its seafood, especially salmon, oysters, crab, and clams. The state has a long coastline and numerous rivers and lakes that provide abundant and high-quality seafood.

Output:

AITranslate

This function translates text from another language.

Below is the list of input parameters:

Action Name: AITranslate


Item/Text: 
Washington is a state that offers a variety of food experiences for locals and visitors alike. Whether you are looking for fresh seafood, farm-to-table produce, ethnic specialties, or gourmet treats, you will find something to satisfy your taste buds in Washington. Washington is famous for its seafood, especially salmon, oysters, crab, and clams. The state has a long coastline and numerous rivers and lakes that provide abundant and high-quality seafood.


Item/TargetLanguage: fr

Output:

It failed with the error code “ModelNotSupported”. It seems that AI translate model is not supported in my dev environment.

Correlation Id: 971a8bff-a453-4c4e-a963-fce033d0ea04

Additional info:
{
  "StatusCode": "403",
  "Message": "",
  "Body": {
    "error": {
      "code": "0x80048d06",
      "message": "{\"operationStatus\":\"Error\",\"error\":{\"type\":\"Error\",\"code\":\"ModelNotSupported\",\"message\":\"This scenario is not supported in this environment.\"},\"predictionId\":null}"
    }
  },
}

Conclusion

We can use “Perform an unbound action in selected environment” action (preview) to call & use AI functions in Dataverse to add intelligence for input data. These plugins can be called directly from Power Automate Desktop thereby reducing efforts for setting up HTTP request trigger or any method.

Leave A Comment