-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
82 lines (75 loc) · 2.14 KB
/
Copy pathindex.html
File metadata and controls
82 lines (75 loc) · 2.14 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Rapida Chat Widget Demo</title>
<style>
html,
body {
width: 100%;
height: 100%;
}
body {
margin: 0;
font-family: "IBM Plex Sans", sans-serif;
background: #f4f4f4;
overflow: hidden;
}
#rapida-chat-app {
position: fixed;
inset: 0;
width: 100vw;
height: 100dvh;
}
</style>
</head>
<body>
<script>
window.chatbotConfig = {
api_base: "http://localhost:8080",
assistant_id: "2318335886699266048",
token: "e4da0463dfddcca57c8f4432a64fb6540f3669513f26379d8f1ac9a791e1d11e",
// ---- Full-screen local demo ----
// The widget fills the page through #rapida-chat-app.
layout: {
mode: "floating", // floating | docked-right | docked-left | inline
corners: "square",
showFrame: true,
},
launcher: {
isOn: true,
},
// ---- Usage 2: Docked to side ----
// Panel sticks to the side of the viewport and pushes page content.
// layout: { mode: "docked-right" }, // docked-right | docked-left
// ---- Usage 3: Inline ----
// Panel flows with page content, no fixed positioning.
// layout: { mode: "inline" },
name: "Assistant",
// logo_url:
// "https://www.rapida.ai/images/logos/icon-07.svg",
theme: {
mode: "light", // light | dark
injectTheme: "g10",
},
aiEnabled: false,
header: {
title: "",
name: "",
showAiLabel: false,
hideDefaultAiLabelContent: true,
minimizeButtonIconType: "minimize",
},
history: {
isOn: false,
},
messaging: {
messageTimeoutSecs: 150,
messageLoadingIndicatorTimeoutSecs: 1,
},
};
</script>
<script defer src="https://cdn-01.rapida.ai/public/scripts/app.min.js?v=12"></script>
</body>
</html>