fatihai-chatbot
v1.0.0
Published
AI-powered chatbot widget for websites - Easy to embed, customizable, Calendly integration
Maintainers
Readme
FatihAI Chatbot Widget
AI-powered chatbot widget for websites. Add intelligent customer support to your site in minutes.
Features
- AI-powered responses (GPT-like intelligence)
- Easy 5-minute setup
- Fully customizable (colors, position, messages)
- Calendly integration for booking meetings
- Mobile responsive
- TypeScript support
- Zero dependencies
Installation
NPM
npm install fatihai-chatbotCDN
<script src="https://fatihai.app/widget.js" data-key="your_api_key"></script>Quick Start
Browser (Script Tag)
<script src="https://unpkg.com/fatihai-chatbot"></script>
<script>
const chatbot = new FatihAIChatbot('your_api_key', {
primaryColor: '#6366f1',
title: 'Chat with us',
welcomeMessage: 'Hi! How can I help you today?'
});
chatbot.render();
</script>Node.js / React / Vue
const FatihAIChatbot = require('fatihai-chatbot');
const chatbot = new FatihAIChatbot('your_api_key', {
position: 'bottom-right',
primaryColor: '#6366f1',
calendlyUrl: 'https://calendly.com/your-link'
});
// In browser context
chatbot.render();
// Or use programmatically
const response = await chatbot.sendMessage('Hello!');
console.log(response.response);Configuration Options
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| position | string | 'bottom-right' | Widget position ('bottom-right' or 'bottom-left') |
| primaryColor | string | '#6366f1' | Primary color for the widget |
| title | string | 'Chat with AI' | Header title |
| placeholder | string | 'Type your message...' | Input placeholder text |
| welcomeMessage | string | 'Hi! How can I help you today?' | Initial greeting message |
| calendlyUrl | string | null | Calendly URL for booking (shows button if set) |
API Methods
sendMessage(message: string)
Send a message and get AI response.
const response = await chatbot.sendMessage('What are your pricing plans?');
console.log(response.response);render()
Render the widget on the page.
open() / close() / toggle()
Control widget visibility.
clearHistory()
Clear conversation history.
Pricing
| Plan | Price | Features | |------|-------|----------| | Starter | $299/mo | 10,000 messages, 1 widget | | Growth | $499/mo | 50,000 messages, 5 widgets | | Enterprise | Custom | Unlimited, custom training |
Get API Key
Sign up at fatihai.app
Links
License
MIT
