I’m working on a project with extremely sensitive information and thus cannot use other external sources as mediators between my website and the rasa core. Does anyone know of any example projects that can help me do the web integration of the chatbot with the webpage?
I’ve taken a look at the HTTP API page of the Docs but its all Greek and Latin to me (no offense to the Greek and Latin literates) since I don’t have any programming knowledge as a web developer. I’m hoping to learn based on example projects.
Also I’m not permitted to use socket.io due to the same confidentiality reasons mentioned above. Is there any other way that allows me to maintain confidentiality
I have implemented the webchat and it works fine. However, every time I open the html page, the previous conversations are present in the chat. Is there a way to clear the conversations every time the page reloads?
Hi, in the script tag provided by web chat that you’ve embedded in your website, just make the storage attribute to “session” instead of “local”. That will clear your conversation when a user close the tab and reopen a new one. But clearing conversations on page reload, even I’m not sure how to do that.
<script src="https://storage.googleapis.com/mrbot-cdn/webchat-0.5.8.js"></script>
<script>
WebChat.default.init({
selector: "#webchat",
initPayload: "/get_started",
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:5500",
socketPath: "/socket.io/",
title: "Title",
subtitle: "Subtitle",
inputTextFieldHint: "Type a message...",
connectingText: "Waiting for server...",
hideWhenNotConnected: true,
fullScreenMode: false,
showFullScreenButton: false,
profileAvatar: "http://to.avat.ar",
openLauncherImage: 'myCustomOpenImage.png',
closeLauncherImage: 'myCustomCloseImage.png',
displayUnreadCount: true, // --> [view](./assets/unread_count_pastille.png)
showMessageDate: false,
params: {
images: {
dims: {
width: 300,
height: 200,
}
},
storage: "session"
},
})
</script>