# Saving a conversation of chatbot in mysql but i want to merge the person's convo to the same convo if he start again

**URL:** https://forum.rasa.com/t/saving-a-conversation-of-chatbot-in-mysql-but-i-want-to-merge-the-persons-convo-to-the-same-convo-if-he-start-again/53772
**Category:** Rasa Open Source
**Created:** [June 15, 2022, 8:25am UTC](https://forum.rasa.com/t/saving-a-conversation-of-chatbot-in-mysql-but-i-want-to-merge-the-persons-convo-to-the-same-convo-if-he-start-again/53772 "2022-06-15T08:25:13Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![anshal](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@anshal](https://forum.rasa.com/u/anshal)
#### Post date: [June 15, 2022, 8:25am UTC](https://forum.rasa.com/t/saving-a-conversation-of-chatbot-in-mysql-but-i-want-to-merge-the-persons-convo-to-the-same-convo-if-he-start-again/53772/1 "2022-06-15T08:25:13Z")

</div>

i want to save the converstaion in a database for that i used tracker store at endpoint.yml file but it is saving conversation every single message i want to save them as a particular user if the user visit again and again have the conversation .

---

<div class="post-metadata">

### Author: ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)
#### Post date: [June 17, 2022, 3:59am UTC](https://forum.rasa.com/t/saving-a-conversation-of-chatbot-in-mysql-but-i-want-to-merge-the-persons-convo-to-the-same-convo-if-he-start-again/53772/2 "2022-06-17T03:59:53Z")

</div>

The conversations are stored in the tracker by sender\_id. You’re front end can control the sender id so that if the user re-connects, the prior slots set by the user can be restored.

---

<div class="post-metadata">

### Author: ![anshal](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@anshal](https://forum.rasa.com/u/anshal)
#### Post date: [June 17, 2022, 7:53am UTC](https://forum.rasa.com/t/saving-a-conversation-of-chatbot-in-mysql-but-i-want-to-merge-the-persons-convo-to-the-same-convo-if-he-start-again/53772/3 "2022-06-17T07:53:58Z")

</div>

Thanks @stephens can you tell me how the sender id is being restored

---

<div class="post-metadata">

### Author: ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)
#### Post date: [June 21, 2022, 3:40pm UTC](https://forum.rasa.com/t/saving-a-conversation-of-chatbot-in-mysql-but-i-want-to-merge-the-persons-convo-to-the-same-convo-if-he-start-again/53772/4 "2022-06-21T15:40:34Z")

</div>

What channel are you using?

---

<div class="post-metadata">

### Author: ![anshal](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@anshal](https://forum.rasa.com/u/anshal)
#### Post date: [June 22, 2022, 5:48am UTC](https://forum.rasa.com/t/saving-a-conversation-of-chatbot-in-mysql-but-i-want-to-merge-the-persons-convo-to-the-same-convo-if-he-start-again/53772/5 "2022-06-22T05:48:40Z")

</div>

i am using bot front widget as a front end for my bot @stephens

---

<div class="post-metadata">

### Author: ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)
#### Post date: [June 22, 2022, 8:55pm UTC](https://forum.rasa.com/t/saving-a-conversation-of-chatbot-in-mysql-but-i-want-to-merge-the-persons-convo-to-the-same-convo-if-he-start-again/53772/6 "2022-06-22T20:55:10Z")

</div>

Then you are using the socket channel so you should review the docs [here](https://rasa.com/docs/rasa/connectors/your-own-website/#websocket-channel). Note the comment about setting `session_persistence`. It sounds like this setting could address your issue but you may also want to review the botfront widget [readme](https://github.com/botfront/rasa-webchat) and it’s comment about `storage`, persistence and storage options.
