# Rasa continue conversation after closing window

**URL:** <https://forum.rasa.com/t/rasa-continue-conversation-after-closing-window/40287>\
**Category:** Rasa Open Source\
**Created:** [February 17, 2021, 6:41am UTC](https://forum.rasa.com/t/rasa-continue-conversation-after-closing-window/40287 "2021-02-17T06:41:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brandan](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@brandan](https://forum.rasa.com/u/brandan)\
**Post date:** [February 17, 2021, 6:41am UTC](https://forum.rasa.com/t/rasa-continue-conversation-after-closing-window/40287/1 "2021-02-17T06:41:31Z")

</div>

Hi everyone,

I want the chatbot to continue the conversation after the same user has closed and reopened the chatbot window within the session expiration time. How do I retrieve the history of chat session to redisplay it and also set the conversation session to the point where the user has last left it at.

Thanks all for your help.

---

<div class="post-metadata">

**Author:** ![snek](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/snek/32/13510_2.png) [@snek](https://forum.rasa.com/u/snek)\
**Post date:** [February 17, 2021, 8:00am UTC](https://forum.rasa.com/t/rasa-continue-conversation-after-closing-window/40287/2 "2021-02-17T08:00:05Z")

</div>

I could be wrong since I’m not that advanced with Rasa, but as far as I understand, the conversation is not gone before timeout even if you close the window. You can reuse the same sender\_id and Rasa should pick up where it left (in the middle of a form, ect). You could add your own slot where you append the message history if you need to re-render it, but that sounds more like a frontend-related issue to approach.

---

<div class="post-metadata">

**Author:** ![brandan](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@brandan](https://forum.rasa.com/u/brandan)\
**Post date:** [February 17, 2021, 8:12am UTC](https://forum.rasa.com/t/rasa-continue-conversation-after-closing-window/40287/3 "2021-02-17T08:12:32Z")

</div>

hmm yeah, i think you’re right, its more of a front-end related issue. I was looking around and I found that I can retrieve the conversation logs with this api call. [http://localhost:5005/conversations/{conversation\_id}/tracker](http://localhost:5005/conversations/%7Bconversation_id%7D/tracker)

Thanks anyway!

---

<div class="post-metadata">

**Author:** ![snek](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/snek/32/13510_2.png) [@snek](https://forum.rasa.com/u/snek)\
**Post date:** [February 17, 2021, 8:20am UTC](https://forum.rasa.com/t/rasa-continue-conversation-after-closing-window/40287/4 "2021-02-17T08:20:49Z")

</div>

Ah, cool! I’m not sure the entire history is stored inside the tracker though. I think what you’re looking for might be [http://localhost:5005/conversations/{conversation\_id}/story](http://localhost:5005/conversations/%7Bconversation_id%7D/story). This keeps hold of user utterances and replays everything as a story. I guess one issue here is that Rasa’s exact utterances may vary because it is able to choose one random uttrance among many available options.

---

<div class="post-metadata">

**Author:** ![fkoerner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fkoerner/32/11784_2.png) [@fkoerner](https://forum.rasa.com/u/fkoerner)\
**Post date:** [February 17, 2021, 10:18am UTC](https://forum.rasa.com/t/rasa-continue-conversation-after-closing-window/40287/5 "2021-02-17T10:18:15Z")

</div>

Hi! You should be able to get all the texts (bot and user) from the events in the tracker. This will look something like this:

`tracker.events`

for which an event looks like:

```auto
{'event': 'bot', 'timestamp': 1613556910.4163609, 'text': 'Hello World!'....}

```

for a bot, or:

```auto
{'event': 'user', 'timestamp': 1613556910.41068, 'text': 'hungry', 'parse_data': ...}

```

for a user.

Feel free to ping me if you get stuck on this, but it sound like you have the right idea 🙂
