Socket
Book a DemoInstallSign in
Socket

mongodb-chatbot-ui

Package Overview
Dependencies
Maintainers
0
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-chatbot-ui

UI React components for the MongoDB Chatbot Framework

0.16.1
latest
Source
npmnpm
Version published
Weekly downloads
29
190%
Maintainers
0
Weekly downloads
 
Created
Source

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>
  );
}

Keywords

retrieval-augmented-generation

FAQs

Package last updated on 29 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.