Skip to content

Commit b87c76f

Browse files
committed
customize ai behavior
1 parent 49ad247 commit b87c76f

6 files changed

Lines changed: 10 additions & 0 deletions

File tree

docs/pages/_meta.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export default {
2828
type: "separator",
2929
title: "Guides",
3030
},
31+
3132
"connect-to-your-data": {
3233
title: "Connect your data",
3334
},
@@ -40,6 +41,9 @@ export default {
4041
"generative-ui": {
4142
title: "Generative UI (in-chat custom UI)",
4243
},
44+
"customize-ai-behavior": {
45+
title: "Customize AI behavior",
46+
},
4347
"copilot-suggestions": {
4448
title: "Copilot Suggestions",
4549
},

docs/pages/customize-ai-behavior.mdx

Whitespace-only changes.

docs/pages/reference/components/CopilotChat.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { CopilotChat } from "@copilotkit/react-ui";
2727
import "@copilotkit/react-ui/styles.css";
2828

2929
<CopilotChat
30+
instructions={"You are assisting the user as best as you can. Ansewr in the best way possible given the data you have."}
3031
labels={{
3132
title: "Your Assistant",
3233
initial: "Hi! 👋 How can I assist you today?",

docs/pages/reference/components/CopilotPopup.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { CopilotPopup } from "@copilotkit/react-ui";
2828
import "@copilotkit/react-ui/styles.css";
2929

3030
<CopilotPopup
31+
instructions={"You are assisting the user as best as you can. Ansewr in the best way possible given the data you have."}
3132
labels={{
3233
title: "Your Assistant",
3334
initial: "Hi! 👋 How can I assist you today?",

docs/pages/reference/components/CopilotSidebar.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import "@copilotkit/react-ui/styles.css";
2929

3030
<CopilotSidebar
3131
labels={{
32+
instructions={"You are assisting the user as best as you can. Ansewr in the best way possible given the data you have."}
3233
title: "Your Assistant",
3334
initial: "Hi! 👋 How can I assist you today?",
3435
}}

docs/snippets/copilot-ui.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import "@copilotkit/react-ui/styles.css";
2828
<>
2929
<YourMainContent />
3030
<CopilotPopup
31+
instructions={"You are assisting the user as best as you can. Ansewr in the best way possible given the data you have."}
3132
labels={{
3233
title: "Popup Assistant",
3334
initial: "Need any help?",
@@ -51,6 +52,7 @@ import "@copilotkit/react-ui/styles.css";
5152
return (
5253
<CopilotSidebar
5354
defaultOpen={true}
55+
instructions={"You are assisting the user as best as you can. Ansewr in the best way possible given the data you have."}
5456
labels={{
5557
title: "Sidebar Assistant",
5658
initial: "How can I help you today?",
@@ -77,6 +79,7 @@ import "@copilotkit/react-ui/styles.css";
7779
export function YourComponent() {
7880
return (
7981
<CopilotChat
82+
instructions={"You are assisting the user as best as you can. Ansewr in the best way possible given the data you have."}
8083
labels={{
8184
title: "Your Assistant",
8285
initial: "Hi! 👋 How can I assist you today?",

0 commit comments

Comments
 (0)