Skip to main content

What the widget does on your pages

This page lists everything the Monoverse widget does once it runs on your site, whether you add the script tag, one of the React, Vue or Next.js packages (they add the same scripts), or a data-tenant-token embed. Read it before you install, and point your privacy policy at it.

Scripts​

ScriptLoaded fromWhen
widget-voice.js or widget-chat.jshttps://api.monoverse.tech/widget/your tag or package adds it
widget-harvest.jshttps://api.monoverse.tech/widget/right after the widget starts, on every install with a publishable key
pcm-worklet-processor.jshttps://api.monoverse.tech/voice bundle only, when the microphone turns on
ThumbmarkJS 1.9.1https://cdn.jsdelivr.net, pinned by a sha384 integrity hashonly with data-trust-fingerprint="1"

data-api-base, data-cdn, data-worklet-url and data-thumbmark-url point these at other hosts. The widget loads nothing else: no fonts, images, analytics or advertising scripts.

What it adds to your page​

  • One <div id="monoverse-widget-host" data-monoverse="host"> at the end of <body>. The widget draws everything inside its closed shadow root, so none of its styles reach your page.
  • preconnect and dns-prefetch links in <head> for https://api.monoverse.tech.
  • The widget-harvest.js script at the end of <body>, and the ThumbmarkJS script in <head> when you turn it on.
  • The global window.Monoverse, and until 2027-04-30 its old name window.VoiceBot for the same object. When your page sets neither window.MonoverseBridge nor window.VoiceBotSyncBridge, the widget creates window.VoiceBotSyncBridge.
  • A wrapper around history.pushState and history.replaceState that calls your originals and notes the navigation. The widget removes it when it is destroyed.
  • A click listener on document, and observers of <title> and of links added to the page.
  • During a site walk only, one hidden <iframe> at a time, removed once its links are read.

What it reads from your page​

So that the assistant knows where the visitor is and what they see, the widget reads:

  • <html lang>, or the browser's language when the page sets none;
  • the address path, the <title> and the first <h1>, each cut to 120 characters, and the classes on <body>, which tell a product page, a category, the cart and the checkout apart;
  • the ids of up to 48 products shown on the page, the cart count and total from your cart badge, and the filter and sort parameters in the address (filter_*, pa_*, orderby, min_price, max_price);
  • up to 50 links to your own site with their text, cut to 80 characters, skipping any link whose query carries personal data or a secret;
  • the text, cut to 80 characters, and the target path of each link or button the visitor clicks;
  • the referrer, the landing address and its utm_* tags;
  • whatever your window.MonoverseBridge or window.VoiceBotSyncBridge exposes, when you provide one.

Network calls​

To Monoverse, at https://api.monoverse.tech:

CallWhenCarries
POST /api/v1/widget/public-tokenon load, with a publishable keythe pk_ key, the page language and the stored visitor pass; the server refuses a key used from an origin you did not register for it
GET /api/v1/widget/availabilityon load, with a data-tenant-tokenthe token
WebSocket /api/v1/widget/wswhen the visitor opens the assistant; on load with data-eager; on launcher hover with data-prewarm; on the next page of an open conversationthe conversation, the visitor identifier and its pass, voice audio both ways, the page details above, the last 8 pages visited, clicks, cart changes and the outcome of each page action
POST /api/v1/widget/conversations/<id>/ratingwhen the visitor rates the conversationthe rating and the visitor identifier
POST /api/v1/widget/conversations/<id>/continuationswhen a conversation that carried the visitor identifier endsthe key, the visitor identifier and its pass
POST to the address the assistant's form nameswhen the visitor submits a form shown inside the widgetwhat the visitor typed into that form
POST /api/v1/ingest/page-hintsee Page hintsthe key and the page address
POST /api/v1/ingest/site-walk/page and /closeonly during a site walk, see Page hintsthe key, the walk id and each page address

None of these HTTP calls carries a cookie.

