Is there a way to clear chat from chat window?


(Babitha Guntur) #1

Is there a way to clear chat from chat window?


(sadhvi chandra) #2

We infer from your question that you would like to delete the chat history from loading in the chat window.

Once you have the WebSDK configured, you can find the index.html file in the path: SDKApp >> SDK >> UI >> index.html.

In that file, set the value of the “loadHistory” key to false.
This will not load the chat history in the chat window.

If the question is to delete the chat history in the platform, then there is no provision to delete the chat history in the platform. You can only achieve it with the help of webSDK. https://developer.kore.ai/docs/bots/advanced-topics/kore-web-sdk/kore-ai-web-sdk-tutorial/


(Karthik Tadikonda) #3

Hi @baguntur,

You can set ‘loadHistory’ flag to false in kore-config.js file in websdk


(Babitha Guntur) #4

That helps Chandra. Also is there a way can we do this when testing the Bot in the Dialog Task?