> For the complete documentation index, see [llms.txt](https://support.quizkitapp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.quizkitapp.com/building-a-quiz/results/results-logic/product-weight-logic.md).

# Product weight logic

Learn about the Product weight results logic type for quiz results.

The Product weight logic type is based on the weight assigned to each product at the answer level.&#x20;

Products are recommended in the results based on which product accumulated the most weight (numerical value) by the end of the quiz.

Instead of creating answer paths, you directly link questions with products on the question creation page and allocate a specific weight to each product.

## In this section

* [Changing the results logic type](#changing-the-recommendations-logic-type)
* [Setting up Product weight results logic](#setting-up-product-weight-results-logic)

***

## Changing the results logic type <a href="#changing-the-recommendations-logic-type" id="changing-the-recommendations-logic-type"></a>

You can adjust the results logic on any quiz that has been created with a blank template.&#x20;

**Steps:**

1. From the quiz builder, click **Settings.**
2. Click **Recommendations**.
3. Under **Results Logic**, click the drop-down menu for logic options, and click **Single.**
4. In the text box under **Recommended products limit**, enter the maximum number of products that you want to show on the quiz results page.
5. Click **Save**.

***

## Setting up Product weight results logic

To set up the Product weight results logic, you need to recommend products for each answer, and assign weights to them.

**Steps:**

1. From the quiz builder, click on the **Quiz** tab.
2. Click a question, then an answer that you want to set up product weights for.
3. On the right-hand menu, under **Selected products**, click **Select products**.
4. Check all the products that you want to recommend when a customer chooses this answer, then click **Save and close**.
5. Click **Add weight** next to one of the products you selected.
6. In the text box, enter a weight (a numerical value) you want to give the product. You can set the weight for the full product, or for each variant.&#x20;
7. Click **Apply**, then click **Save**.

Repeat steps 2 to 7 for each of your answers that you want to associate product weights for.

The product with the highest weighted score is recommended at the end of the quiz.

{% embed url="<https://www.youtube.com/watch?v=uhJO_dut3bg>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.quizkitapp.com/building-a-quiz/results/results-logic/product-weight-logic.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
