Overview
Usage across all your API keys for the last 7 days.
Requests per day
Chat messages answered by your assistants.
Recent activity
The latest requests made with your keys.
| Key | Time | Tokens | Latency | Status |
|---|
API keys
Create one key per website. Keep keys secret — they belong in your server, not your HTML.
Create a new key
Give it a name you'll recognise, like the website it's for.
✓ Key created. Copy it now and paste it into your server.js.
Your keys
| Name | Key | Status | Last used |
|---|
Chatbot settings
Customise what visitors see when they click the chat circle. Changes go live instantly.
Create an API key first, then customise its chatbot here.
Billing
Your plan, usage this month and payments. Pay with PayPal or card through Ko-fi.
–
Complete your payment
Your plan activates automatically as soon as Ko-fi tells us you've paid. Keep this page open.
- Copy your reference code
- Pay on Ko-fi
Enter as the amount and paste the reference code into the message box. Tick "Make this monthly" to renew automatically. You can pay with PayPal or a card.
Pay on Ko-fi ↗ - Done
Come back here. Paying with the same email as this account () also matches your payment if you forget the code.
Payment history
| Date | Plan | Amount | Reference | Status |
|---|
Install & docs
Add the AI chat circle to your website in a few minutes.
Quick start
The starter kit contains index.html, server.js and readme.txt.
- Download & unzip the starter kit
You'll need Node.js 18 or newer installed. No npm packages are required.
- Add your API key
Open
server.jsand paste your key, or set it as an environment variable:YSWAI_API_KEY=ysw_sk_your_key_here node server.js
- Start your server
Run the command below in the starter-kit folder, then open
http://localhost:3000.node server.js
- Customise (optional)
Change the greeting in Chatbot settings, or override it directly in
index.html:window.YSWAI_WIDGET = { endpoint: "/api/chat", configEndpoint: "/api/widget-config", greeting: "Welcome to Rosie's Bakery! What can I get you?", // overrides dashboard botName: "Rosie", accent: "#16a34a" };
REST API reference
Authenticate every request with Authorization: Bearer <your key>. Base URL:
Send the conversation, get the assistant's reply from llama3.2.
// Request body
{ "messages": [ { "role": "user", "content": "Do you deliver on Sundays?" } ],
"greeting": "optional – the first message shown to the visitor" }
// Response
{ "reply": "Yes! We deliver every day from 9am to 6pm.", "model": "llama3.2", "tokens": 182 }
Returns the bot name and greeting you set in the dashboard.
{ "bot_name": "Rosie", "greeting": "Hi! 👋 How can I help?", "model": "llama3.2" }