@yuntijs/chat
v2.0.6
Published
[](https://npmjs.com/package/@yuntijs/chat) [](https://npmjs.com/package/@yuntijs/chat)
Readme
@yuntijs/chat
Install
pnpm installnpm run dev
npm run buildUsage
使用Chat组件
import { Chat } from '@yuntijs/chat'; <Chat appName={''} appNamespace={''} conversationId={''} isDark={true} />;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
