Live training: next batches coming soon. Join the waitlist:Waitlists open:Developer Training →Developer →Copilot Studio Training →Copilot Studio →

How to Use Prompt in Power Apps? [With Examples]

Power Apps now lets you integrate AI-powered prompts directly into your apps using the Prompt (AI capability). This feature makes it easy to collect input from users in a more interactive and dynamic way. You can configure it to accept free text, ask for a file upload, or even guide users with context-aware suggestions.

By connecting your prompt to an AI Builder model or a custom prompt, you can automate user input collection and enhance your app’s experience, without writing complex logic.

In this tutorial, we will see how to set up and use the Prompt effectively in Power Apps, with examples that cover both text-based and file-based inputs.

In this Power Apps tutorial, I will explain:

  • How to add a Prompt in Power Apps
  • Two real-world examples:
    • Uploading a file and extracting file details
    • From the issue description, get the priority level and the expected resolution date using a text-based prompt

Add Prompt in Power Apps

Before you use the Prompt control, make sure you meet these requirements:

  • You must be using a Dataverse environment.
  • You need the AI Builder license.
  • Make sure AI Builder is enabled in your environment.
  • Create a prompt in the Power Apps Prompts tab.

Example 1: Upload a File and Get File Details in Power Apps Prompt

Suppose your Power app lets users upload an invoice file. After uploading, you want to capture key details such as the name, invoice amount, and item description directly in Power Apps using AI.

To achieve this, we can use a Custom Prompt with AI Builder.

Create a Custom Prompt in AI Builder

  1. Go to Power Apps -> Prompts tab. Click on Build your own prompt.
How to Use Prompt in Power Apps
  1. A new window opens where you can define how Copilot should interpret the user’s input.
Use Prompt Control in Power Apps
  1. Prompt Name: Extract Invoice Details
  2. Instruction to Copilot (Prompt Instruction Text):
You are given the content of an invoice Document input . From this, extract the following details:
- Name
- Invoice Amount (only the numeric value)
- Item Description

Return the result in the following format:
Name: [value]
Amount: [value]
Item Description: [value]
  1. Click Save.
Power Apps Prompt Control Tutorial

Add Prompt Control in Power Apps

I have already created a Power Apps screen where users can upload a file to SharePoint. You can refer to the screenshot below to see how the upload functionality looks:

Prompt Feature in Power Apps Explained

Now, Follow the Steps Below to Add Prompt:

  1. Open your Canvas app in Power Apps Studio. Click Data -> select + Add data.
Using AI Prompt in Power Apps
  1. Search for your custom prompt and click it.

The following example shows a custom prompt named Extract Invoice Details.

Add Prompt to Power Apps Screen
  1. Now, add a Text la