Task 08: Use the Go to another topic node
Introduction
Complex customer scenarios at Contoso often require conversations to transition seamlessly between multiple related topics.
Description
You’ll implement and test the Go to another topic node, enabling smooth transitions between separate but related conversational topics within your agent.
Success criteria
- You’ve successfully configured the Go to another topic node.
- You’ve validated smooth and correct transitions between topics.
Key tasks
In this task, you’ll learn how to use the Go to another topic node.
01: Create a new topic for order cancellations
Expand this section to view the solution
-
Select Topics on the top bar.
-
Select Add a topic in the upper-left part of the window, then select From blank.
-
Select Untitled in the upper-left part of the window, then change the topic name to
Order Cancellation
. -
Within the Trigger node, hover over the Phrases section, then select the Change trigger button that appears in the upper-right part of the node.
-
Select It’s redirected to from the flyout menu.
This topic doesn’t need trigger phrases.
-
Under the Trigger node, select the + button, then select Send a message.
-
Add a message that acknowledges the cancellation.
Your order has been canceled, thank you.
-
Select Save in the upper-right part of the canvas to save the topic.
02: Configure a node to go to another topic
Expand this section to view the solution
-
Select Topics on the top bar.
-
Select the Check Order Status topic.
-
Within the Condition branch for Cancel, below the Message node, select the + button, select Topic management, then select Go to another topic.
-
Select the Order Cancellation topic from the list.
-
Select Save in the upper-right part of the canvas to save the topic.
-
Select the refresh icon in the upper-right corner of the Test your agent pane to start a new conversation.
-
Test it out by entering the following prompt:
I'd like to cancel my order.
Congratulations, you’re now familiar with the available actions under the Topic management menu. It would be useful for you to review the other options under Topic management before you continue; however, it’s not essential for moving on to the next task.
03: Question node behavior
Expand this section to view the solution
Previously, this lab covered the basics of the Question node and built on this concept by using entities and slot filling. In addition to storing a user’s response, the Question node has more behavior options that you can set up.
One option is the ability to skip asking a question if the variable that it’s linked to already contains a value. You observed this process in action in a previous task where the question was skipped when the agent was asked to check an order. The question was skipped because, by using entities and slot filling, you allowed Microsoft Copilot Studio to retrieve data from the sentence that the user asked and then store the data within the variable. After the Question node was reached by Microsoft Copilot Studio, it already contained data, so the question didn’t need to be asked again. This approach is more efficient because, when the user or customer is talking to an agent, they won’t need to answer the same question multiple times.
-
Within the Check Order Status topic, select the Question node. Then, select the ellipsis within the upper-right corner of the Question node to extend the menu, as shown in the following screenshot, and then choose Properties from the menu.
-
Select Question behavior from the Question properties panel that appears.
The Question node has several configurable options so that you’re able to better identify what the user’s response is to the question that you’re asking. This component is important when you’re developing conversational applications, because regardless of the type of AI that’s behind the scenes managing the natural language responses, a user might provide unexpected or unidentifiable answers. The ability to handle the agent’s behavior in those circumstances helps you provide an improved customer experience. This scenario also happens in real life when you ask a question to another person and they don’t understand the question. For the best experience and conversation, it’s important to rephrase or act differently than to repeat the same question that wasn’t originally understood.
The following question behavior controls are available for you to choose from in the Question behavior property window:
- Skip behavior/Skip question- An agent author can skip the question if the variable already has a value. The variable in the question could have a value that was set somewhere else in the topic, in another topic, or through slot filling and by using entities. This behavior allows the agent author to skip the question, or if the variable has a value, to ask the question anyway. Other available options include using Power Fx to create a condition, and if that condition is true, to skip the question.
Now that you’re aware of the core functionality of the Question node and associated behavior, you can explore the rich text responses in the Message and Question nodes.