Reads your site. Answers questions. Zero API keys required.
</body> on any pageCopy livechat-widget.js to your web server or CDN, then adjust the src
path accordingly.
POST /api/config Register website + trigger scrape GET /api/config/{id} Get config POST /api/config/{id}/refresh Re-scrape pages POST /api/session/start Start visitor session POST /api/chat Send message → JSON reply POST /api/transfer Escalate to human agent (returns contact_links) GET /api/session/{id} Get session + history GET /api/sessions Admin: list all sessions GET /health Health + knowledge base stats
New fields in POST /api/config:
whatsapp_number — E.164 format (e.g. +2348012345678). When set, transfer responses include a pre-filled wa.me link.
contact_email — Support email. Transfer responses include a mailto: link with chat summary pre-filled.
Storage: All configs, sessions, and knowledge chunks are persisted in livechat.db (SQLite). Data survives server restarts.