JavaScript Embed
Install and configure the Nexvio widget with a script tag.
JavaScript Embed
Use the JavaScript embed to install a Nexvio agent on a website without a framework-specific package.
<script>
window.nexvioConfig = {
showFloatingInitialMessages: true,
}
</script>
<script src="https://app.nexvio.ai/api/agent.js" async></script>
<nexvio-widget id="pk_..."></nexvio-widget>
Configuration
Set window.nexvioConfig before loading agent.js. Widget options can control identity, initial messages, floating initial messages, and runtime behavior supported by the widget package.
Public key
The id value is the agent public key from the dashboard Widget tab. Public keys are safe to use in the browser; secrets for identity verification are not.