1.0.4 • Published 10 months ago

react-chatbot-starter v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

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.

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago