@kelu/widget is the website widget: an Ask AI launcher and chat panel, plus the support form deflector, in one script. It is a self-contained browser bundle with nothing to import.
Load it
Globals
| Global | What it is | Reference |
|---|---|---|
window.KeluWidget | The widget’s API: init(), open(), ask(), setUser(), on() and more | Functions |
window.Kelu | The same calls in kapa.ai’s window.Kapa shape, with a preinitialisation stub for calls made before the script loads | JavaScript API |
window.KeluFormDeflector | attach(options), render() and unmount() for the support form deflector | Render manually |
Reference
Configuration
Every option, as a dashboard setting, a
data-* attribute or an init() field.Events
Every event and its payload, for your analytics.
Lifecycle
Render and unmount by hand in single-page apps.
Form deflector
Answer a support form’s question before it becomes a ticket.