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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Best practice for logg...
Copilot Studio
Answered

Best practice for logging of agents in Copilot Studio?

(0) ShareShare
ReportReport
Posted on by 85
What is the best practice for comprehensive logging of agents in Copilot Studio?
I would like to see EVERY question in the chat, every answer, and therefore every conversation. The analyses in the Analytics tabs are nice, but they are not 100% reliable and they certainly don't give me all the questions and answers.
Is the way to go then to create an ApplicationInsights workspace and then use a tool to extract the data from the ApplicationInsights logs and “somehow” write it to a DB and prepare it myself?
Or are there other ways and techniques?
I have the same question (0)
  • Suggested answer
    chiaraalina Profile Picture
    2,059 Super User 2026 Season 1 on at
     

    Copilot Studio has built-in transcript logging. Full conversation transcripts are stored in Dataverse (table: ConversationTranscript) with timestamps and the full chat history (stored as JSON). First, check whether transcript logging is enabled in your environment.

    You can query the Dataverse table to find conversation session records and retrieve the chat history.

    In my experience, Dataverse transcripts didn’t work perfectly. I had the impression that some logs were missing, and I’m not sure how well it scales for very long conversations.

    I read Microsoft’s recommended best practice for end-to-end bot conversation logging is to connect your Copilot Studio agent to Azure Application Insights. I set that up and it worked very well.

    1. Create an Application Insights resource in the Azure Portal.
    2. In Copilot Studio go to Agent → Settings → Advanced → Application Insights.
    3. Paste the Application Insights connection string and enable Log activities (captures incoming/outgoing messages and events). Enable Log sensitive activity properties if you also want the actual message content (user utterances and bot replies) captured. This may capture sensitive/personal data, so be careful with permissions and retention policies.
    4. Save and publish the agent. For me it did not work before publishing.
    From my experience, Application Insights logging looks complete. It’s not real-time though, it typically takes around 5 minutes before messages show up in Logs.
     
    I found the logs in customEvents.
     
     
     
    Hope it helps!
  • Romain The Low-Code Bearded Bear Profile Picture
    2,839 Super User 2026 Season 1 on at
    @chiaraalina impressive answer ! it need to be blog post ! great, i will bookmark it !
  • chiaraalina Profile Picture
    2,059 Super User 2026 Season 1 on at
    Thanks! Will do that when I have more experience with it! ;)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 665

#2
Vish WR Profile Picture

Vish WR 313

#3
Haque Profile Picture

Haque 227

Last 30 days Overall leaderboard