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 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
    Microsoft Employee 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

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard