Configuration Reference
Load options, variables, positioning, trigger styling, and feedback screens.
Lifecycle Events
Browser events the widget emits about its own state: open/close, conversation start/end, feedback.
Agent Actions
Custom browser events the agent dispatches on the host page, configured under Interactive Components.
Chat and Widgets
Text mode, chat-only embeds, calendar widgets, form widgets, and prompt examples.
Customization
Restyle and script the widget through stable data-ringg attributes.
Production QA and Security
Domain whitelisting, CSP, CDN pinning, browser QA, and launch checks.
Prerequisites
An active Ringg AI account.
An assistant configured for Webcall in the Ringg AI dashboard.
The assistant
agentId and the widget X-API-KEY from the generated embed code.Access to add JavaScript to your website HTML or tag manager.
Each staging and production domain added to the assistant’s Whitelist Domains list.
Quickstart
Configure the assistant for web calls
Open the assistant in the Ringg AI dashboard, go to the WebCall settings, and add your website domain to Whitelist Domains.Add staging domains separately, such as
staging.example.com, instead of using one broad production-only assumption.Add the widget snippet
Paste this near the end of the page, preferably before the closing For production, pin a tested CDN version instead of
</body> tag. Pick the bundle that matches your host page.- Modern bundler or module-aware page
- jQuery or legacy page
Use
dv-agent.es.js when the page is built with Vite, webpack, Next, or any other module-aware setup, or when the snippet runs inside <script type="module">.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 host page globals like jQuery’s $. Reach for the UMD build on any non-module page.latest after validating the widget in staging.Set the first configuration options
Keep the first launch small. Add variables and the default mode first, then layer on styling.
Configuration basics
| Option | Use it for |
|---|---|
agentId | The Ringg assistant to load in the widget. |
xApiKey | The widget API key from the dashboard embed code. |
variables | Runtime values passed into the assistant prompt, such as names or account IDs. |
defaultTab | "audio" for voice first or "text" for chat first. |
hideTabSelector | Set true for voice-only or chat-only experiences. |
buttons | Trigger button and call button styling or labels. |
widgetPosition | Fixed floating widget or absolute placement inside a page container. |
Test checklist
The widget script and stylesheet load without console errors.
The trigger button appears in the expected location on desktop and mobile.
Voice mode asks for microphone permission and can start and end a test call.
Chat mode opens if
defaultTab is set to "text".The domain is whitelisted in the assistant WebCall settings.
Your CSP allows the pinned CDN script and stylesheet.
Events or analytics listeners fire only once per user action.
