Skip to main content

Notifications

Community site session details

Community site session details

Session Id : kICplyj9kIDshRLaSr+6eJ
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,487 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,518 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,692 Most Valuable Professional

Leaderboard
Loading started