Install
The composable
useKioskSession is the core primitive. Use it when you need full control over the chat UI.
Composable return values
Drop-in components
For most use cases the pre-built components are the fastest path.<KioskChat>
<KioskVoice>
open, close, message,
response, error, status-change.
Advanced topics
Nuxt.js usage
Nuxt.js usage
The Humain SDK uses browser APIs (WebSocket, WebRTC). In Nuxt, restrict these components
to client-side rendering:Or use the
.client.vue file naming convention to mark the entire component as
client-only — Nuxt will not attempt to SSR it.For credentials, store your live token in .env and access it via useRuntimeConfig().
Do not expose live credentials in NUXT_PUBLIC_* variables.Pinia integration
Pinia integration
To share session state across multiple components, store the session in a Pinia store: