Skip to content
Panel(opens in a new tab)

Quickstart: Add Search to Your Shop

In this quickstart, you sign up in Panel, import your products and add a search bar with a result list to a page of your shop. Allow about 15 minutes for the steps, plus the time your first import takes. Building your own front end instead? Follow Quickstart: Make Your First Request. Connecting an AI agent? Follow Connect an Agent.

You need:

  • an email address that isn’t registered in Panel yet (if your company already uses vviinn, Get Access to Panel explains how to join it)
  • your product feed: a delimited text file, such as CSV, with a header row and an id column, at a URL vviinn can reach (the Product Feed Format lists every column)
  • a page of your shop, or a test page, whose HTML you can edit
  1. Sign up in Panel. Go to Panel, sign up with your email address and a password, and confirm your address through the link vviinn emails you. Sign in, select Start Free Trial and enter your company information, with your shop’s URL under Website. When onboarding is complete, sign in again with your email address and password.

    If Panel says that no free trial is available at the moment, contact support@vviinn.com.

  2. Check what the trial set up. The trial creates a company, a two-week trial plan and a site for the website you entered, with a default Net (AI embedding model) turned on. It also creates a default Text Search campaign and a default Similar Products campaign. In the Panel menu, open Campaigns and check that the Text Search campaign is listed and active.

    The Search Bar uses this campaign, so there’s nothing to configure for now. Campaigns explains what a campaign controls.

  3. Connect your product feed. On Site → Data Source, open Sources, enter the URL of your product feed and select Save Settings and Start Import.

    Your products start to appear under Products in the Panel menu shortly after the import starts. Until vviinn has analyzed all of them, which can take up to 24 hours, some may be missing. Site → Data Source → Import History shows whether the import succeeded. To import every day, or to add more feeds, see Connect Your Product Feed.

  4. Copy your read-only token. On Site → API Credentials, select Token (Read Only) to copy it. The token is safe to use in your shop’s public HTML. Authentication explains the token and the site credentials.

  5. Load the Widgets. Paste these two scripts into the head of your page:

    <script
    type="module"
    src="https://cdn.jsdelivr.net/npm/vviinn-widgets@latest/www/build/vviinn-widgets.esm.js"
    ></script>
    <script
    nomodule
    src="https://cdn.jsdelivr.net/npm/vviinn-widgets@latest/www/build/vviinn-widgets.js"
    ></script>

    The latest tag always loads the newest stable version. To pin a version or install with npm or a framework, see Install the Widgets.

  6. Add the Search Bar and the Product List. Paste this where the search should appear, and replace YOUR_READ_ONLY_TOKEN in both elements with your token:

    <vviinn-text-search
    token="YOUR_READ_ONLY_TOKEN"
    locale="en-US"
    ></vviinn-text-search>
    <vviinn-results
    token="YOUR_READ_ONLY_TOKEN"
    locale="en-US"
    ></vviinn-results>

    The Search Bar (vviinn-text-search) sends the shopper’s query, and the Product List (vviinn-results) on the same page shows the results. Set locale to de-DE for German.

Open your page, type a word that describes one of your products and press Enter. Product cards from your catalog appear below the search bar. This is how it looks with a demo catalog:

If no products appear, check that the import on Site → Data Source → Import History succeeded, that you copied the whole token, and that the Text Search campaign is active. Troubleshooting: Panel and Troubleshooting: Widgets cover more cases.