@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
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
localhostin development)
What’s configured server-side
Everything about how the widget looks (colors, position, buttons, branding, allowed domains) lives on the agent’swidget 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:
- Widget Customization: colors, position, buttons, branding
- Allowed origins: only listed domains can embed the widget and hold a conversation
- System messages: welcome, idle, exit messages
Next steps
Widget Customization
Configure colors, position, buttons, and branding for the widget.
Install the widget
Full setup guide for the React widget.