web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 205 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard