Skip to main content

Web scenario demo

Run four complete avatar scenes in the browser.
The Web demo supports both recommended integrations. Choose livekit to run the conversation through LiveKit Agents on your machine, or agora to use Agora Convo AI.

Prerequisites

  • Python 3 and Node.js with pnpm
  • Spatius API Key and App ID from Spatius Studio
  • One realtime provider:
    • LiveKit URL, API Key, and API Secret from LiveKit Cloud
    • Or Agora App ID, App Certificate, and published Agent Pipeline ID

Run it

1

Clone the scenario demo

2

Configure the shared backend

In .env, set TRANSPORT=livekit or TRANSPORT=agora, then fill the Spatius and matching provider credentials. The backend README lists every field. For Agora, also follow its required ASR resource-ID and TTS sample-rate setup.
3

Start the backend

Keep it running. It listens on port 8787 and starts the LiveKit agent worker automatically when TRANSPORT=livekit.
The demo backend is unauthenticated. Run it only on your local machine or a trusted LAN; do not expose it publicly.
4

Start the Web client

In a second terminal:
Open http://localhost:5180/spatius-scenario-demo/, confirm the backend configuration, then choose a scene.

Next steps

LiveKit Agents

Agora Convo AI