Skip to main content

Before you start

Start the Convo AI agent or TEN graph on your backend, then return this runtime configuration to the app: Use a different Agora UID for the client, conversational agent, and avatar publisher. Never send the Spatius API Key or Agora App Certificate to the app. This path does not use a Spatius Session Token.

Connect the client

Install AvatarKit, the Web RTC Adapter, and Agora’s Web SDK:
Configure the AvatarKit WebAssembly assets for Vite or Next.js, then connect:
Call the connect flow from a user action so the browser can request microphone permission.Web RTC Adapter Reference
The packaged AgoraProvider coordinates audio and motion data. On the default connect path, it also owns the RTC lifecycle. Do not also call Backend Mode feed methods.

Next steps

Scenario demo

Integration demo

Client lifecycle