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?