DOCS

Install Vopio

One script tag makes your site voice-controllable. This page covers the snippet, configuration, privacy and how to give the copilot better labels.

Quickstart

  1. Sign in at app.vopio.ai and create a site.
  2. Add every domain the widget will run on, such as example.com or *.example.com. Keys only work on their site’s domains.
  3. Copy the snippet and paste it just before </body>:
<script src="https://cdn.vopio.ai/v1/vopio.js"
        data-site-key="pk_live_…" async></script>

A microphone button appears in the bottom-right corner. No audio and none of the page’s content is sent until a visitor starts a conversation.

Use the pk_test_… key while developing. Test keys also work on localhost and 127.0.0.1, on any port.

Shopify

  1. In app.vopio.ai, add your store’s domains to the site: your own domain with and without www (example.com, www.example.com) and your your-store.myshopify.com address.
  2. In Shopify admin, open Online Store → Themes. On your live theme, open the … menu and choose Edit code.
  3. Open layout/theme.liquid, paste the snippet on the line just above </body>, and click Save.

The microphone appears on every storefront page. It isn’t added to Shopify’s checkout, which doesn’t use your theme’s layout.

  • The snippet belongs to the theme. When you publish a different theme or install a theme update as a new copy, paste it into that theme’s theme.liquid too.
  • If a chat bubble (Shopify Inbox, Gorgias, Tidio…) already sits in the bottom-right corner, add data-position="bottom-left" to the snippet.
  • To keep the copilot off account pages, add /account to Disabled paths in your site’s settings.

WordPress and WooCommerce

The Vopio Voice Copilot plugin adds the snippet for you: install it, open Settings → Vopio and paste your live key. It isn’t listed on wordpress.org yet. Until it is, ask for the plugin zip at hello@vopio.ai, or paste the snippet into your theme’s footer.

Snippet attributes

AttributeDefaultMeaning
data-site-keyrequiredYour public site key, pk_live_… or pk_test_….
data-server-urlwss://api.vopio.aiVoice server. Only change it when self-hosting.
data-colorvopio redMicrophone colour, as #rrggbb or #rgb. Starter and Growth plans.
data-wordmarkshownoff hides the vopio wordmark under the microphone. Starter and Growth plans.
data-positionbottom-rightbottom-right, bottom-left, top-right or top-left.
data-themedarkPanel theme: light or dark.
data-titleVoice AssistantThe assistant’s name on the button and panel.

The script starts itself from these attributes. If your page calls VoiceCopilot.init() itself, auto-start is skipped.

JavaScript config

For more control, load the script without data-site-key and call init:

<script src="https://cdn.vopio.ai/v1/vopio.js"></script>
<script>
  VoiceCopilot.init({
    siteKey: 'pk_live_…',            // required
    // serverUrl: 'wss://api.vopio.ai', // default
    privacy: {
      mode: 'standard',              // 'strict' | 'standard' | 'full'
      excludeSelectors: ['#account-panel'],
      disabledPaths: ['/checkout'],
      allowedActions: ['navigate', 'scroll_to', 'click_element'],
    },
  });
</script>

Developers using a bundler can install the SDK from npm instead (coming soon) and pass the same options.

Privacy modes

Masking happens in the visitor’s browser, before anything is sent.

ModeWhat the copilot reads
standard (default)The visible page and the labels of controls. Typed values are sent only as “filled”.
strictOnly elements with data-voice-id and text inside [data-voice-section]. Values are never sent.
fullThe visible page including typed values.

In every mode, the copilot never reads or types into password fields, card fields (cc-* autocomplete), one-time codes, PIN, CVV, SSN or IBAN fields, or hidden inputs. Card numbers are redacted from all text.

  • excludeSelectors: regions that are never read or acted on.
  • disabledPaths: pages where the widget is hidden and any session ends.
  • allowedActions: the only commands the copilot may run, for example navigate, scroll_to, click_element, type_text, toggle_switch, select_option. Empty means all.
  • redact(text): your own redaction, applied to every piece of text the scanner reads.

The same settings live on your site at app.vopio.ai (privacy mode, excluded selectors, disabled paths, allowed actions), so snippet installs can use them without code. At the start of each session the browser combines them with the page’s own config, and the stricter rule always wins: the stricter mode, every excluded selector and disabled path from both, and only actions both allow. Nothing about the page is sent before those settings are applied.

Labelling your page

Vopio finds controls on its own, using accessible labels, roles and semantic HTML. A few attributes make it precise:

<button data-voice-id="add-to-cart">Add to cart</button>

<section data-voice-section id="shipping">…</section>

<div data-vopio-private>Order history — never read</div>

<input name="nickname" data-vopio-unmask>  <!-- value may be sent -->
  • data-voice-id: a stable name for an element. The copilot matches the label visitors see, and the id keeps that match reliable when copy changes.
  • data-voice-section: a section the copilot can scroll to and read (the only text read in strict mode).
  • data-vopio-private: a region that is never read or acted on.
  • data-vopio-unmask: sends one field’s value in standard mode.

Custom tools

Give the copilot abilities beyond the page, such as looking something up in your API. The handler runs in the browser and returns what the copilot should say or answer from:

VoiceCopilot.init({
  siteKey: 'pk_live_…',
  customTools: [{
    name: 'check_order_status',
    description: 'Look up the status of one of the visitor’s orders',
    parameters: {
      type: 'object',
      properties: { order_id: { type: 'string' } },
      required: ['order_id'],
    },
    // Runs in the visitor's browser and calls your own API, which
    // must check that the order belongs to the signed-in visitor.
    handler: async ({ order_id }) => {
      const id = encodeURIComponent(order_id);
      const response = await fetch('/api/orders/' + id);
      if (!response.ok) return { ok: false, result: 'Order not found' };
      const order = await response.json();
      return { result: 'Order found', data: { status: order.status } };
    },
  }],
});

Return { ok: false, result: '…' } when the tool couldn’t do what was asked, so the copilot says so instead of guessing.

Site map and documents

The copilot knows your whole site, not only the page a visitor is on, so it can answer “where do I change my password?” from the home page and take them there link by link. It learns your pages two ways:

  • Your public pages. Our crawler, VopioBot, reads your robots.txt, the sitemaps it lists (or /sitemap.xml), your llms.txt, and each page’s title, description, headings and links. It reads only your site’s own domains, once a day once a visitor has used the copilot there, and when you press Rescan in the console. It follows robots.txt, skips pages marked noindex and your disabled paths, and leaves out data-vopio-private regions and simple excluded selectors. To keep it out, add User-agent: VopioBot / Disallow: / to robots.txt.
  • Visits. The paths of the pages visitors open during a conversation, and the moves between them. Never what those pages show: ids in a path are collapsed (/orders/123 becomes /orders/:id) and query strings are dropped.

In the console’s Knowledge tab you can name or describe a page in your own words, or hide one the copilot should never offer. You can also add documents (an FAQ, a returns policy, a manual) as text or Markdown, or by the address of a page on your site; the copilot searches them, by their words and by what they mean, when the page doesn’t answer a question, and answers only from what they say. Your plan sets how many documents a site can hold.

Multi-step tasks

For a request that takes several actions or pages, such as “choose walnut, add it to the cart and check out”, the copilot plans the steps first and shows them in its panel as it works through them. When a step would submit, buy, book, send or delete something, it tells the visitor the plan and waits for their yes; until then, the page doesn’t act on it. If a step fails, it says which one and asks whether to retry or stop. A plan in progress carries on across full page loads.