How to make Rasa Chatbot refreshed every time after web page refresh

How to refresh rasa after webpage load so that the previous information should be cleared and a fresh chat should start.

Hey @skjainmiah

I’m not sure what the “previous information should be cleared” mean, but maybe a simple “/restart” is what you need?

After user chats and close his chat window and again if he opens his chat window the old messages are still there in the chat. How to clear those messages by default.

Hey @skjainmiah

I think it makes sense to start a new conversation in that case.

we just refreshed the web page but the previous chat was still there in the chat window. We closed the current session and again we started but the previous conversation was still available. Any custom function needed to erase previous chat.

hey @skjainmiah

Still, you have to start a new conversation. You see previous history because it’s the same one.

How did you deploy the bot?

I’m currently running in my local server which is connect to LAN. Rest of the students in my network is accessing the chatbot by sending request but even after they close the connect and reconnects to my IP they still can see previous chat history.

hey @skjainmiah

What is the Input channel that you’re using to send messages to your bot? You could also paste contents of your credentials.yml here.

I’m using only socket.io

This file contains the credentials for the voice & chat platforms

which your bot is using.

Messaging and Voice Channels

#rest:

# you don’t need to provide anything here - this channel doesn’t

# require any credentials

#facebook:

verify: “”

secret: “”

page-access-token: “”

#slack:

slack_token: “”

slack_channel: “”

socketio: user_message_evt: user_uttered bot_message_evt: bot_uttered session_persistence: false

#mattermost:

url: “https:///api/v4”

token: “”

webhook_url: “”

rasa: url: “http://localhost:5005/api

hi @skjainmiah, do you found any solution for this(to clear webchat history)? i am also same doubt.

@skjainmiah did you get any solution because i also want to do the same

How about adding /restart or session restart in the beginning of stories? This will restart the chatbot explicitly. Otherwise, can you handle it by the way you have deployed?

you can do that using localStorage.clear();

Have you got the solution for the same. I am also having the same requirement. I have to clear all previous conversation once bot get refreshed.

Please let me know if any solution you have.

Thanks in advance.