# How to reset the rasa slot value to null or none after every refresh of the website? I know we can use /restart but it is not convenient for user to type this. So is there any technique or method for this?

**URL:** <https://forum.rasa.com/t/how-to-reset-the-rasa-slot-value-to-null-or-none-after-every-refresh-of-the-website-i-know-we-can-use-restart-but-it-is-not-convenient-for-user-to-type-this-so-is-there-any-technique-or-method-for-this/51481>\
**Category:** Rasa Open Source\
**Tags:** testing\
**Created:** [February 21, 2022, 1:11pm UTC](https://forum.rasa.com/t/how-to-reset-the-rasa-slot-value-to-null-or-none-after-every-refresh-of-the-website-i-know-we-can-use-restart-but-it-is-not-convenient-for-user-to-type-this-so-is-there-any-technique-or-method-for-this/51481 "2022-02-21T13:11:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaurav21s](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/gaurav21s/32/18080_2.png) [@gaurav21s](https://forum.rasa.com/u/gaurav21s)\
**Post date:** [February 21, 2022, 1:11pm UTC](https://forum.rasa.com/t/how-to-reset-the-rasa-slot-value-to-null-or-none-after-every-refresh-of-the-website-i-know-we-can-use-restart-but-it-is-not-convenient-for-user-to-type-this-so-is-there-any-technique-or-method-for-this/51481/1 "2022-02-21T13:11:49Z")

</div>

I had built a website with the help of HTML, CSS, JS integrated with the Rasa bot. but in my testing, I have noticed that when I am refreshing the page the rasa form and rasa slot are not resetting the value to null or none. I have to manually type /restart for that. So help me solve this problem.

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [February 21, 2022, 7:21pm UTC](https://forum.rasa.com/t/how-to-reset-the-rasa-slot-value-to-null-or-none-after-every-refresh-of-the-website-i-know-we-can-use-restart-but-it-is-not-convenient-for-user-to-type-this-so-is-there-any-technique-or-method-for-this/51481/2 "2022-02-21T19:21:54Z")

</div>

You need to change `sender` between sessions

---

<div class="post-metadata">

**Author:** ![gaurav21s](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/gaurav21s/32/18080_2.png) [@gaurav21s](https://forum.rasa.com/u/gaurav21s)\
**Post date:** [February 21, 2022, 8:58pm UTC](https://forum.rasa.com/t/how-to-reset-the-rasa-slot-value-to-null-or-none-after-every-refresh-of-the-website-i-know-we-can-use-restart-but-it-is-not-convenient-for-user-to-type-this-so-is-there-any-technique-or-method-for-this/51481/3 "2022-02-21T20:58:54Z")

</div>

What do you mean by that? Can you show a example?

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [February 21, 2022, 9:10pm UTC](https://forum.rasa.com/t/how-to-reset-the-rasa-slot-value-to-null-or-none-after-every-refresh-of-the-website-i-know-we-can-use-restart-but-it-is-not-convenient-for-user-to-type-this-so-is-there-any-technique-or-method-for-this/51481/4 "2022-02-21T21:10:49Z")

</div>

How are you sending your messages to Rasa?

---

<div class="post-metadata">

**Author:** ![gaurav21s](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/gaurav21s/32/18080_2.png) [@gaurav21s](https://forum.rasa.com/u/gaurav21s)\
**Post date:** [February 22, 2022, 8:23am UTC](https://forum.rasa.com/t/how-to-reset-the-rasa-slot-value-to-null-or-none-after-every-refresh-of-the-website-i-know-we-can-use-restart-but-it-is-not-convenient-for-user-to-type-this-so-is-there-any-technique-or-method-for-this/51481/5 "2022-02-22T08:23:11Z")

</div>

Here is the JS code that I have written.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/e/c/ecd76939173daef2fa61914f868c2cf4b57aa77b.png) ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/d/3/d3006045264e318e459788d0f4a0c6bd71e266ed.png)Can you tell me where should I change to achieve the goal?

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [February 22, 2022, 4:42pm UTC](https://forum.rasa.com/t/how-to-reset-the-rasa-slot-value-to-null-or-none-after-every-refresh-of-the-website-i-know-we-can-use-restart-but-it-is-not-convenient-for-user-to-type-this-so-is-there-any-technique-or-method-for-this/51481/6 "2022-02-22T16:42:18Z")

</div>

> [@gaurav21s](#):
>
> Here is the JS code that I have written.

This is [ChatbotWidget](https://github.com/JiteshGaikwad/Chatbot-Widget). Do you understand the code and how it talks with the bot?

The data you’re sending is `{message, sender}`. You are always sending from `"Me"`, and this is why your conversation doesn’t reset.
