@yuntijs/chat
v1.0.35
Published
[![NPM version](https://img.shields.io/npm/v/@yuntijs/chat.svg?style=flat)](https://npmjs.com/package/@yuntijs/chat) [![NPM downloads](http://img.shields.io/npm/dm/@yuntijs/chat.svg?style=flat)](https://npmjs.com/package/@yuntijs/chat)
Downloads
789
Readme
@yuntijs/chat
Install
pnpm install
npm run dev
npm run build
Usage
使用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