# How to Set Up Result Logic

Result Logic is how you connect customer answers to product recommendations. SEA Survey uses a **path-based system**: each unique combination of answers creates a “path” that maps to a specific set of products. When a customer completes your quiz, the app matches their answers to a path and displays the corresponding products.

### Prerequisites

* A quiz with at least one question and answer options already created
* Products available in your Shopify store

### Steps

#### Step 1: Open the Result Logic Tab

From the quiz editor, click the **Result Logic** tab at the top of the page (next to “Build Quiz”). This opens the result logic configuration panel.

#### Step 2: Understand Paths

Each path represents one answer combination. For example, if your quiz has 3 questions with 4 answers each, there are up to 64 possible paths (4 x 4 x 4). Each path can map to a different set of recommended products.

A path displays:

* The answer combination it represents (e.g., “Dry skin” + “Anti-aging” + “Very sensitive”)
* The number of products assigned
* A warning if the path is incomplete (no products assigned)
* A warning if the path is a duplicate of another path

#### Step 3: Add Products to a Path

Click on a path to open the path editor panel. Then:

1. Click **Add Products** to open the product selector
2. Browse or search your Shopify products
3. Select the products you want to recommend for this answer combination
4. Click **Save** to confirm

You can add multiple products to a single path. Products display with their title, price, and image.

#### Step 4: Set Up Fallback Products

Scroll to the **Default result** card at the bottom of the Result Logic panel. This is the fallback, it shows when a customer’s answer combination does not match any defined path.

Click on the fallback card and add products the same way as a regular path. This ensures every customer sees at least some product recommendations.

#### Step 5: Review and Manage Paths

From the Result Logic panel, you can:

* **Edit** a path: Click on it to change products
* **Duplicate** a path: Copy an existing path to create a similar one
* **Delete** a path: Remove a path you no longer need
* **Preview** a path: See the Result Page with that path’s products

The panel also highlights duplicate paths (same answer combination appears twice) so you can clean them up.

#### Step 6: Save Your Changes

Click **Save** at the top of the page to save all result logic changes.

### How Path Matching Works

When a customer completes the quiz, the app processes their answers in this order:

1. Compare the customer’s answers against all defined paths
2. If a path matches all answers exactly, show that path’s products
3. If no path matches but fallback products exist, show the fallback products
4. If no path matches and no fallback products exist, no products are shown

The matching is exact, every answer in the path must match the customer’s answer.

### Tips

* Start with the fallback products first. This guarantees every customer sees recommendations even before you set up all paths.
* You don’t need to create every possible path. Focus on the most common or most valuable answer combinations first.
* Use the duplicate detection warnings to avoid accidentally assigning different products to the same answer combination.
* The **Preview** feature lets you see exactly what a customer will see for each path, use it to verify your product selections.

### Related Articles

* [Add Quiz to Your Store](https://help.seacommerce.io/product-recommendation-quiz/how-to-add-a-quiz-to-your-online-store)
* [View Quiz Responses](https://help.seacommerce.io/product-recommendation-quiz/how-to-view-quiz-responses)
* [Customize Quiz Design](https://help.seacommerce.io/product-recommendation-quiz/how-to-customize-your-quiz-design)

<br>
