Documentation

Get your AI chatbot running in minutes.

Quick Start

1. Get your API key

Sign up and get your API key from the dashboard. It starts with sk_live_

2. Embed the widget

Add this script tag before the closing </body> tag:

<script src="https://yourapp.com/widget.js"
  data-key="sk_live_YOUR_API_KEY"
  data-title="Support Chat"
  data-color="#6366f1"
  data-greeting="Hello! How can I help?">
</script>
3. Train your knowledge base (optional)

Upload your FAQs, docs, or scrape your website from the Knowledge Base tab in your dashboard.

Widget Configuration

AttributeRequiredDefaultDescription
data-keyYesYour API key (sk_live_...)
data-titleNoSupport ChatWidget header title
data-colorNo#6366f1Brand color (hex)
data-greetingNoHello! How can I help?First message shown to user
data-positionNobottom-rightbottom-right or bottom-left

API Reference

POST/api/chatSend a message and get AI response
GET/api/client/accountGet account overview and usage stats
GET/api/client/leadsList captured leads (CSV or JSON)
GET/api/client/conversationsView recent conversations
POST/api/client/kbUpload knowledge base (text or URL scrape)
POST/api/client/upgradeStart PayPal subscription
POST/api/client/cancelCancel subscription
All client API endpoints require Authorization: Bearer sk_live_... header.

Knowledge Base Setup

The knowledge base uses RAG (Retrieval-Augmented Generation) to give your chatbot accurate, specific answers about your business.

Option 1: Scrape your website
POST /api/client/kb
Authorization: Bearer sk_live_...
Content-Type: application/json

{
  "action": "scrape",
  "url": "https://yourwebsite.com",
  "maxPages": 5
}
Option 2: Upload text directly
POST /api/client/kb
Authorization: Bearer sk_live_...
Content-Type: application/json

{
  "action": "upload",
  "text": "Your FAQs, product info, policies..."
}