0.10.1 • Published 1 month ago
mongodb-chatbot-ui v0.10.1
MongoDB Chatbot UI
The React components for the MongoDB Chatbot Framework.
Documentation
To learn more about the MongoDB Chatbot UI components, check out the documentation.
For more information about the available components and props, refer to the documentation.
Install
Install the mongodb-chatbot-ui
package from npm. This contains the React.js components that you can use to build a chatbot UI.
npm install mongodb-chatbot-ui
Usage
import Chatbot, {
FloatingActionButtonTrigger,
InputBarTrigger,
ModalView,
MongoDbLegalDisclosure,
mongoDbVerifyInformationMessage,
} from "mongodb-chatbot-ui";
function MyApp() {
const suggestedPrompts = [
"How do I create a new MongoDB Atlas cluster?",
"Can MongoDB store lists of data?",
"How does vector search work?",
];
return (
<div>
<Chatbot
name="MongoDB AI"
maxInputCharacters={300}
>
<InputBarTrigger
bottomContent={<MongoDbLegalDisclosure />}
suggestedPrompts={suggestedPrompts}
/>
<FloatingActionButtonTrigger text="Ask My MongoDB AI" />
<ModalView
disclaimer={<MongoDbLegalDisclosure />}
initialMessageText="Welcome to my MongoDB AI Assistant. What can I help you with?"
initialMessageSuggestedPrompts={suggestedPrompts}
initialMessageReferences={[
{
url: "https://example.com/some-link",
title: "Example reference link",
metadata: {
sourceType: "Article",
},
},
{
url: "https://example.com/another-link",
title: "Another reference link",
metadata: {
sourceType: "Docs",
},
},
]}
inputBottomText={mongoDbVerifyInformationMessage}
/>
</Chatbot>
</div>
);
}
0.9.1-hotkey-0
2 months ago
0.10.1
1 month ago
0.10.0
2 months ago
0.9.0
2 months ago
0.8.1
3 months ago
0.8.0
4 months ago
0.7.2
7 months ago
0.7.1
7 months ago
0.6.1
7 months ago
0.6.0
7 months ago
0.5.0
9 months ago
0.3.2
9 months ago
0.4.0
9 months ago
0.3.1
9 months ago
0.3.0
10 months ago
0.2.1
10 months ago
0.1.0
12 months ago
0.1.2
12 months ago
0.1.1
12 months ago
0.1.0-0
12 months ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1-3
1 year ago
0.0.1-2
1 year ago
0.0.1-1
1 year ago
0.0.1-0
1 year ago