# How to save chats in sendbird chatbot after refreshing

**URL:** <https://community.sendbird.com/t/how-to-save-chats-in-sendbird-chatbot-after-refreshing/10156>\
**Category:** Sendbird AI Agent\
**Created:** [October 9, 2024, 3:07pm UTC](https://community.sendbird.com/t/how-to-save-chats-in-sendbird-chatbot-after-refreshing/10156 "2024-10-09T15:07:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marouane\_Haddad](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/marouane_haddad/32/5492_2.png) [@Marouane\_Haddad](https://community.sendbird.com/u/Marouane_Haddad)\
**Post date:** [October 9, 2024, 3:07pm UTC](https://community.sendbird.com/t/how-to-save-chats-in-sendbird-chatbot-after-refreshing/10156/1 "2024-10-09T15:07:01Z")

</div>

Hello,

I’m experiencing an issue with the Sendbird chatbot. When I refresh the chat widget, the chatbot loses all the information I previously provided.

Is there a solution for this problem?

Thank you.

---

<div class="post-metadata">

**Author:** ![Won\_Suh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/won_suh/32/5094_2.png) [@Won\_Suh](https://community.sendbird.com/u/Won_Suh)\
**Post date:** [October 10, 2024, 12:53am UTC](https://community.sendbird.com/t/how-to-save-chats-in-sendbird-chatbot-after-refreshing/10156/2 "2024-10-10T00:53:33Z")

</div>

Hi there!  
Thanks for posting on Ai Chatbot Community! We are glad you asked!

The Chatbot widget refresh button is meant to remove all previous messages in the channel.

When you have enableResetHistoryOnConnect as True, the refresh button is specifcally designed to clear all chat history for cleaner User Experience.

> **[GitHub - sendbird/chat-ai-widget: Build AI Chatbot in minutes with Sendbird Chatbot...](https://github.com/sendbird/chat-ai-widget)**
>
> Build AI Chatbot in minutes with Sendbird Chatbot Widget.

Is there are reason why you want to have the refresh button and keep history? We suggest you hide this with CSS if you don’t want users accidentally clearing their history.

Thanks!

---

<div class="post-metadata">

**Author:** ![Marouane\_Haddad](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/marouane_haddad/32/5492_2.png) [@Marouane\_Haddad](https://community.sendbird.com/u/Marouane_Haddad)\
**Post date:** [October 10, 2024, 12:09pm UTC](https://community.sendbird.com/t/how-to-save-chats-in-sendbird-chatbot-after-refreshing/10156/3 "2024-10-10T12:09:23Z")

</div>

Thank you for your response.

I would like them to refresh the channel to create a clean slate while preserving the conversation history. It’s important that the AI agent retains memory of all past interactions.

Because it’s a chatbot meant to students and teachers, and you know in this case the student will ask many topics today, and tomorrow he will want to have a new channel, and he won’t let the chatbot ask for many questions to know who is that user ? because he already did.

Simply hiding the button with CSS won’t enable users to refresh the conversation.

Thank you once again.  
Best,

---

<div class="post-metadata">

**Author:** ![Won\_Suh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/won_suh/32/5094_2.png) [@Won\_Suh](https://community.sendbird.com/u/Won_Suh)\
**Post date:** [October 23, 2024, 5:13am UTC](https://community.sendbird.com/t/how-to-save-chats-in-sendbird-chatbot-after-refreshing/10156/4 "2024-10-23T05:13:13Z")

</div>

Hi Marouane,

Then you will need to create your custom widget with a UIKIT or SDK for students to create a new “chat” with the chabot while retaining the previous chat history.

Thanks

---

<div class="post-metadata">

**Author:** ![Marouane\_Haddad](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/marouane_haddad/32/5492_2.png) [@Marouane\_Haddad](https://community.sendbird.com/u/Marouane_Haddad)\
**Post date:** [October 24, 2024, 3:21pm UTC](https://community.sendbird.com/t/how-to-save-chats-in-sendbird-chatbot-after-refreshing/10156/5 "2024-10-24T15:21:15Z")

</div>

alright, thank you so much, i guess that would be helpful and working for my case.

---

<div class="post-metadata">

**Author:** ![Won\_Suh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/won_suh/32/5094_2.png) [@Won\_Suh](https://community.sendbird.com/u/Won_Suh)\
**Post date:** [October 24, 2024, 10:59pm UTC](https://community.sendbird.com/t/how-to-save-chats-in-sendbird-chatbot-after-refreshing/10156/6 "2024-10-24T22:59:59Z")

</div>

We look forward to what you are building for your clients.

Best
