-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
45 lines (42 loc) · 1.23 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Openchat AI-Copilot</title>
</head>
<body>
<script type="module" src="src/index.tsx"></script>
<script>
const socketUrl = "http://localhost:8080";
const apiUrl = "http://localhost:8080/backend";
window.addEventListener("DOMContentLoaded", () => {
initOpenScript({
token: "8ce19d99a6a2a2c31d4e7946fc3aaed8",
apiUrl: apiUrl,
socketUrl: socketUrl,
language: "en",
initialMessages: ["How can we help you?", "Please provide your name and email so we can help you better."],
settings: {
persistSession: true,
useSoundEffects: true
},
theme: {
headerStyle: "basic",
},
collectUserData: true,
headers: {
"X-auth": "Hello-Header"
},
queryParams: {
"X-auth": "Hello-World"
},
debug: false,
bot: {
avatarUrl: "https://yt3.ggpht.com/6pKAhwXP0jLQyNidcMM-rjfVAzrqJuI5lDsrqOguhfx1xFDyu7D9ish3lC17OEfWuEyZshrz=s48-c-k-c0x00ffffff-no-rj"
},
}); // default or iframed
});
</script>
</body>
</html>