> For the complete documentation index, see [llms.txt](https://wishlist.nativeappco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wishlist.nativeappco.com/integrations/quiz-kit.md).

# Quiz Kit

When a shopper completes a quiz, the recommended products from Quiz Kit are seamlessly added to their wishlist.

This integration is available to any store with both [**Fish Wishlist**](https://apps.shopify.com/fish-wishlist) and [**Quiz Kit**](https://apps.shopify.com/quiz-kit) installed.

***

<figure><img src="/files/gXCbv0bBpSCZwt2Wcxmq" alt=""><figcaption></figcaption></figure>

***

### How it works

* A customer completes a quiz in Quiz Kit.
* Quiz Kit generates product recommendations.
* The recommended products are automatically added to the customer’s Fish Wishlist.

This makes it easier for customers to revisit their personalized quiz results later and take action directly from their wishlist.

***

### Setup Instructions

1. In your Shopify Admin, open the theme editor or theme code editor.
2. Locate the section where your Quiz Kit quiz is installed.
3. Create a new Liquid section (or edit an existing one under the quiz section).
4. Add the following script to the section:

```html
<script>
document.addEventListener('quizKitResultsPageLoaded', function (e) { 
  if(!("FishWishlist" in window)) return
  for(let recommendedProduct of e.detail.recommendedProducts) {
    let fishVariant = recommendedProduct.variants?.[0]
    if(!fishVariant) continue
    FishAPI.addToWishlist('WL1', {
      ...fishVariant,
      title: `${recommendedProduct.title}`,
      availableForSale: fishVariant.available_for_sale,
      featured_image: {
        src: fishVariant.image.src || recommendedProduct.image.src,
        src_small: fishVariant.image.src || recommendedProduct.image.src
      },
      price: {
        amount: parseFloat(fishVariant.price.replace(/[^0-9.]/g, ''))
      },
      compareAtPrice: {
        amount: fishVariant.compare_at_price
      }
    })
    FishWishlist.helpers.setCount()
    document.querySelector('wishlists-drawer').renderWishlistElements()
  }
}, false);
</script>
```

***

### That’s it!

Now, whenever a customer completes a quiz in Quiz Kit, their recommended products will automatically appear in their Fish Wishlist.

***


---

# 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 dynamically by asking a question.

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

```
GET https://wishlist.nativeappco.com/integrations/quiz-kit.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.
