Skip to main content
The @aiteammate/agent-widget package exposes a single React component, TrugenAgentWidget. Its full appearance and behavior are configured server-side via the agent’s widget config — the props below are what you pass at render time from your app.

Install

Import the stylesheet once (typically in your app’s root layout):
Then render the component with your agent ID:

Props

Requirements

  • React 19+ — the widget declares React 19 as a peer dependency
  • Modern browser — Chrome 90+, Edge 90+, Firefox 88+, Safari 14+
  • HTTPS — camera and microphone access is only granted on HTTPS origins (or localhost in development)

What’s configured server-side

Everything about how the widget looks — colors, position, buttons, branding, allowed domains — lives on the agent’s widget config. Change it in the Studio or via the API and every embed of the widget picks up the change on the next session. Server-side settings covered on separate pages:

Next steps

Widget Customization

Configure colors, position, buttons, and branding for the widget.

Install the widget

Full setup guide for the React widget.