Conversations disappearance

My conversations are disappeared after refreshing the webpage. How can we resolve this issue.Please help me.

@Chaitanya Hi, could you post more details of your set-up. You mention using a webpage - but which client are you using and how are you connecting to the bot?

When using rasa web chat you’ll have to set storage: "local" in your “WebChat.default.init”

Hi @tograssm, I have set storage: "local". But it is not working. This is my Web Chat code :chat.html (776 Bytes)

Here I am using src=“https://storage.googleapis.com/mrbot-cdn/webchat-0.4.1.js” instead of 0.5.6.js . Because it 0.5.6.js is not working for me. Is it working for you

I’m using https://storage.googleapis.com/mrbot-cdn/webchat-latest.js (atm 0.5.6).

It’s working for me in firefox and chrome. What browser are you using and in which way does the 0.5.6 not work for you?

<html>
<head>
<script src="https://storage.googleapis.com/mrbot-cdn/webchat-latest.js"></script>
</head>
<body>
  <div id="webchat"/>
  <script>
WebChat.default.init({
  selector: "#webchat",
  initPayload: "/start",
  interval: 1000, // 1000 ms between each message
  customData: {"userId": "123"}, // arbitrary custom data. Stay minimal as this will be added to the socket
  socketUrl: "http://localhost:5002", // change to rasa_core --port value
  socketPath: "/socket.io/",
  title: "Title",
  subtitle: "Subtitle",
  inputTextFieldHint: "Type a message...",
  connectingText: "Waiting for server...",
  fullScreenMode: true,
  profileAvatar: "https://XXXX/avatarpng",
  params: {
    images: {
      dims: {
        width: 300,
        height: 200,
      }
    },
    storage: "local"
  }
});
WebChat.open();
</script>

</body>
</html>

This works for me. The conversation is still available when reloading/closing and reopening the tab.

Hi @tograssm, I am using Chrome, while using 0.5.6 bot icon is not visible. While using the code you are sent also.

Hey! Do you mean the “profile picture” of the bot in the conversation or the “+” Icon, that should open the chat window?

The chat-widget only gets displayed as soon as it is able to connect to the socket.io server provided by your rasa_core. Could you try to start your bot and wait until it’s fully started up before you open the website with your chat widget?

If you saved my code from above, keep in mind, that you’ll only see a blank white page, until the bot get’s started with socket.io server up and running. So having the page open, the chat widget should pop up as soon as it is able to successfully connect to the rasa_core server. Would be nice if you could try this and report back, if this worked for you.

Otherwise it could be helpful to see the code of your webpage and your code that starts the rasa bot

Hi @tograssm, socket.io server is running fine , but still showing white blank page. Apart from that data disappearing after refreshing issue is still pending.Please help me.

Hi @tograssm, Is there any solution.