Skip to main content
This page covers the frontend configuration object passed to loadAgent. Configure assistant behavior, tools, and widget metadata in the Ringg AI dashboard; use this object for page-level runtime settings.

CDN loader

The widget script exposes loadAgent after the CDN bundle finishes loading. Two builds are published: pick the one that matches how your host page loads JavaScript.
The ES bundle is only safe inside module-aware setups. Loading dv-agent.es.js as a plain <script> leaks internals onto window and can clobber globals like jQuery’s $, which breaks the host page. Use dv-agent.umd.js on any non-module page.
Use latest while exploring in development. For production, pin the tested CDN version and update CSP entries to match the bundle (dv-agent.es.js or dv-agent.umd.js) you ship.

Base configuration

Core options

Theme

Pass theme to color the widget. Colors accept a solid value or a CSS gradient string.

Variables

Use variables for page-specific context that the assistant prompt expects.
Variables are sent from the browser. Do not put secrets, internal tokens, or sensitive data in the widget configuration.

Mode controls

For chat setup, see Chat and Widgets.

Widget positioning

Positioning controls are supported from v1.0.19+.
Fixed mode is the default. The trigger floats over the page and is anchored to the browser viewport.

Trigger button customization

Trigger button customization is supported from v1.0.19+.

Call button labels

Feedback screen

Use feedbackScreen to customize the post-conversation feedback copy.