Overview
Agents Streams V2 is the streaming layer for Expressive Agents. It is built on LiveKit.
Note: V2 works only with Expressive Agents. Other agent types continue to use Agents Streams V1.
How It Works
flowchart LR
App(["fa:fa-laptop Your App"]) --> Session(["fa:fa-key Session Credentials"])
Session --> LiveKit(["fa:fa-signal LiveKit Room"])
LiveKit -- "speak / chat" --> Agent(["fa:fa-circle-user Expressive Agent"])
Agent -- "video + events" --> LiveKit
LiveKit --> App
After you create a session, your app connects to a LiveKit room using the returned URL and token. All commands (speak, chat) and responses (video events, partial answers) flow through the LiveKit data channel — no separate HTTP calls once connected.
Integration Paths
Pick the path that matches what you are building.
One script tag, no backend. Best for marketing sites, portals, and landing pages.
Client-side SDK for custom UI in web apps. Session creation and LiveKit wiring are handled for you.
Direct LiveKit access for backend orchestration and native mobile apps. Full control over rooms and data channels.
| Path | Setup | Code required | Best for |
|---|---|---|---|
| Embed Code | Instant | None | Content sites, quick embeds |
| D-ID SDK | Moderate | JavaScript | Custom web UIs |
| LiveKit SDK | Advanced | Backend + frontend | Backend services, native mobile |
FAQ
Updated 1 day ago
