Hi Rasa Community! I have been using this HTML code for testing when I realized the chat history with the users did not save when I ran Rasa X to check the conversations my chatbot had with test users. Am I missing something or did I do it wrong? Feel free to comment thanks!
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test Lisa</title>
<link rel="stylesheet" href="css/styles.css?v=1.0">
</head>
<body>
<div id="webchat"></div>
<script src="https://cdn.jsdelivr.net/npm/rasa-webchat/lib/index.min.js"></script>
<script>
WebChat.default.init({
selector: "#webchat",
initPayload: "/greet",
customData: {"language": "en"}, // arbitrary custom data. Stay minimal as this will be added to the socket
socketUrl: "https://ngrokurl.ngrok.io",
socketPath: "/socket.io/",
title: "Lisa",
subtitle: "Chat with the new Edaran Bot!",
params: {"storage": "session"} // can be set to "local" or "session". details in storage section.
})
</script>
</body>
</html>
I have also add the socket.io auth in my credentials.yml
socketio:
user_message_evt: user_uttered
bot_message_evt: bot_uttered
session_persistence: true/false