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

Community site session details

Session Id :
Power Apps - AI Builder
Answered

AI Builder FX doesn't work in the latest power apps

(0) ShareShare
ReportReport
Posted on by 242

Sentiments is not listed

We tried with 

Set(SentiOP,'Sentiment analysis'.Predict(TextInput1.Text).Sentences)
But doesn't help;
Can anyone suggest to output sentiments in the below gallery using the button on select or something
 
MithaliGupta_0-1668512888929.png

 

Categories:
I have the same question (0)
  • Verified answer
    CedrickB Profile Picture
    Moderator on at
    Re: AI Builder FX doesn't work in the latest power apps

    First of all, make sure to add the Sentiment Analysis model as a datasource.

    CedrickB_0-1668514264771.png

    Then store the result in your variable.

    Set(Result, 'Sentiment analysis'.Predict(TextInput1.Text))

     

    To get the sentiment, you have several options:

    First(Result.Sentences).TopSentiment.Name

    1. This will get the main sentiment of the first sentence.

     

    Result.Document.TopSentiment.Name

    2. This will get the main sentiment of the entire text.

     

    See more details here https://learn.microsoft.com/ai-builder/prebuilt-sentiment-analysis 

  • Verified answer
    MithaliGupta Profile Picture
    242 on at
    Re: AI Builder FX doesn't work in the latest power apps

    Thanks Cedrick!! This is working absolutly as expected. Can u also suggest on icon;; as i tried; 

    //Switch(RESULTS.Sentences,"positive",EmojiSmile,"netural",EmojiNeutral,"negative",EmojiSad,EmojiNeutral)
    Switch(RESULTS.Sentences,"Positive",Icon.EmojiHappy,"Neutral",Icon.EmojiNeutral,"Negative",Icon.EmojiSad)
  • Verified answer
    MithaliGupta Profile Picture
    242 on at
    Re: AI Builder FX doesn't work in the latest power apps
    Switch(Result.Document.TopSentiment.Name,"Positive",Icon.EmojiHappy,"Negative",Icon.EmojiSad,"Neutral",Icon.EmojiNeutral,Icon.EmojiHappy) This Worked for Me !!Thanks
  • CedrickB Profile Picture
    Moderator on at
    Re: AI Builder FX doesn't work in the latest power apps

    Insert an icon and edit the "Icon" property with

    Switch(Result.Document.TopSentiment.Name, "Positive", Icon.EmojiHappy, "Neutral", Icon.EmojiNeutral, "Negative", Icon.EmojiSad)

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 624 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 381 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 225

Last 30 days Overall leaderboard