Skip to main content

Notifications

Copilot Studio - Bot Extensibility
Answered

How do I get the conversation history of the chatbot?

(0) ShareShare
ReportReport
Posted on by 6

I realize that the copilot chatbot has a default system variable for retrieving the last message sent through System.Activity.LastMessage, but I am looking for all previous messages from both the user and bot. On Topic Escalation, I would like to send the chatbot's entire conversation history with the user to Zendesk API to create a support ticket. How would I accomplish this?Screenshot 2024-02-20 123025.png

Categories:
  • FrankBiondo Profile Picture
    FrankBiondo 2 on at
    How do I get the conversation history of the chatbot?
    Two dead links in the accepted answer. Does anyone have an updated set of links? I'm facing this challenge. Need to capture the bot response within the session into a global variable along with the System.LastMessage.Text... how is there not a System.BotLastMessage.Text.
  • AlderM Profile Picture
    AlderM 6 on at
    Re: How do I get the conversation history of the chatbot?

    im using the second option. i see in the last step he mentions using a PowerFX function to isolate the messages. What would this function look like? First time hearing of this language and havent had much luck getting it to work. I wan to create a string similar to how is adaptive card looks. but i want it to be a string that id be sending as a body in my zendesk api call

  • Verified answer
    adilei Profile Picture
    adilei on at
    Re: How do I get the conversation history of the chatbot?

    There are two documented patterns that would allow you to do that:

     

    Manage a global variable: Solved: Re: Integrate a PVA chatbot with Azure OpenAI Chat... - Power Platform Community (microsoft....

     

    Access the transcript using Directline: Solved: I want to retrieve user bot conversations using di... - Power Platform Community (microsoft....

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard

Featured topics