Manage topics

Scenario

In this lab, you will:

  • Manage existing topics
  • Create and edit topics by using natural language
  • Create a topic manually by using trigger phrases

What you will learn

  • How to configure copilot topics

High-level lab steps

  • Delete the sample topics
  • Disable topics
  • Create new and edit topics with natural language
  • Create a new topic and add trigger phrases

Prerequisites

  • Must have completed Lab 1: Build an initial copilot

Detailed steps

Exercise 1 - Remove topics

In this exercise, you will remove topics in a copilot.

Task 1.1 – Delete sample topics

  1. Navigate to the Microsoft Copilot Studio portal https://copilotstudio.microsoft.com and ensure you are in the appropriate environment.

  2. Select the Test button in the upper-right of the screen to close the testing panel if the panel is open.

  3. Select Copilots from the left navigation pane.

    Copilots in CoPilot Studio portal.

  4. Select the copilot you created in the previous lab.

  5. Select the Topics tab.

    Topics tab in CoPilot Studio portal.

  6. Select the three dots next to the Lesson 1 topic and select Delete.

    Delete topic in CoPilot Studio portal.

  7. Select Delete.

  8. Repeat the delete for Lesson 2 and Lesson 3.

Task 1.2 – Disable topics

  1. Select the Topics tab.

  2. Toggle Enabled to Off for the Start Over topic.

    Topics removed and disabled in CoPilot Studio portal.

Exercise 2 - Create topics with natural language

In this exercise, you will create topics in a copilot and add trigger phrases.

Task 2.1 – Add a topic using copilot

  1. Navigate 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 pane.

  3. Select the copilot you created in the previous lab.

  4. Select the Topics tab.

  5. Select Add a topic and select Create from decription with Copilot.

    Create topic with copilot.

  6. A new window appears asking you to Name your topic and provide a description in the Create a topic to… text field.

    Create topic with copilot.

  7. In the Name your topic text box, enter Customer Details.

  8. In the Create a topic to… text box, enter Ask the customer for their name and email address.

  9. Select Create.

  10. Select Save.

Task 2.2 – Update nodes with natural language

  1. If the Edit with copilot pane is not shown on the right-hand side of the screen, select the Copilot icon in the upper part of the authoring canvas.

    Screenshot of the Edit with Copilot icon.

  2. Select the second question node, What is your email address?

  3. In the Edit with Copilot panel, in the What do you want to do? field, enter the following text:

    Update the message in this question node to say thank you to the Name variable from the previous node and then proceed to ask the email address question.

  4. Select Update.

    Screenshot of the Edit with Copilot panel with prompt.

    [!NOTE] The message should be updated to include the Name variable from the message node before it.

    Screenshot of the message updated to include the Name variable.

  5. Select Save.

Task 2.3 – Add nodes with natural language

In addition to adding updating existing nodes, you can use Copilot to add new ones.

  1. Make sure that no node is selected by clicking in the empty space around the nodes.

  2. In the Edit with Copilot panel, in the What do you want to do? field, enter the following text:

    Summarize the information collected in an adaptive card

  3. Select Update.

  4. A message node with an Adaptive Card is added to the end of the topic.

    Screenshot of the message node with an Adaptive Card.

  5. Select the Media box in the Adaptive Card. The Adaptive Card properties should appear on the right of the screen.

    Screenshot of the Adaptive Card properties.

    Your Adaptive Card formula should look similar to the one above. If it doesn’t, then you can copy and paste in the formula below:

     {
     type: "AdaptiveCard", 
         body: 
         [
             {
                 type: "TextBlock",
                 size: "Medium",
                 weight: "Bolder",
                 text: "Summary"    
             },
             {
                 type: "FactSet",
                 facts: 
                 [
                     {
                         title: "Full Name",
                         value: Text(Topic.Name)
                     },
                     {
                         title: "Email Address",
                         value: Text(Topic.EmailAddress)
                     }
                 ]
             },
             {
                 type: "TextBlock",
                 text: "Thank you for providing the information."
             }
         ]
     }
    
  6. Opening the Adaptive Card properties closes the Edit with Copilot panel; therefore, you need to select the Copilot icon to reopen it.

  7. Make sure that no node is selected by clicking in the empty space around the nodes.

  8. In the What do you want to do? field, enter the following text:

    Add a new multiple choice question to prompt the user if the details are correct with two options Yes or No

  9. Select Update.

  10. A new question node is added to the end of the topic with options for the user to select.

    Screenshot of the new question node with yes and no options.

  11. Select Save.

Task 2.4 - Test the topic

  1. Select the Test button in the upper-right of the screen to close the testing panel if the panel is open.

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

  3. In the Aska question or describe what you need text box, enter Customer information.

  4. Enter your name and email address.

  5. Select Yes.

Exercise 3 - Author topics manually

Topics can be created manually by adding trigger phrases.

Task 3.1 - Create a topic from blank

  1. Select the Topics tab.

  2. Select Add a topic and select Create from blank.

  3. Select the Details icon to open the Topic details dialog.

    Screenshot of the topic details dialog

  4. In the Name field, enter the following text:

    Book a Real Estate Showing

  5. In the Display Name field, enter the following text:

    Book

  6. In the Description field, enter the following text:

    Select the property and requested date and create a booking request

  7. Select Save.

  8. Select the Details icon to close the Topic details dialog.

Task 3.2 - Add trigger phrases

  1. Select Edit under Phrases in the Trigger.

    Screenshot of the topic trigger phrases pane.

  2. Enter I want to book a real estate showing under Add Phrases and select the + icon.

  3. Enter Schedule a real estate showing under Add Phrases and select the + icon.

  4. Enter Arrange the viewing for a real estate property under Add Phrases and select the + icon.

  5. Enter Set up an appointment to view a house under Add Phrases and select the + icon.

  6. Enter Plan a property viewing under Add Phrases and select the + icon.

  7. Select Save.