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.

Embed Code

One script tag, no backend. Best for marketing sites, portals, and landing pages.

D-ID Agents SDK

Client-side SDK for custom UI in web apps. Session creation and LiveKit wiring are handled for you.

LiveKit SDK

Direct LiveKit access for backend orchestration and native mobile apps. Full control over rooms and data channels.

PathSetupCode requiredBest for
Embed CodeInstantNoneContent sites, quick embeds
D-ID SDKModerateJavaScriptCustom web UIs
LiveKit SDKAdvancedBackend + frontendBackend services, native mobile

FAQ