Reference host page pinned to the demo tenant (FEATURE-90).
Loads the launcher bundle and calls BAAssistant.init({ clientCode: 'demo' }).
The floating button should appear bottom-left.
locale: 'vi'; omit it to exercise BE auto-detect
(FEATURE-42 / FEATURE-56).
BAAssistant.open('fullscreen'),
BAAssistant.close(),
BAAssistant.destroy().
demo tenant
This page does not mint identity JWTs — it runs every chat turn
anonymously against the orchestrator. The BE silently degrades to anonymous when
user.authToken is absent, so the chat path works without a host backend.
To exercise the full signed-JWT + impersonation path documented in
docs/INTEGRATION.md §19, mint a token with the demo host private key
and send it via BAAssistant.updateUser({ id, role, authToken }) from
DevTools. Run the deliverable bundle's mint-jwt.js on your local
machine to get a fresh 5-minute token:
node mint-jwt.js demo your-test-user-id b2b
# pastes a JWT — copy it, then in DevTools:
BAAssistant.updateUser({ id: 'your-test-user-id', role: 'b2b', authToken: '<paste>' });