A reusable React chatbot component.
npm install @koppieesq/chatbotA reusable chatbot component for React projects.
1. Install as a dependency:
``sh`
npm install @koppieesq/chatbot
`
2. Import in your project:
js`
import Chatbot from 'chatbot';
`
3. Add environment variable to your project:
dotenv`
REACT_APP_API_URL='https://0.0.0.0:8000'
`
3. Use the components:
jsx`
If you experience CORS issues, add the following environment variables:
`dotenv``
NODE_TLS_REJECT_UNAUTHORIZED=0
DANGEROUSLY_DISABLE_HOST_CHECK=true
REACT_APP_IGNORE_SSL=true