Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

Access the Chat History inside Copilot Studio

Like (1) ShareShare
ReportReport
Posted on 4 Oct 2024 13:12:54 by 2
Hello Team,

I am currently working on a Copilot Studio project for an enterprise chatbot and have encountered an issue regarding the ChatHistory functionality. We are unable to retrieve the ChatHistory within Copilot and need to send this information to PromptFlow so that OpenAI can interpret the user's context appropriately.

We are using a topic trigger for MessageReceived from the user, allowing us to store the user's message in a global variable. However, we are struggling to find a method to capture and store the chatbot's responses.

Could you advise on how we might resolve this and properly manage the ChatHistory in Copilot Studio?
Categories:
  • Suggested answer
    Vinoth Selvam Profile Picture
    1,527 Super User 2025 Season 1 on 06 Oct 2024 at 16:33:15
    Access the Chat History inside Copilot Studio
     
    Like user responses, i believe you can also capture the bot response in a variable. You can see the option available under datasources.
     
     
    But Yes, we need to have the logic complex so as it should capture every Bot response and store it in a Array variable. Which means you have to add the Global array logic in each and every topic.
     
     
     
    Thanks.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
Ekta Gupta Profile Picture

Ekta Gupta 4

#2
ricardodesouza Profile Picture

ricardodesouza 2

#2
L-1234567-0 Profile Picture

L-1234567-0 2

Overall leaderboard
Loading started