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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Answered

Custom AI Prompt

(0) ShareShare
ReportReport
Posted on by 15

I am starting to play with building AI prompts, and use them in a power app. I have a custom prompt that I used as is as the text classification prompt. In my powerapp I added the custom prompt, and 3 objects on my page. Two text fields and a button. This is the code I have on my button:

 

UpdateContext({myVar: 'Define Task Skill'.Predict(TextInput1.Text, TextInput2_1.Text)});
 
However this method just gives me an error in the text field which is supposed to give me the result.
 
Has anyone got some advice here?
 
Categories:
I have the same question (0)
  • Kathryn_Marie Profile Picture
    15 on at

    I've done some further digging, and the error is because the value being returned is not text. How can I ensure that the response I am getting from the prompt is a text value?

     

    These are the instructions I am following: Use your prompt in Power Apps | Microsoft Learn

  • Antrod Profile Picture
    Moderator on at

    Hi @Kathryn_Marie ,

     

    The "Text" value returned by the prompt should be of type text. I just tested adding the Text output inside a text field component and it worked:

     

    Antrod_0-1713948522717.png

     

    Are you using similar formula?

     

  • Verified answer
    Kathryn_Marie Profile Picture
    15 on at

    I was trying to. I found the answer though by following this: Make Your Own Custom AI Builder Prompts for the Power Platform! (youtube.com)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 740 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 342 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard