0.2.3 • Published 12 months ago

cds-support-chatbot v0.2.3

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago

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

NameTypeDescription
apiEndpointstringThe endpoint of the API
wssEndpointstringThe endpoint of the WebSocket
apiKeystringThe API key
chatbotNamestringThe name of the chatbot
chatbotImagestringThe image of the chatbot
tokenstringThe token of the chatbot