web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / AI Builder Confidence ...
Power Automate
Unanswered

AI Builder Confidence Score and Classification

(0) ShareShare
ReportReport
Posted on by 82

Hi, 

I have a Text Classification Model that will read incoming email and rate the email content with Confidence Score and Classification. The flow managed to run successfully but the result came out with two classification and pasted the inaccurate value back to my Dataverse table. 

Based on the data that I trained with, it should update my table with 'Need Further Clarification' but it updated with 'Pending' instead. Below shows the output of AI Model and data updated in Dataverse: 

[
 {
 "@odata.type": "#Microsoft.Dynamics.CRM.expando",
 "type": "Need Further Clarification",
 "score": 0.9958772
 },
 {
 "@odata.type": "#Microsoft.Dynamics.CRM.expando",
 "type": "Pending",
 "score": 0.77722
 }
]

Xinlin_0-1674026986269.png

Why is the AI Builder capturing two different value when it should be just one? Is there any way I can capture the score with higher value and update in my Dataverse table? I've also attached my flow below for better reference. 

 

Thank you in advance! 

Xinlin_1-1674027454838.png

Xinlin_2-1674027500677.png

Xinlin_3-1674027596682.png

 

 

Categories:
I have the same question (0)
  • Antrod Profile Picture
    Microsoft Employee on at

    Hi @Xinlin ,

     

    It's possible that several categories correspond to a text. If you want to just take the one with the higher confidence, here's an example of logic you could add in your flow

    • Set an object variable called SelectedCategory which is empty by default
    • When browsing all the returned categories by the AI model, you can add this logic:
      • If the variable SelectedCategory is empty, set it with {"category": "<current category value>", "confidence": <current category confidence>}
      • If the variable SelectedCategory is not empty, compare current confidence with the one in the variable: variables('SelectedCategory')['confidence']. If its higher, replace the SelectedCategory values with the ones from the current.
    • Then you can insert the category from the variable into your Dataverse row, along with the other information

     

    Hoper that helps.

  • Xinlin Profile Picture
    82 on at

    Hi @Antrod ,

     

    Thanks for replying! However, I don't really understand the below part of the solution as I think my variable wont be empty. Can you show me an example of it? Thank you. 

    • If the variable SelectedCategory is empty, set it with {"category": "<current category value>", "confidence": <current category confidence>}
    • If the variable SelectedCategory is not empty, compare current confidence with the one in the variable: variables('SelectedCategory')['confidence']. If its higher, replace the SelectedCategory values with the ones from the current.
  • Antrod Profile Picture
    Microsoft Employee on at

    Hi @Xinlin ,

     

    Here's an example of logic you could apply to get the category with the highest confidence score:

    Antrod_0-1674817431360.png

     

     

    Instead of the Compose, use your logic to add data in Dataverse

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard