Please wait, loading...

 

Text Classification using AI Builder inside Power Automate (Microsoft Flow)

January 20, 2020

Facebooktwitterredditpinterestlinkedintumblrmail

Text classification is one of the important tasks for the aim of classifying the texts based on the allocated tags.
In the previous blog, the process of how to create Text classification in the Power Apps using AI builder has been explained,

In this Blog Post, you will see how to use the created Text classification model in the Power Automate (Microsoft Flow).

to strat

1- Login to Power Automated Account and to the same environment you have your own Text classify model created in the previous steps in the same environment.

2- In the next step, you need to login to the Power Automate,  just make sure to log in to the Power Automate in the same environment. Same as Other AI Builder solution in Power Automate, you need to create a new solution and other that create the Microsoft flow.

then click on the new Solution, “AICourse”. Then create a new Flow.

In the new page, create the Microsoft Flow, by trigger by ” Manually trigger a flow”, and add Input for the Text

in the new page call the text as “Mytext”. Next, we need to call the AI Builder using Predict for Common Data Services (CDS). So click on the “New Step” and search for the Predict.

In the list of the model, you can see the “textclassification”, we created alongside with other models. For the Request Payload

write the

{“text”:” “}

and

for the formula for the white space click on the “Mytext” which is the output of the previous step.

Next, change the name of the Flow and save the flow to click on the text at the top right of the window .

For the first time, you need to trigger manually.

Next, run the flow to get the JSON schema

When the  run finished, click on the output and copy the respond Payload

{“predictionOutput”:{“results”:[{“type”:”Care”,”score”:0.603922}]},”operationStatus”:”Success”,”error”:null}

Click on the Edit, and add a new Step for the Pars JSON.  then Click on the “Geberate from Sample” to extract the JSON code. The yu should see something like below

Just save and run the code. This time after a click on the Test Flow, I choose the Using data from Previous runs.

Now check the output, as you can see in the JSON code the output id Type is Care and the Score is 0.60.

 

The output is on the JSON format, you can then use it to automatically send the result to other platforms.

https://docs.microsoft.com/en-nz/ai-builder/text-classification-model-in-flow

 

 

Facebooktwitterlinkedinrssyoutube

The post Text Classification using AI Builder inside Power Automate (Microsoft Flow) appeared first on RADACAD.

Follow Source

https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/04/Microsoftdynamics365.png?fit=640%2C651
Microsoft Dynamics Community Profile

Learn more