# Quiz Result Logic

**Per-answer mapping** is a result logic method that lets you attach products directly to each answer option. Instead of configuring logic per answer path (combination of answers), you map products per answer — the app then calculates the result automatically.

This is the default method for new quizzes. Free for all plans.

### Setup <a href="#setup" id="setup"></a>

#### Step 1: Select Per-answer mapping <a href="#step-1-select-per-answer-mapping" id="step-1-select-per-answer-mapping"></a>

Go to **Quiz Builder** → **Result logic** tab → select **Per-answer mapping**.

#### Step 2: Attach products to answers <a href="#step-2-attach-products-to-answers" id="step-2-attach-products-to-answers"></a>

Go to the **Build quiz** tab → click the **product icon** on any answer option → a modal opens to attach products to that answer.

Choose one of three mapping methods:

| Method              | How it works                                                      |
| ------------------- | ----------------------------------------------------------------- |
| **Manual Pick**     | Select individual products or variants by hand                    |
| **By Tag**          | Choose a Shopify tag — the app matches all products with that tag |
| **By Product Type** | Choose a product type — the app matches all products of that type |

#### Step 3: Configure result logic <a href="#step-3-configure-result-logic" id="step-3-configure-result-logic"></a>

Back in the **Result logic** tab, choose how results are calculated:

* **Union** — shows all products matching *any* of the customer's answers. Products that match more answers rank higher.
* **Intersection** — shows only products matching *all* of the customer's answers. More precise results.

#### Step 4: Set max products <a href="#step-4-set-max-products" id="step-4-set-max-products"></a>

Set the maximum number of products to display on the result page (default: 10).

### Union vs Intersection <a href="#union-vs-intersection" id="union-vs-intersection"></a>

|          | Union                            | Intersection                             |
| -------- | -------------------------------- | ---------------------------------------- |
| Shows    | All products matching any answer | Only products matching all answers       |
| Best for | Broad recommendations            | Precise, filtered results                |
| Risk     | More results, less targeted      | Fewer results if products overlap little |

{% embed url="<https://go.screenpal.com/watch/cOfQ66nTPyz>" %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.seacommerce.io/product-recommendation-quiz/quiz-result-logic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
