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 / Title: Bot Framework W...
Copilot Studio
Unanswered

Title: Bot Framework Web Chat: Copilot Agent Doesn't Recall History Displayed from External DB

(2) ShareShare
ReportReport
Posted on by
Hi,

We're using the Bot Framework Web Chat (webchat.js) component to connect users to our custom Copilot Agent (likely built on Copilot Studio or Bot Framework SDK) via Direct Line.

We have implemented a feature to persist chat history. When a user starts a chat session:


  1. We fetch the past conversation history for that user from our external database (stored as JSON).

  2. We successfully load and render this historical conversation data within the Web Chat UI using the webchat.js library. The user can scroll up and see their previous interactions.


  3.  

The Problem:

While the history is displayed correctly in the frontend UI, the Copilot Agent (bot backend) itself seems to have no awareness or memory of this loaded history.

If the user asks a question referring to the past conversation that is visible on the screen (e.g., "What did we discuss about project X earlier?" or "Summarize our previous conversation"), the bot cannot answer correctly. It only seems aware of the messages exchanged within the current live session.

Our Goal:

We want the Copilot Agent to be aware of the historical conversation context that we load and display in the Web Chat UI. The bot should be able to use this context to answer user questions about past interactions or potentially use it for better context in the ongoing conversation.

Question:

What are the recommended approaches or best practices within the Bot Framework ecosystem to bridge this gap between the history displayed in the Web Chat client and the conversational context/memory available to the bot backend?

How can we effectively "inject" or make the bot backend aware of the conversation history loaded from our external database?

We're looking for solutions that would work with either a Copilot Studio bot (potentially using Plugins/Actions) or a bot built with the Bot Framework SDK.

Thanks in advance for any insights or suggestions!

Categories:
I have the same question (0)

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 251 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard