-
Notifications
You must be signed in to change notification settings - Fork 1
/
index2.html
38 lines (38 loc) · 1.2 KB
/
index2.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
<html>
<body>
<script>
!(function () {
let e = document.createElement('script'),
t = document.head || document.getElementsByTagName('head')[0];
(e.src = 'https://cdn.jsdelivr.net/npm/rasa-webchat/lib/index.js'),
// Replace 1.x.x with the version that you want
(e.async = !0),
(e.onload = () => {
window.WebChat.default(
{
customData: { language: 'es' },
title: 'Jasmine 2',
subtitle: 'Asistente de Compras',
profileAvatar:
'https://res.cloudinary.com/ecommercejasmine/image/upload/v1641417625/jasmine_ztyzdf.png',
socketUrl:'http://localhost:5005',
// socketPath: '/socket.io/',
embedded: false,
params: {
images: {
dims: {
width: 300,
height: 230,
},
},
},
// add other props here
},
null
);
}),
t.insertBefore(e, t.firstChild);
})();
</script>
</body>
</html>