-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
49 lines (49 loc) · 2.14 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<html>
<body>
<style>
.rw-conversation-container .rw-header{background-color: #002507;}
.rw-conversation-container .rw-messages-container .rw-message .rw-client{background-color: hsl(106, 100%, 13%);}
.rw-conversation-container .rw-messages-container .rw-message .rw-response{background-color: hsl(106, 100%, 88%);}
.rw-launcher{background-color: hsl(120, 100%, 9%);}
.rw-conversation-container .rw-messages-container::-webkit-scrollbar{display: none;}
</style>
<script>(function () {
let e = document.createElement("script"),
t = document.head || document.getElementsByTagName("head")[0];
(e.src =
"https://cdn.jsdelivr.net/npm/rasa-webchat@1.0.1/lib/index.js"),
// Replace 1.x.x with the version that you want
(e.async = !0),
(e.onload = () => {
window.WebChat.default(
{
initPayload: '/greet',
interval: 1000,
customData: { language: "en" },
socketUrl: "http://localhost:5005",
title: 'Welcome',
subtitle: 'Say hi to get started',
// profileAvatar: "./assets/svg/robot.svg",
// openLauncherImage: "./assets/svg/comment.svg",
// closeImage: "./assets/svg/down.svg",
showMessageDate: true,
inputTextFieldHint: "What's in your mind ?...",
// add other props here
params: {
images: {
dims: {
width: 300,
height: 200
}
},
storage: "session"
}
},
null,
);
}),
t.insertBefore(e, t.firstChild);
})();
</script>
</body>
</html>