v1.0.0

AskGuru

A powerful React component for embedding an AI-powered chat widget into your web application. Provides a beautiful, customizable interface for conversational interactions.

Installation

Get started by installing AskGuru via your preferred package manager:

npm install askguru
yarn add askguru

Usage

Import the ChatWidget component in your React app:

import ChatWidget from 'askguru';

Add the widget to your component tree with configuration:

<ChatWidget
  config={{
    apiKey: 'YOUR_API_KEY',
    welcomeMessage: 'Hello! How can I help you today?',
    botName: 'AskGuru',
    theme: '#007bff',
    logoImage: 'https://example.com/logo.png',
    apiEndpoint: 'https://www.askguru.ai/api/chat'
  }}
/>

Configuration

The config prop accepts the following options:

OptionTypeDescription
apiKeystringRequiredYour API key for authentication.
welcomeMessagestringInitial message shown to the user.
botNamestringName displayed for the bot.
themestringCustomize primary/secondary colors.
logoImagestringCustomize the icon image.
apiEndpointstringAPI endpoint for chat.