Update index.html
Browse files- index.html +41 -19
index.html
CHANGED
@@ -1,19 +1,41 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Chatbot Demo</title>
|
7 |
+
<link rel="stylesheet" href="styles.css">
|
8 |
+
</head>
|
9 |
+
<body>
|
10 |
+
<header>
|
11 |
+
<h1> Chatbot Demo</h1>
|
12 |
+
<p>Demo #1 - 13th March 2025</p>
|
13 |
+
</header>
|
14 |
+
|
15 |
+
<main>
|
16 |
+
<!-- Chatbot container -->
|
17 |
+
<div id="coze-chatbot"></div>
|
18 |
+
</main>
|
19 |
+
|
20 |
+
<!-- Coze SDK integration -->
|
21 |
+
<script src="https://sf-cdn.coze.com/obj/unpkg-va/flow-platform/chat-app-sdk/1.2.0-beta.5/libs/oversea/index.js"></script>
|
22 |
+
<script>
|
23 |
+
// Initialize chatbot
|
24 |
+
new CozeWebSDK.WebChatClient({
|
25 |
+
config: {
|
26 |
+
bot_id: '7505945028296982529', // Replace with your bot_id
|
27 |
+
},
|
28 |
+
componentProps: {
|
29 |
+
title: 'LAYA Chatbot', // Chatbot title
|
30 |
+
},
|
31 |
+
auth: {
|
32 |
+
type: 'token',
|
33 |
+
token: 'pat_WIXvy1WtxB9N3ttEPG487glTZpJi2LnNSCRywrJyNmfowEAC5TKHED7GtKq8B60d', // Replace with your token
|
34 |
+
onRefreshToken: function () {
|
35 |
+
return 'pat_WIXvy1WtxB9N3ttEPG487glTZpJi2LnNSCRywrJyNmfowEAC5TKHED7GtKq8B60d'; // Replace with a new token if needed
|
36 |
+
}
|
37 |
+
}
|
38 |
+
});
|
39 |
+
</script>
|
40 |
+
</body>
|
41 |
+
</html>
|