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

0.0.8 • Public • Published

安装

yarn install @jack_jiang/ai-chat

#使用

 import type { FC } from 'react';
 import ChatBot from '@jack_jiang/ai-chat';
 import '@jack_jiang/ai-chat/dist/style.css';


const lexConfig = {
  botName: "gwibotdev",
  botAlias: "gwibotdev",
  userId: "chatbot",
}

const awsWrapperConfig = {
  region: 'us-east-1',
  identityPoolId: 'us-east-1:xxxxxxx'
}

const App: FC = () => {
  return (
    <div>
      <ChatBot
        lexConfig={lexConfig}
        awsWrapperConfig={awsWrapperConfig}
      />
    </div>
  )
}

export default App;

Readme

Keywords

none

Package Sidebar

Install

npm i @jack_jiang/ai-chat

Weekly Downloads

5

Version

0.0.8

License

MIT

Unpacked Size

140 kB

Total Files

55

Last publish

Collaborators

  • jack_jiang