Skip to main content

Notifications

Copilot Studio - Bot Analytics
Suggested answer

Topic Name not identified when topics are launched from a redirection

Posted on 25 Nov 2024 16:31:34 by 2
Hello everyone!
 
I am having issues with Copilot Studio Analytics:
  • If Topic 2 is triggered by a sentence written in Topic 1, both the Initial User Message and Topic Name in the Sessions log is properly identified;
  • However, if Topic 2 is reached through a redirection after a button was clicked in Topic 1, the Initial User Message in Sessions log is properly set to be the text of the button, but the Topic Name is empty.
Any idea on how to fill the Topic Name in this second case?
 
Thank you in advance!
Categories:
  • CU25111623-0 Profile Picture
    CU25111623-0 2 on 26 Nov 2024 at 11:31:41
    Topic Name not identified when topics are launched from a redirection
    Thanks for your answer @@SaiRT14 I guess the important action here is when you mention "update the session log". How can I do that? I tried to set System.Recognizer.TriggeringMessage.Id = System.LastMessage.Id and System.Recognizer.TriggeringMessage.Text = System.LastMessage.Text but Copilot Studio gives me an error.
    Is there any other way I can modify the session log to force Copilot Studio to treat this information as a triggered Text Event?
  • Suggested answer
    SaiRT14 Profile Picture
    SaiRT14 1,216 on 26 Nov 2024 at 02:03:55
    Topic Name not identified when topics are launched from a redirection
    when redirecting from Topic 1 to Topic 2 using a button, the analytics log recognizes the button text as the initial user message but does not associate the session context with Topic 2 unless it is explicitly configured to do so. Here's how you can resolve this: 
     
    Use the "Redirect to Topic" Action Properly Ensure that the button in Topic 1 uses the "Redirect to another topic" action. When configuring the button: Click on the button in Topic 1. Choose the "Redirect to Topic" action. Select Topic 2 explicitly from the dropdown.
     
    In Topic 1, add a custom variable action - SetVariable("redirectToTopic", "Topic 2")
    In Topic 2, check for this variable in the topic trigger conditions or use it to update the session log.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,246

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,884

Leaderboard

Featured topics