Socket Direct WebRTC Iframe Sandboxed embed MIT License TypeScript ready

Kaltura Avatar SDK

Embed AI avatar conversations in any website. Real-time video, speech recognition, dynamic context injection, and rich visual content (charts, tables, code, diagrams) — all from a few lines of JavaScript.

Choose Your Integration

Both SDKs connect to the same Kaltura AI Avatar backend. Choose based on how much control you need:

Socket SDK

Full control over video, audio, events & visuals

Direct Socket.IO + WebRTC connection. You own the video element. Built-in GenUI rendering (charts, tables, code, diagrams). Extensible plugin system. ~100KB + Socket.IO.

Documentation · Live Demo

Iframe SDK

Drop-in embed with zero configuration

Sandboxed iframe embed. Zero dependencies, ~6KB minified. Automatic UI handling. Ideal for quick integrations or when you need browser isolation.

Documentation · Basic Demo

Quick Start (Socket SDK)

<div id="avatar" style="width:800px;height:600px;background:#000"></div>

<script src="https://cdn.socket.io/4.7.2/socket.io.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/kaltura/conversational-avatar-embed-sdk@latest/sdk-socket/dist/kaltura-avatar-sdk.js"></script>

<script>
const sdk = new KalturaAvatarSDK({
  clientId: 'YOUR_CLIENT_ID',
  flowId: 'YOUR_FLOW_ID',
  container: '#avatar'
});

sdk.on('avatar-speech', ({ text }) => console.log('Avatar:', text));
sdk.connect();
</script>

Use with AI Coding Agents

This repo works as an instant skill for Claude, ChatGPT, Copilot, and any AI coding agent. Point your agent at this repo and tell it what to build:

"Build me a customer onboarding avatar. My client ID is 123456, flow ID is agent-7."

The agent generates both the app code (HTML + JS) and the Knowledge Base prompt (paste into Kaltura Studio). See AGENTS.md for the full reference.

Live Demos

Socket SDK DemoGenUI, events, transcript, full control AT&T Seller HubDual-avatar sales coaching HR AvatarInterview simulations + AI analysis Code InterviewPair programming + live code context Basic DemoMinimal iframe starter example

Key Features

Links