Web SDK
Avatar Integration
Render, reposition, scale, and control 3D glTF and 2.5D visual avatar characters.
Overview
The SDK embeds a high-performance WebGL / Canvas avatar container handling 3D model rendering, lighting, and procedural bone animations.
Floating vs Docked Modes
- Floating (Default): Hovers in fixed corner of viewport.
- Docked: Injected inline inside a target DOM container:
Asiyst.mount({container: document.getElementById("avatar-hero-container")!,
mode: "docked",
});
Controlling Avatar Animations
Asiyst.setAvatarState("greeting");
Asiyst.setAvatarState("thinking");
Asiyst.setAvatarState("idle");