Thư viện nhúng đa môi trường — widget UI, headless API, tùy theme/prompt/tính năng theo từng profile công ty.
<link rel="stylesheet" href="/sdk/lila-sdk.css">
<div id="lila-chat"></div>
<script src="/sdk/lila-sdk.js"></script>
<script>
LilaSDK.create({
company: 'SaoDo', // slug công ty
profile: 'sdk_xxx', // profile ID (Admin → SDK)
apiKey: 'lila_...', // API key profile
container: '#lila-chat',
// mode: 'headless', // không UI — chỉ API
theme: { primary: '#6366f1' },
prompts: {
system: 'Bạn là tư vấn viên cho shop X...',
greeting: 'Xin chào!'
},
features: { attach: true, voice: true, streaming: true },
onResponse: (r) => console.log(r.answer)
});
</script>
Thêm query: ?company=SaoDo&profile=...&key=lila_...
Hộp chat native — attach, voice, stream, theme CSS variables. Giống chat premium.
mode: 'headless' — không render UI. Dùng send(), sendStream() nhận JSON.
LilaWidget.init({...}) — iframe embed đơn giản (tương thích cũ).
Python: public/sdk/samples/python_headless.py
Header: X-Lila-Api-Key: lila_...
Admin → Tích hợp → SDK: tạo profile theo môi trường (website, app mobile, kiosk...). Mỗi profile có API key, system prompt, theme, bật/tắt attach/voice/sources.