react-chatbot-starter
v1.0.4
Published
a Chat bot package for devs
Downloads
4
Maintainers
Readme
React Chatbot Starter
A simple React component to quickly integrate a chatbot into your app. Customize the chatbot with your own API endpoint, bot key, and bot model.
Installation
Install the package via npm:
npm install react-chatbot-starter
Import the Chatbot
component into your project and use it like this:
import React from 'react';
import Chatbot from 'react-chatbot-starter';
const App = () => {
return (
<Chatbot
endpoint="https://your-ai-endpoint.com"
botkey="your-bot-key"
botmodel="your-model-name"
/>
);
};
export default App;
Props
endpoint
(string, required): The API endpoint for your chatbot.botkey
(string, required): Your bot's API key.botmodel
(string, required): The chatbot model you want to use.
Features
- Easily customizable chatbot component for your app.
- Send and receive messages using an external AI API.
- Real-time typing indicators.
- User and AI message handling.
<Chatbot
endpoint="https://api.example.com"
botkey="your-api-key"
botmodel="gpt-3.5-turbo"
/>
License
This project is licensed under the MIT License - see the LICENSE file for details.