Skip to main content

Product Matching

A detailed explanation of quiz logic, how to link products and when to use the excluded products mechanic.

Written by Ana Bunaiasu

Watch the video below to learn how product matching works, how to link products to answers, and when to use excluded products. The video also shows how to use an AI agent through Lantern’s MCP integration and build your Results Page through simple conversational prompts. It includes example prompts and explains each step.

For detailed instructions on setting up product matching manually, follow the written guide below.

Product matching works by linking products to the answers in your quiz. With default settings, products that match more of the customer's answers rank higher in their recommendations, and each product's match score shows how well it fits those answers.

If you want certain answers to have more influence over the order of recommendations, you can optionally customize their answer weights. This is explained in the Answer Weights section below.

In the following example, we’ll use a pet food quiz to demonstrate which products are best suited to a pet based on their needs and sensitivities.

If you are creating a quiz where the results are focused more on the customer's profile (for example, a skincare routine based on a customer's skin type), and you require multiple results categories (for example, AM and PM routines), then we recommend you check out the following article to find out more about building your results page using dynamic content blocks.

Match Score

The match score indicates how well a given product matches a customer's preferences based on their answer selection. This can be expressed as a percentage or in an “x/y” format, where y is the number of questions in the quiz and x is the number of times that product was a match for a question’s answer.

Image showing an example of a match score in an x/y format in the Results Page.

For example, if a quiz has a total of 6 questions (not including input field questions or budget questions) and a particular product is linked to answers from 4 of them, its match score will be 4/6.

Linking Products and Variants

Under the Products tab, each answer from your quiz will have two sections: Matched Results and Excluded Products. For each of the 2 sections, you can connect either products, variants, or entire collections.

Image showing the Products tab in Lantern's quiz builder, where answers can be linked to matched results or excluded products.

If you later change a choice question's type with Change type, for example from One answer to Several answers, you don't need to recreate the question. Its answers keep their product matches. Some type-specific content, such as images, may be lost when you switch.

Matched products

Use Match Products to link items: search by name in Search products, or click Add filter → Tags / Collection / Types / Vendors / Categories, enter your value (e.g., Dry dog foods), and click Select.

Image showing the Match Products selector with a Search products bar and an Add filter control set to Tags, filtering the list to tagged items (e.g., Dry dog foods) with selectable checkboxes.

Optionally change the Search by dropdown to Product title / Product ID / Barcode / SKU.

When linking products with variants, an additional drop-down menu will be displayed on the results page underneath the product title that allows customers to select a variant to add to cart.

Image showing the Lantern quiz Results page where a recommended product displays a variant selector dropdown beneath the product title, allowing the customer to choose a variant before adding to cart.

Please note that product variant drop-downs will show all the all variants in the order they are found on the product’s listing page.

The variant picker drop-down will be limited to a maximum of 20 variants. If the product has more than 20 variants, the Add to cart button will be replaced with a ‘Choose options’ button and the customer will need to be redirected to the product page to make their selection before they can check out.

Image showing the quiz Results page where a recommended product displays a Choose options button (no variant selector), indicating 30+ variants; the button is highlighted, and an arrow points to the Shopify product page that opens after clicking, where the customer selects a variant before checkout.

Matching Variants

Certain quizzes will require the results to be specific product variants for example, a foundation shade matching quiz or a mattress size recommender. In this scenario, you’ll need to link variants instead of products.

The process for linking variants is exactly the same, click the Match Variants button instead. Learn how to recommend the correct product variant in your quiz.

Image showing the Match Variants interface, allowing users to link specific product variants to quiz answers.

Matching Collections

This will allow you to link all products inside a specific collection directly to your quiz.

Please note: when matching collections, result matching is done at the product level, not at the variant level.

Image showing the Match Collections option for linking entire Shopify collections to a quiz answer.

Collections in Shopify let you group your products by conditions such as price range, product type or tags. This makes them an easy way to organize your store's items, which in turn simplifies creating your quiz. Find out more about the benefits of using Shopify collections for quiz product matches.

Once a collection is linked, you can use our resync functionality to make sure that you keep it up to date whenever you add new products to your store or make changes to existing products.

GIF showing how to use the Resync feature on the Products tab in Lantern to manually update product collections after changes in Shopify.

Match All Feature

The Match All feature is designed to boost the match score of all products added to the quiz for questions that are only there for data-gathering purposes.

Image showing the Match All toggle in a quiz question’s product matching settings.

In the example quiz there is a question asking about the type of toys their dog might prefer. The answer to this question doesn't impact the product recommendations at all, however, we still want the products in the quiz to gain a match score point regardless of the answer selected, so for this reason, we enable the Match all toggle.

Image showing an example of a quiz question using the Match All toggle for non-impactful answers.

‍Please note: Match all is not designed to replace product matching altogether. Key products, variants, and collections still need to be actively added to the quiz to return results.

Excluded Products

In most cases, you’ll only need to add matched results. Excluded products are for very specific scenarios where you absolutely do not want certain products to be included in the results if a specific answer is selected.

For example, one question in our pet food quiz asks about any food allergies or sensitivities the pet may have. If a pet is allergic to shellfish, we should match the relevant product and, most importantly, exclude all products that specifically contain shellfish to ensure you will never recommend a product that contains a specific allergen to someone who clearly selected their pet as allergic to it.