To your own site, on WooCommerce only: the add_to_cart endpoint (?wc-ajax=add_to_cart, or the Store API's /wp-json/wc/store/v1/cart/add-item) when the assistant adds a product for the visitor, and, with the Monoverse WordPress plugin, cart-snapshot under the REST base the plugin publishes after the cart changes, /wp-json/voicebot-sync/v1/cart-snapshot with a plugin before 1.0.

Page hints​

widget-harvest.js tells Monoverse which of your pages a visitor opened, so the assistant can learn them:

  • On each page load, once the browser is idle and while the widget is closed, it sends POST https://api.monoverse.tech/api/v1/ingest/page-hint with two fields: your public key and the page address without its query string or fragment. It sends no markup and no page text.
  • The server accepts only an https address on the domain the key is bound to, or its www. host, once you have verified that domain, and reads each address at most once a day.
  • The server then downloads the page itself, honouring your robots.txt (a group for MonoverseBot or VoicebotCrawler applies first, then *) and refusing a redirect off your domain, renders a page that needs JavaScript on its own renderer, and adds what it reads to the assistant's knowledge base as a page, never as a product.

When the page address carries vb_walk, the id of a site walk opened from your Monoverse account, the script instead walks up to 60 pages of your own site, starting with the open one and loading each next one in a hidden frame, sends each page address to /api/v1/ingest/site-walk/page, and ends with /api/v1/ingest/site-walk/close.

Storage​

Everything stays on your own domain; the widget sets no cookie anywhere else.

WhereKeyHoldsWritten
cookievb_visitorthe visitor identifierat the visitor's first engagement
cookievb_conversationthe open conversation's idwhen a conversation starts
localStoragevb_session_id, vb_conversation_id, vb_voice_state, vb_ui_open, vb_lang, vb_last_url, vb_resume_atthe open conversation, so it survives a page loadduring a conversation
localStoragevb_entry_ctxthe referrer, landing address and utm_* tagsonce, when the first conversation connects
localStoragevb_consent, vb_visitor_id, vb_visitor_passthe consent decision, the identifier mirror and its passsee Consent contract
localStoragevb_leader_leasewhich tab holds the conversationonly in a browser without Web Locks
localStoragemonoverse_debugthe debug log switch; the widget also reads voicebot_debugonly with data-debug
sessionStoragevb_visitor_session, vb_visitor_passthe visitor identifier and its pass for this tabat the visitor's first engagement
sessionStoragevb_trailthe last 8 pages (path, title, language) and up to 5 clicks not yet senton every page load

Both cookies are first-party, Path=/; SameSite=Lax, and Secure on https. vb_visitor follows the Consent contract: a session cookie, or 365 days with consent. vb_conversation is a session cookie until window.Monoverse.setConsent(true) records consent, then it is kept 365 days. Open tabs of your site coordinate through the voicebot:widget:bus broadcast channel and the voicebot:session:leader Web Lock.

Microphone​

  • Only the voice bundle uses the microphone, and only after the visitor presses its voice button. The browser asks the visitor for permission the first time.
  • While the conversation is live, the widget streams the microphone audio to Monoverse over the WebSocket.
  • When the visitor opens another page of your site within 60 seconds during a voice conversation, a desktop browser turns the microphone back on by itself on the new page; on iOS the visitor taps once to continue.
  • Switching to chat or ending the conversation stops the microphone.

Actions on your page​

During a conversation the assistant can act on the page for the visitor: open a page of your site or go back, scroll to and highlight an element, show a short notice, filter, sort or search, fill a field, pick an option or tick a box, add to or change the cart, choose a product variant, switch the site language, open a popup, and submit a form your site declares in MonoverseBridge.formMap.

  • Each action answers a request of the conversation; the browser refuses any other.
  • The browser refuses a navigate action to another origin, and caps writes at 10 a minute.
  • It never fills a password or card field, and never submits a form through a payment button.
  • A form submission and a language switch wait until the visitor confirms in the widget.
  • Where you register your own handler for an action, the widget calls yours instead of its built-in one; see Tool handlers & deep links.

What it never does​

  • It never sends the markup of your pages.
  • It never sends what visitors type into your own forms.
  • It never sets a cookie on a domain other than yours.
  • It never loads a script beyond the four listed above.