Public Experiences
The easiest integration path — no backend required.
When to use
Public experiences are the default integration path. Use them when your experience can be accessed from allowlisted web origins without per-user authentication.
- Marketing demos and landing pages
- Education apps with open tutors
- Public try-before-you-buy flows
- iframe or hosted player embeds
Integration
<script>
import { LiformaExperience } from '@liforma/client/svelte';
<\/script>
<LiformaExperience experienceId="exp_01DEMO1SPANISHCAFE" /> Or with the web component:
<script src="https://cdn.liforma.ai/sdk/v1/client.js"><\/script>
<liforma-experience experience-id="exp_01DEMO1SPANISHCAFE"></liforma-experience> Requirements
- Experience must be marked public in Liforma
- Your site's origin must be on the experience allowlist
- Browser must support required APIs (Web Speech API for voice input)
What the SDK does
- Reads
experienceIdfrom your component - Calls
POST /v1/public-sessionswith the pageOriginheader - Receives a Session Manifest
- Starts the runtime — no API key on your server
Security model
Experience IDs are public. Security is enforced by origin allowlists, session token scoping, and usage quotas — not by hiding the ID.
Pricing
Public sessions are metered per minute. See pricing.