The widget mounts into #agent-container and fills the container.

Code

import { init } from '@deepgram/agent-widget';

init({
  tokenFactory: () => fetch('/api/token').then(r => r.json()).then(d => d.token),
  agent: { /* ... */ },
  layout: 'inline',
  containerId: 'agent-container',
});