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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 400

#2
chiaraalina Profile Picture

chiaraalina 134 Super User 2026 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 98 Moderator

Last 30 days Overall leaderboard