Exercise - Add Copilot to a model-driven app

Completed

In this exercise, you enable Copilot for model-driven apps, configure your environment to receive monthly updates, set up a Dataverse table and its columns, and test Copilot functionality in a model-driven app.

Prerequisite: A non-production environment with a Dataverse database, sample apps, and sample data must be available.

Task - Set up your environment

In this task, you enable Copilot for model-driven apps and change the model-driven app release channel.

  1. Go to Power Platform admin center, select Manage, and then select Environments. (It might already be selected.) Choose the environment you're using for this exercise, and then select Settings.

    Screenshot of the Settings option highlighted.

  2. Expand the Product section and select Features.

  3. Set Enable new AI-powered Copilot features for people who make apps to On.

  4. In the dropdown under Allow users to analyze data using an AI-powered chat experience in canvas and model-driven apps, select On.

  5. Scroll down and select Save.

  6. Return to settings by selecting Settings in the breadcrumb navigation at the top of the screen.

  7. Expand Product, and then select Behavior.

  8. In the Model-driven app release channel dropdown, select Monthly channel.

  9. If the Delay between character inputs field is empty, enter 250.

  10. Scroll down and select Save.

Task - Configure table and columns

In this task, you configure a Dataverse table and its columns for Copilot.

  1. Go to Power Apps and ensure you're in the correct environment.

  2. Select Tables from the left navigation.

  3. Select the All tab.

  4. Locate the Account table, select it, and then choose Properties.

    Screenshot of the Properties button for the table.

  5. Expand Advanced options.

  6. Select the checkboxes for Track changes and Appear in search results.

    Screenshot showing Track changes and Appear in search results selected.

  7. Select Save and wait for the changes to complete.

  8. Open the Account table.

  9. Select Views.

    Screenshot of the Views button.

  10. Locate and open the Quick Find Active Accounts view.

    Screenshot of the Quick Find Active Challenges view.

  11. Select View column > Last date included in campaign.

    The column should now be visible in the view.

  12. Select Save and publish. Wait for the publish process to complete.

  13. Select the Back button.

  14. From the left navigation, select Solutions.

  15. Choose Publish all customizations, and wait for the process to complete.

  16. Remain on this page.

Task - Test Copilot

In this task, you test Copilot for model-driven apps.

  1. Create a new solution. Navigate to Solutions, then select + New solution.

  2. Enter a Display name, select a Publisher, and choose Create.

  3. In your solution, select Add existing > Table. Select the Account table and then select Next. Choose Include all objects, and then select Add.

  4. In the same solution, select + New > App > Model-driven app.

  5. Name the app AccountsTest, then select Create.

  6. In the app designer, select Tables. Search for the Account table, select the ellipsis next to it, and choose + Add to app.

    Screenshot of the Account table add to app option.

  7. Select Save and publish.

  8. In your solution, go to Apps, select the model-driven app called AccountsTest, and then select Publish.

  9. After publishing completes, with the app still selected, select Play.

  10. Wait for the app to load.

  11. To access the Copilot prompt, select the Copilot icon at the far right of the screen.

    Screenshot of the Copilot logo to select.

  12. In the Copilot pane that appears, ask questions about the data in your table.

    Screenshot of the Copilot prompt and the challenges that match the request.

  13. Try additional queries to explore the agent's responses.