The Monday Brief Every week: what your customers asked for, what they couldn't find, and the one fix worth making first. See a brief →
ProblemHow it worksSafe to go liveIntelligenceFree auditPricingBlogDocs

Install the widget

Copy the snippet from Installation in the dashboard: it already contains your client ID. It looks like this:

<script src="https://askvio.web.app/widget.js"></script>
<script>
  window.askvioWidget.init({
    clientId: "YOUR_CLIENT_ID",
    agentId: "default"
  });
</script>

Load widget.js without async before calling init, as above. If you load it asynchronously, call init from the script's onload instead.

Method 1: Google Tag Manager (recommended)

  1. Create a new Custom HTML tag in your container.
  2. Paste the snippet.
  3. Trigger it on All Pages, or only on the pages where you want the assistant.
  4. Preview, then publish the container.

Method 2: Directly in your site's code

Paste the snippet before the closing </body> tag on every page where you want the assistant.

Options

OptionDescription
clientIdYour site's ID (required).
agentIdWhich agent to load. Defaults to default.
environmentprod (default) or test. Use test on staging sites (see Multi environment).

Check that it works

  • Open your site and ask a question.
  • In the browser console, window.askvioWidget.getWebMcpStatus() shows whether AI-agent tools were registered.
  • If the widget doesn't appear, look for an [AskVio] message in the console. The most common causes are a domain missing from the origin allowlist and a site over its monthly question limit, in which case the widget stays hidden on purpose.