Skip to content

Commit 7ffa05e

Browse files
committed
add knowrithm widget in docs
1 parent d7170be commit 7ffa05e

File tree

6 files changed

+49
-0
lines changed

6 files changed

+49
-0
lines changed

ai-tools/claude-code.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import Widget from '../snippets/widget.mdx'
23
title: "Claude Code setup"
34
description: "Configure Claude Code for your documentation workflow"
45
icon: "asterisk"

ai-tools/cursor.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import Widget from '../snippets/widget.mdx'
23
title: "Cursor setup"
34
description: "Configure Cursor for your documentation workflow"
45
icon: "arrow-pointer"

api-reference/agents.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import Widget from '../snippets/widget.mdx'
23
title: "Agents"
34
description: "Create, manage, and observe Knowrithm agents."
45
---

index.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
import Widget from '../snippets/widget.mdx'
3+
import Widget from './snippets/widget.mdx'
24
title: "Welcome to Knowrithm"
35
description: "Build, train, and operate multi-agent AI assistants backed by enterprise-grade infrastructure."
46
---

quickstart.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import Widget from './snippets/widget.mdx'
23
title: "Quickstart"
34
description: "Provision Knowrithm locally in minutes and connect your first agent."
45
---

snippets/widget.mdx

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<script>
2+
(function() {
3+
window.AIChatWidget = {
4+
"agentId": "2b041b45-a585-47e9-abaf-ebaad766bce9",
5+
"apiUrl": "https://app.knowrithm.org/api/v1",
6+
"color": "#0972A3",
7+
"position": "right",
8+
"appearance": {
9+
"theme": "light",
10+
"primaryColor": "#0972A3",
11+
"placement": "bottom-right",
12+
"buttonText": "Chat with us",
13+
"showBranding": true
14+
},
15+
"behavior": {
16+
"autoOpen": false,
17+
"initialDelay": 0,
18+
"persistSession": true,
19+
"pollingInterval": 10000,
20+
"enableSounds": false
21+
},
22+
"callbacks": {
23+
"onLoad": null,
24+
"onError": null,
25+
"onMessage": null,
26+
"onClose": null
27+
},
28+
"assets": {
29+
"scriptUrl": "https://app.knowrithm.org/api/widget.js",
30+
"styleUrl": "https://minio.knowrithm.org/browser/knowrithm-bucket/chat-widget.css"
31+
}
32+
};
33+
const script = document.createElement('script');
34+
script.src = 'https://app.knowrithm.org/api/widget.js';
35+
script.type = 'text/javascript';
36+
script.async = true;
37+
document.head.appendChild(script);
38+
const link = document.createElement('link');
39+
link.rel = 'stylesheet';
40+
link.href = 'https://minio.knowrithm.org/browser/knowrithm-bucket/chat-widget.css';
41+
document.head.appendChild(link);
42+
})();
43+
</script>

0 commit comments

Comments
 (0)