0.2.3 • Published 10 months ago
cds-support-chatbot v0.2.3
CDS SUPPORT CHATBOT
Note this package is not support react-native anymore.
Installation
npm install @cdssnc/cds-support-chatbot
Usage
import { Chatbot } from '@cdssnc/cds-support-chatbot';
import '@cdssnc/cds-support-chatbot/dist/index.css';
const config: AuthLib = {
apiEndpoint: 'your api endpoint',
wssEndpoint: 'your wss endpoint',
apiKey: 'your api key',
chatbotName: 'your chatbot name',
chatbotImage: 'your chatbot image',
token: 'your token',
};
const App = () => {
return (
<Chatbot {...config}/>
);
}
Props
Name | Type | Description |
---|---|---|
apiEndpoint | string | The endpoint of the API |
wssEndpoint | string | The endpoint of the WebSocket |
apiKey | string | The API key |
chatbotName | string | The name of the chatbot |
chatbotImage | string | The image of the chatbot |
token | string | The token of the chatbot |