Image showing product matching for the Shellfish answer in Lantern, with three products under Matched Results and three under Excluded Products, both sections highlighted.

If you exclude a product (or a specific variant) from an answer, and that answer is selected when taking the quiz, the excluded product (or variant) will not be included in the results regardless of the match score it accrued throughout the quiz.

Similarly, you can exclude entire collections from specific answers by linking them under the Excluded Products section of each answer.

To make it easier to exclude large numbers of products at once without having to link them manually, we've introduced an Exclude all other option. This will Exclude All Other Products, Variations, and collections (except the ones that are a positive match for this question).

Default products

If a customer's answers don't match any products, you can show fallback recommendations instead of the No results message. You choose these products, variants or collections in the Default products setting.

To choose your default products:

  1. Open the Products tab of your quiz.

  2. Go to When nothing matches → Default products.

  3. Click Add Products, Add Variants or Add Collections, then choose the items you want to recommend.

Products tab with Default products selected under When nothing matches, listing five chosen products and the Add Products, Add Variants and Add Collections links


When nothing matches, your default products appear in the order you set, on your usual Results Page with its heading and text. Match scores are not shown for them.
​
If you leave Default products empty, customers whose answers match nothing see the No results
message and its button instead.

To learn how to customize the heading, text and other Results Page settings, see Set-up your Results Page.

Budget Questions

A budget question filters your recommendations by price. Customers choose a price range, and Lantern keeps only the products matched by their other answers that fall within that range.

For example, if their other answers match five products and two are within their budget, those two remain in the results.

The Products tab in the Lantern quiz editor, showing the question 'What's your monthly budget for your dog's food?' with 'This is a budget question' checked. Each answer has its own price range in USD: Under $30, $30 to $60, $60 to $100, and $100 or more.

Budget questions work differently from product-matching questions:

  • They filter products rather than add them. You must match products through other questions first.

  • They use price ranges instead of matching settings. You cannot match or exclude products, or assign answer weights, on a budget question.

  • They do not affect match scores. If a product matches all three of a customer’s preference questions, its score stays 3/3 after the budget filter is applied. The budget answer decides whether the product stays in the results, not how well it matches.

Set up a budget question

To setup abudget question:

  1. Add a single-choice or multiple-choice question with an answer for each price range.

  2. Open the Products tab and select the question.

  3. Enable This is a budget question.

  4. Set the price range for each answer.

Quiz builder question 17 with the highlighted, unticked

For example, a pet food quiz could offer:

  • Under $30.

  • $30–$60.

  • $60 or more.

Prices on a boundary are included in both neighboring ranges. A product priced exactly $60 qualifies for both $30–$60 and $60 or more.

With a single-choice question, customers select one range. With a multiple-choice question, they can select several ranges and see matched products from any of them.

Currency: Enter price ranges in your store’s currency. Writing a different currency in the answer label does not convert the prices. Budget questions do not support multi-currency matching.

If no products are within budget

Lantern shows no products if none of the products matched by the customer’s other answers fall within their selected range—even if your store has other products at that price.

Make sure your other questions match products across the budget ranges you offer. A quiz containing only a budget question will not recommend products.

Answer Weights

Answer weights are optional. Use them to give certain answers more influence over the order of your recommendations.

By default, every answer in your quiz has a weight of 100. You can adjust this weight up to 10,000, giving particular answers more influence over the final product recommendations.

Image showing how to use custom answer weight input field and slider where users can assign different levels of influence to each answer.

The higher the weight you assign to an answer, the higher the products linked to that answer rank when it is selected.

Learn how products collect points and how changing weights affects their ranking in What are answer weights?

Bulk import products using a CSV file

Instead of linking products one answer at a time, you can set up product matching with a CSV file. There are two ways to do this, depending on whether the questions and answers already exist in your quiz.

Adding new questions and answers

To add new questions and answers, open your quiz in the Quiz Builder and click Add Page → Import from a Spreadsheet. The file can include product matching for those answers, or you can add matching later. The imported questions are added to the quiz you have open.

Two steps in the Quiz Builder: first, the Add Page button below the quiz's pages is outlined; second, Import from a Spreadsheet is outlined in the Page Type list.

Change matching for answers already in your quiz

To change matching for answers already in your quiz, use the Spreadsheet card in the Products step.

  1. Click Export to download your current product matching.

The Products step of the Lantern quiz builder, showing the Spreadsheet card under the Collections card. A red box outlines the Export button, and the Import button sits next to it.

  1. Edit it in Excel or Google Sheets.

  2. Click Import to upload your changes.

The Products step of the Lantern quiz builder, showing the Spreadsheet card below the Collections card. A red box outlines the Import button, next to the Export button.

Imported changes are saved to your quiz's draft. Publish the quiz to apply them to the live quiz.

Learn how to prepare the file and use both options in Create a quiz and import product matching from a CSV file.

Customizing your results page and sorting recommendations

For more information on how to set this up please check out our help article on how to set up your results page.

If several products end up with the same total answer weight, Sorting Priority decides which comes first. You can sort them by different criteria, such as their price, alphabetical order, Best selling, Newest or random, which can be done from the Results Page settings menu as well. Learn more in Match Score: Thresholds, Product Sorting and Exclusions.

Did this answer your question?