@yuntijs/chat

1.0.2 • Public • Published

@yuntijs/chat

NPM version NPM downloads

Install

$ pnpm install
$ npm run dev
$ npm run build

Usage

  1. 使用Chat组件

    import { Chat } from '@yuntijs/chat';
    
    <Chat appName={''} appNamespace={''} conversationId={''} isDark={true} />;
  2. script 嵌入

      <script>
      window.agileChatbotConfig = {
        id: xxx, // 必填
        hideHelpBtn: true, // 可选,如果设置为true,则不会出现右下角「帮助」按钮,可通过window.agileChatbotConfig.open()控制展示
        baseUrl: xxx, // 可选,默认为https://chat.kubeagi.com
      }
      </script>
      <script defer src='https://xxxxx/chatbot.min.js'></script>

    通过可控展示对话:

    window.agileChatbotConfig.open();
    window.agileChatbotConfig.close();

LICENSE

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @yuntijs/chat

Weekly Downloads

55

Version

1.0.2

License

MIT

Unpacked Size

15.4 kB

Total Files

3

Last publish

Collaborators

  • carrotzpc
  • yangqian11
  • zggmd