Overview

Add an AI agent to your website with a single script tag

What is the Agents embed

The Agents Embed is the fastest way to add an interactive AI agent to any website. Add a single script tag to your HTML and get a fully functional agent with video avatar, voice, and chat capabilities. No backend code, no bundlers, no build steps required.

When to use

  • You want the quickest integration (minutes)
  • You prefer no-code or minimal-code solutions
  • You want a pre-built UI that works out of the box
  • You need only minimal control / customization options

Customization options

Need more control? See D-ID Agents SDK for building fully custom UI.

Display modes

Widget

A floating action button that opens the agent in an overlay. Perfect for adding an agent to existing pages without changing your layout or design.

Compact

A floating window that is overlayed on top of your existing webpage, it can be expanded to full screen mode.

Full mode

Render the agent inside a specific container element you control. Gives you precise placement and sizing while keeping the pre-built UI.

How it works

The embed script loads a lightweight client that connects to your D-ID agent. It handles all the complexity of WebRTC connections, audio/video streaming, and real-time communication with the LLM and avatar services.

---
config:
  theme: redux
  look: neo
---
flowchart LR
    Website(["fa:fa-globe Your Website"]) <--> Client(["fa:fa-link Embed Client"])
    Client --> Agent(["fa:fa-robot D-ID Agent"])
    Agent --> STT(["fa:fa-microphone STT"])
    Agent --> Chat(["fa:fa-comments Chat"])
    STT --> LLM(["fa:fa-brain LLM"])
    Chat --> LLM
    LLM --> TTS(["fa:fa-volume-up TTS"])
    TTS --> Avatar(["fa:fa-user Video Avatar"])
    Avatar --> Client

All configuration happens through HTML data attributes on the script tag. The embed automatically handles initialization, connection management, error states, and cleanup.

Use cases

  1. Customer support Add a support agent to your help center or product pages. Customers get instant answers with a friendly face, reducing support tickets.
  2. Lead generation: Capture leads on landing pages with an interactive agent that qualifies prospects and answers questions before they bounce.
  3. Product demos: Let prospects explore your product through conversation. The agent can explain features, show use cases, and guide users through your offering.
  4. E-commerce assistance: Help shoppers find products, answer sizing questions, and provide recommendations with a personal touch.

Get started

Ready to add an agent to your site? Follow the Quickstart guide to integrate in 5 minutes.

FAQ

Yes. The embed supports all D-ID agent configurations including different avatar types, voice providers, and LLM models. The UI adapts automatically to your agent's capabilities.

The embed provides configuration options for position, layout, and initial state through data attributes. For programmatic control

You can use widget (overlay) mode, the overlay apears in expanded and compact modes. Or you can have the agent in dull size mode expanded inside a div in your website.

Client keys read only and are locked to specific domains you specify. Your agent will only work on domains in the allowed_domains list, preventing unauthorized use on other sites.

While the agent embed offer many customization options if you require full control - see D-ID Agents SDK for building fully custom UI.