web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Pass additional data f...
Copilot Studio
Unanswered

Pass additional data for tracking

(0) ShareShare
ReportReport
Posted on by 44

I embedded the Copilot chatbot in my multi-tenant web application using an IFRAME. I am currently monitoring the chatbot's usage in AppInsights, specifically the message, result, and summary. However, I want to gather more information about the tenant. At the moment, I am not authenticating users. How can I pass additional information about the tenant when I load the chatbot so that it can be logged and queried in AppInsights along with other usage data? Is this even possible?

Categories:
I have the same question (0)
  • Umianta Profile Picture
    290 on at

    Hi @MSPPQ 

     

    You can transmit additional data as query parameters in the Chatbot endpoint and access them using Global variables with an external source type in Copilot Studio topics.

    For more detailed information, please refer to the following post:

    Pass Parameters to Copilot Studio Bot from Calling Site

     

    If my response has addressed your query, kindly mark your post as Solved.

    If you found my response helpful or it provided you with a direction to proceed, please give it a Thumbs Up. Your Kudos are appreciated. You can accept multiple posts as solutions.

    If you're still encountering any issues or challenges, please don't hesitate to inform me so I can assist you further. I'm here to help.

    Cheers ,

    Umesh Khandelwal

  • MSPPQ Profile Picture
    44 on at

    How can I query the global variables in AppInsights along with the questions and answers.

    e.g.
    customEvents
    | where name == "GenerativeAnswers"
    | extend cd = todynamic(customDimensions)
    | extend conversationId = tostring(cd.conversationId)
    | extend topic = tostring(cd.TopicName)
    | extend message = tostring(cd.Message)
    | extend result = tostring(cd.Result)
    | extend SerializedData = tostring(cd.SerializedData)
    | extend Summary = tostring(cd.Summary)
    | extend feedback = tostring(todynamic(replace_string(SerializedData,"$","")).value)
    | project cloud_RoleInstance, name, timestamp, conversationId, topic, message, result, feedback, Summary
    | order by timestamp desc

  • Umianta Profile Picture
    290 on at

    Hi @MSPPQ 

    1. Variables seem to be not automatically logged in App Insights by default.

    2. To address this, you'll have to create a custom solution, as outlined below:

      a. Utilize the "Log custom telemetry event" node and allocate a global variable to it.

      Umianta_0-1713565087819.png
    3. Use the following query to retrieve User/Bot messages and custom telemetry information in App insights

    customEvents
    |extend Bot_User_Message = customDimensions['text'],
    Global_Variable_By_Custom_Telemetry= customDimensions['SerializedData']
    |where name in ('BotMessageSend','BotMessageReceived','UserAnswer_Global_Variable')

     

    Umianta_1-1713565195749.png

     

    If my response has addressed your query, kindly mark your post as Solved.

    If you found my response helpful or it provided you with a direction to proceed, please give it a Thumbs Up. Your Kudos are appreciated. You can accept multiple posts as solutions.

    If you're still encountering any issues or challenges, please don't hesitate to inform me so I can assist you further. I'm here to help.

    Cheers ,

    Umesh Khandelwal

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 250 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 197 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 103 Moderator

Last 30 days Overall leaderboard