@yuntijs/chat
TypeScript icon, indicating that this package has built-in type declarations

1.0.25 • 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.dev.botnow.cn
      }
      </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

2

Version

1.0.25

License

MIT

Unpacked Size

250 kB

Total Files

95

Last publish

Collaborators

  • carrotzpc
  • yangqian11
  • zggmd