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
-
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. -
Select Copilots from the left navigation.
-
Select the Real Estate Booking Service you created in the earlier lab.
-
Select the Settings button in the upper-right of the screen.
-
Select the Generative AI tab.
-
Select Generative under How should your copilot interact with people?.
-
Select Medium - More Balanced for How strict should the content moderation be?.
-
Select Save.
-
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
-
Select the Topics tab and select the System filter.
-
Select the Conversational boosting topic.
-
Review the Create generative answers node.
Task 1.3 - Enable knowledge
-
Select the Overview tab.
-
Verify that general knowledge is Enabled.
-
You should see the public website added as knowledge in a prior Lab.
Task 1.4 - Configure Authentication
-
Select Settings in the upper-right of the screen.
-
Select the Security tab.
-
Select the Authentication tile.
-
Select Authenticate with Microsoft.
-
Select Save.
-
Select Save.
-
Close the Settings menu by selecting the X in the upper-right of Copilot Studio.
-
Select Publish and select Publish again.
Exercise 2 - Add knowledge
Task 2.1 - Add knowledge from Dataverse
-
Select the Knowledge tab.
-
Select + Add knowledge.
-
Select Dataverse.
-
Select the Real Estate Property table.
-
Select Next.
-
Select Next.
-
Select Add.
Task 2.2 - Add knowledge from files
-
Download this Microsoft case study or SummitRealtyCaseStudy.docx from GitHub.
-
Select + Add knowledge.
-
Select Files.
-
Under Upload files, browse and select the case study that you downloaded.
-
Select Add.
Exercise 3 - Configure Fallback topic
Task 3.1 - Use generative answers in System fallback topic
-
Select the Topics tab and select the System filter.
-
Select the Fallback topic.
-
Select the three dots in the Message node and select Delete.
-
Select the the + icon under the Condition node, select Advanced, and select Generative answers.
-
Select Activity.Text for the Input field.
-
Select Edit under Data sources.
-
Select Search only selected sources.
-
Select the Real Estate Property Dataverse table.
-
Deselect Allow the AI to use its own general knowledge.
-
Select the Customize checkbox under How strict should content moderation be?, then select Medium.
-
Select Save.
Exercise 4 - Test Generative AI
Task 4.1 Test the copilot’s knowledge
-
If it’s not open, select the Test button in the upper-right of the screen to open the testing panel.
-
Select the Conversation map icon at the top of the testing panel in the upper-right of the screen.
-
Select On..
-
Select the Start a new conversation icon at the top of the testing panel.
-
Explore the copilot and see how it uses the knowledge sources.