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 askguruyarn add askguruUsage
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:
| Option | Type | Description |
|---|---|---|
apiKey | string | RequiredYour API key for authentication. |
welcomeMessage | string | Initial message shown to the user. |
botName | string | Name displayed for the bot. |
theme | string | Customize primary/secondary colors. |
logoImage | string | Customize the icon image. |
apiEndpoint | string | API endpoint for chat. |