@koppieesq/chatbot
v1.4.0
Published
A reusable React chatbot component.
Readme
Chatbot React Component
A reusable chatbot component for React projects.
Usage
- Install as a dependency:
npm install @koppieesq/chatbot - Import in your project:
import Chatbot from 'chatbot'; - Add environment variable to your project:
REACT_APP_API_URL='https://0.0.0.0:8000' - Use the components:
<Chatbot greeting="Hello! How can I help you?" apiUrl={process.env.REACT_APP_API_URL} />
Troubleshooting
If you experience CORS issues, add the following environment variables:
NODE_TLS_REJECT_UNAUTHORIZED=0
DANGEROUSLY_DISABLE_HOST_CHECK=true
REACT_APP_IGNORE_SSL=true