Notifications
Announcements
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?
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
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
Variables seem to be not automatically logged in App Insights by default.
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.
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')
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 250 Super User 2025 Season 2
Romain The Low-Code... 197 Super User 2025 Season 2
S-Venkadesh 103 Moderator