Dezső Kántor Greetings & Welcome to Microsoft Q&A forum!
I deployed a basic chatbot using Azure AI Studio. I clicked the option to save chat history, but every time I refresh the browser, the bot's answers disappear, and only the questions remain. What could cause this behavior? It's just a test bot, and I'm using the App Service free tier
I understand that you are testing the functionality and with every refresh history is removed.
Since you are using free trial, there could be a possibility that this is not working. The free tier has certain limitations, including a limit on the amount of storage available for your app.
Can you try deploying your webapp to basic or standard tier and see if that solves the issue?
Are you able to see the chat history button?
Also, add UI_SHOW_CHAT_HISTORY_BUTTON in the environmental variables to True in your app settings.
Note that, chat history of your bot is stored in Azure Cosmos DB. When you deploy the web app, a Cosmos DB resource gets created which helps keep track of the conversation history. . Please ensure that the deployed web application has the correct Azure Cosmos DB account information under "App Settings". All connection information for Azure Cosmos DB and Azure Open AI is injected as environment variables in the Azure App Service instance at deployment time. See below for more details.
Please see the similar issue which has been addressed earlier.
Also, see Deploy an Enterprise Chat web app for more information.
Do let me know if that helps or have any other queries.
If the response helped, please do click Accept Answer
and Yes
for was this answer helpful.
Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.