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 / How to capture Bot and...
Copilot Studio
Suggested Answer

How to capture Bot and User messages happening during chat conversation

(1) ShareShare
ReportReport
Posted on by 2
LastMessage.Text and Activity.Text return user messages but no system variable provide bot message. Provide a workaround or an approach to capture both bot and user messages happening during an agent conversation mid way instead of at the end of conversation
Categories:
I have the same question (0)
  • Suggested answer
    Valantis Profile Picture
    2,535 on at
     
    try this: 
     
    1. Create new topic
    2. Trigger: "AI generated response about to be sent" 
    3. Add "Set variable":
       Global.Transcript = Global.Transcript + "User: " + LastMessage.Text + " | Bot: " + System.Response.FormattedText + "\n"
     

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 594

#2
chiaraalina Profile Picture

chiaraalina 170 Super User 2026 Season 1

#3
deepakmehta13a Profile Picture

deepakmehta13a 118

Last 30 days Overall leaderboard