Getting started / SDK quick start
Getting started / SDK quick start
SDK quick start
The Lillo support button installs with a single line of script. Once installed, a button appears at the bottom right of your site and the AI agent LIA starts responding right away.
Install
- Find your Client Key in the console under Settings > Button install & settings.
- Insert the snippet on the right just before
</body>.
SDK contract
LilloSDK.init(config)is a singleton — the config from a second call is ignored.lilloSDK.open()— opens the chat window.lilloSDK.logout()— disconnects the member and restarts as a guest.
The console's button install page provides snippets pre-filled with your workspace key (JavaScript · React · WordPress) and a production/development environment toggle.
Install snippet — HTML
<script src="https://lillo-sdk-client.s3.ap-northeast-2.amazonaws.com/lillo-sdk.umd.js"></script>
<script>
window.lilloSDK = window.LilloSDK.init({
host: 'https://api.lillo.cx',
chatAppUrl: 'https://chat.lillo.cx',
clientKey: 'YOUR_CLIENT_KEY'
});
</script>SDK methods
// 상담창 열기
window.lilloSDK.open();
// 회원 연결 해제 → 게스트로 재시작
window.lilloSDK.logout();