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.
Before You Start
Section titled “Before You Start”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
idcolumn, 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
Set Up Search
Section titled “Set Up Search”-
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.
-
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.
-
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.
-
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.
-
Load the Widgets. Paste these two scripts into the
headof your page:<scripttype="module"src="https://cdn.jsdelivr.net/npm/vviinn-widgets@latest/www/build/vviinn-widgets.esm.js"></script><scriptnomodulesrc="https://cdn.jsdelivr.net/npm/vviinn-widgets@latest/www/build/vviinn-widgets.js"></script>The
latesttag always loads the newest stable version. To pin a version or install with npm or a framework, see Install the Widgets. -
Add the Search Bar and the Product List. Paste this where the search should appear, and replace
YOUR_READ_ONLY_TOKENin both elements with your token:<vviinn-text-searchtoken="YOUR_READ_ONLY_TOKEN"locale="en-US"></vviinn-text-search><vviinn-resultstoken="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. Setlocaletode-DEfor German.
Check That It Works
Section titled “Check That It Works”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.
Next Steps
Section titled “Next Steps”- Text Search: tune the Text Search campaign, including Auto-Suggest and filters.
- Build a Search Page: add filters and Visual Search to the page.
- Redirect Search to a Results Page: put the search bar in your header and the results on their own page.
- Widgets: add recommendations with the Discovery Slider and other widgets.