Use Generative AI in Microsoft Copilot Studio

Scenario

In this lab, you will:

  • Create copilot actions

What you will learn

  • How to use the Generative answers feature to improve your copilot’s responses.

High-level lab steps

  • Enable Generative AI
  • Add knowledge

Prerequisites

  • Must have completed Lab: Create copilot actions

Detailed steps

Exercise 1 - Configure Generative AI

Task 1.1 - Enable Generative AI

  1. If it’s not still open, go to the Microsoft Copilot Studio portal https://copilotstudio.microsoft.com and ensure you are in the appropriate environment.

  2. Select Copilots from the left navigation.

  3. Select the Real Estate Booking Service you created in the earlier lab.

  4. Select the Settings button in the upper-right of the screen.

  5. Select the Generative AI tab.

  6. Select Generative under How should your copilot interact with people?.

  7. Select Medium - More Balanced for How strict should the content moderation be?.

  8. Select Save.

    Generative AI pane in CoPilot Studio Settings

  9. Close the Settings menu by selecting the X icon in the upper-right of Copilot Studio.

Task 1.2 - Use generative answers in the Conversational boosting topic

  1. Select the Topics tab and select the System filter.

  2. Select the Conversational boosting topic.

    Screenshot of the Conversational boosting topic nodes.

  3. Review the Create generative answers node.

Task 1.3 - Enable knowledge

  1. Select the Overview tab.

  2. Verify that general knowledge is Enabled.

    Screenshot of the general knowledge enabled.

  3. You should see the public website added as knowledge in a prior Lab.

Task 1.4 - Configure Authentication

  1. Select Settings in the upper-right of the screen.

  2. Select the Security tab.

  3. Select the Authentication tile.

  4. Select Authenticate with Microsoft.

  5. Select Save.

  6. Select Save.

  7. Close the Settings menu by selecting the X in the upper-right of Copilot Studio.

  8. Select Publish and select Publish again.

Exercise 2 - Add knowledge

Task 2.1 - Add knowledge from Dataverse

  1. Select the Knowledge tab.

  2. Select + Add knowledge.

  3. Select Dataverse.

  4. Select the Real Estate Property table.

    Screenshot of adding website knowledge.

  5. Select Next.

  6. Select Next.

  7. Select Add.

Task 2.2 - Add knowledge from files

  1. Download this Microsoft case study or SummitRealtyCaseStudy.docx from GitHub.

  2. Select + Add knowledge.

  3. Select Files.

  4. Under Upload files, browse and select the case study that you downloaded.

    Screenshot of adding file knowledge.

  5. Select Add.

    Screenshot of knowledge.

Exercise 3 - Configure Fallback topic

Task 3.1 - Use generative answers in System fallback topic

  1. Select the Topics tab and select the System filter.

  2. Select the Fallback topic.

    Screenshot of the system fallback topic nodes.

  3. Select the three dots in the Message node and select Delete.

  4. Select the the + icon under the Condition node, select Advanced, and select Generative answers.

  5. Select Activity.Text for the Input field.

  6. Select Edit under Data sources.

    Screenshot of the create generative answers node.

  7. Select Search only selected sources.

  8. Select the Real Estate Property Dataverse table.

  9. Deselect Allow the AI to use its own general knowledge.

  10. Select the Customize checkbox under How strict should content moderation be?, then select Medium.

    Screenshot of the generative answers configuration.

  11. Select Save.

Exercise 4 - Test Generative AI

Task 4.1 Test the copilot’s knowledge

  1. If it’s not open, select the Test button in the upper-right of the screen to open the testing panel.

  2. Select the Conversation map icon at the top of the testing panel in the upper-right of the screen.

    Screenshot of the Testing panel conversation map.

  3. Select On..

  4. Select the Start a new conversation icon at the top of the testing panel.

  5. Explore the copilot and see how it uses the knowledge sources.