Choose your platform
Before you start
- A Kili account on any plan. Start a free trial.
- Your organisation's API key and API secret, from Settings → API keys.
- The Kili API base URL:
https://api.kili.africa.
How it works
- 1Creates a customer for this visitor, or restores the one saved on the device.
- 2Sets an HMAC on the customer, registers them and gets an access token.
- 3Loads the customer's existing conversations.
- 4Opens a realtime socket connection, so agent replies, typing indicators and new chats arrive live.
Note
The session is saved on the device: browser localStorage on web, and shared_preferences on Flutter. Returning visitors see their past conversations.
Placing the widget
The widget has no floating launcher bubble. It fills the space its container gives it, and it shows a home screen with a greeting, past conversations and a "Start a conversation" button, plus a thread view for each conversation.
The sizing differs by SDK. In Flutter the widget fills its parent. In React and Vue the root is full viewport height (100dvh), so it needs a full-screen page or overlay rather than a fixed-height box. Each platform guide has the details.
A dedicated support page
Give support its own route, such as /support, with nothing else on the screen.
React, Vue, Flutter
A full-screen overlay
Open the widget in a modal or drawer that covers the whole viewport. On web, a small drawer will clip the composer.
React, Vue
A bottom sheet or full-screen route
Push a route or open a tall modal bottom sheet, as the Flutter example does.
Flutter
Need a hand integrating?
Email our team and we'll help you get the widget running in your app.
support@kili.chatLooking for the API reference? See Types & events.