Add a Copilot control to a canvas app (preview)

[This article is prerelease documentation and is subject to change.]

The Copilot control is an AI assistant that you can add to your canvas apps. Copilot lets app users get insights about the data in your app through natural language conversations with an AI-powered copilot. Makers can add the control to any canvas app and choose which data provide answers.

Important

  • This is a preview feature.
  • Preview features aren't meant for production use and might have restricted functionality. These features are subject to supplemental terms of use, and are available before an official release so that customers can get early access and provide feedback.

Note

This feature is powered by Azure OpenAI Service.

Prerequisites

Ensure you meet the prerequisites and region availability in Copilot in Power Apps overview (preview).

Copilot doesn't work in environments that have a customer-managed key or Customer Lockbox.

Set up Copilot for your environment

Before app users can use the Copilot chat experience in a canvas app, a Power Platform administrator must enable Allow users to analyze data using an AI-powered chat experience in canvas and model-driven apps in the Power Platform admin center. For more information, see Manage feature settings.

Screenshot of the Power Platform admin center environment settings, showing Copilot features.

Set up Copilot for your canvas app

Before you can add a Copilot control to your canvas app, you need to turn on Copilot component and Edit in Copilot Studio in the app settings in Power Apps.

Copilot component: Turns on the Copilot feature in your canvas app so that you can add the Copilot control to your app and connect it to a copilot.

Edit in Copilot Studio: Lets you customize the copilot using Copilot Studio. If you leave this option off, only the default copilot is available in your app.

  1. Open your canvas app for editing in Power Apps Studio. On the command bar, select Settings > Updates.

  2. On the Preview tab, find and turn on the Copilot component and Edit in Copilot Studio settings.

    Screenshot of app settings in Power Apps Studio, with the Copilot component and Edit in Copilot Studio options highlighted.

Add the Copilot control to your canvas app

Now that all settings are configured, with your canvas app open for editing:

  1. In the app authoring menu, select Insert, and then select Copilot (preview).

  2. You're prompted to add a data source to Copilot. Select a Dataverse table as the data source.

Screenshot of the Copilot control properties pane, with the Create new copilot button highlighted.

Note

The Copilot control only supports Dataverse tables for the data source.

Customize the copilot using Copilot Studio

Copilot Studio is an app that lets you create and edit copilots for your apps. You can define your copilot's topics, actions, and other features. For example, you can make your copilot respond to specific questions about your app's data or perform actions like opening a screen or sending an email.

You can customize your newly connected copilot in Power Apps through the properties menu in Power Apps.

  1. With the Copilot control on your canvas selected, choose Edit next to the Customize copilot field in Properties.

  2. If you don't have a copilot created already, select Create new copilot in the Customize Copilot pane. A Copilot control in Power Apps Studio does not support enabling an existing Copilot from Copilot Studio.

    Screenshot of the Copilot control properties pane, with the Edit and Edit in Copilot Studio buttons highlighted.

    Copilot Studio opens in a new tab. Any modifications made in Copilot Studio appear in your connected copilot in your Power Apps app.

Learn more in Quickstart: Create and deploy a copilot.

Collect feedback from app users

Makers and app users can provide feedback on how satisfied they are with the copilot's responses by selecting the Like (thumbs up) or Dislike (thumbs down) button for each response. They can enter detailed feedback in the text box and then select Submit.

Their feedback is sent to Microsoft to help us improve the Copilot control.

Disallow feedback from app users

If you don't want your app users to provide feedback to Microsoft, turn off the feedback option.

  1. Sign in to Power Apps and select Tables from the left navigation pane.

  2. Select the Organization table from the list.

  3. In the Organization columns and data section, select the column headers list. The Show existing column popup appears.

  4. Search for Allow users to provide feedback for App Copilot and make sure the check box in unchecked.

  5. Select Save.

Screenshot that shows how to get to the Show existing column popup.