@enterprisechai/concierge
v1.0.5
Published
Lightweight React widget for embedding EChai Concierge chatbot.
Maintainers
Readme
echai-chainlit-fe
EnterpriseChai bot frontend integrations repository. Supporting integrations of the bot with react app or web pages.
Sample Implementation
In your main.tsx:
import React from "react";
import ReactDOM from "react-dom/client";
import { ChatWidget, ChatWidgetConfig } from "@enterprisechai/concierge";
const config: ChatWidgetConfig = {
accessToken: 'token',
theme: "light",
};
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
< ChatWidget config={config} />
</React.StrictMode>
);Add this line to your web page:
<script type="module" src="/main.tsx"></script>