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 / Save chat history with...
Copilot Studio
Unanswered

Save chat history within a topic and send to Action (flow)

(0) ShareShare
ReportReport
Posted on by 2

Hi all,

I want to create a "chat with my database" type of chatbot.
For this I have deployed a azure function which consist of gpt and the database access.

In Copilot Studio I created copilot with a topic that gets triggered by a message.

I then call the azure function with "LastMessage.Text" as input and get the answer as the output.

So the user can improve on the answer the azure function should get the last three messages from User and gpt.

How can I accomplish this?

My first Idea would be to save the chat history as a variable but I am not sure how to do that.

Is this the right approach or can the chat history be accessed in another way?

How would I do that?

 

Thanks in advanced for any help!

I have the same question (0)
  • adilei Profile Picture
    Microsoft Employee on at

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!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 445

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 123 Super User 2026 Season 1

#3
chiaraalina Profile Picture

chiaraalina 59 Super User 2026 Season 1

Last 30 days Overall leaderboard