Mixed Strategy
  • 26 Apr 2024
  • 1 Minute to read

    Mixed Strategy


      Article Summary

      Overview

      This algorithm creates a customized and mixed recommendation strategy using different recommendation types. It is a way of using different algorithms for each slot of the Recommendation Widget. The mixed strategy allows you to use multiple algorithms in a single recommendation widget on your website. It works best on main and category pages.

      Your title goes here
      The duplicated items are removed automatically in the Mixed Strategy algorithm.

      Endpoint

      GET https://recommendation.api.useinsider.com/v2/mixed

      Query Parameters

      ParameterSample ValueDescriptionData TypeRequired
      partnerNamemybrandPartner Identifier which is assigned by Insider. You can use PartnerID as well.StringYes
      localeus_USLocale of requested product catalog.StringYes
      platformwebRequested platform. Web comes by default.EnumNo
      currencyUSDRequested currency of the products. If no value is set, the default currency in your settings is used.StringYes
      size50Required number of items in response. Valid values are 0 to 100.IntegerNo
      categoryList[“Clothes”, “Skirts”]Category filter of the productsArray (of string)No
      filter
      Smart Recommender filtering. There can be more than one filter parameter.StringNo
      detailstrueAdds details to the products of the response.BooleanNo
      shufflefalseShuffles the products of the response.BooleanNo
      getGroupProductsfalseShows variant products under the products of the response.BooleanNo
      groupProductsFields
      Adds these fields to the variant products’ details.StringNo
      excludeVariantstrueExclude variants from response.BooleanNo
      strategy[“ub”, “vtv”, “mvop”]List of strategies.StringYes
      Your title goes here
      You need to add the necessary query params of the used strategy or strategies.

      Strategy

      Strategy is used to specify the desired recommendation types and sizes. Strategies are given within an array. Each strategy is an object that contains the keys recommendationType and size. recommendationType indicates the type of recommendation required, while size specifies the quantity needed.

      [
          {
              "recommendationType": "ub",
              "size": 2
          },
          {
              "recommendationType": "btb",
              "size": 2
          },
          ...
      ]

      List of Strategies

      AlgorithmAbbreviation
      Chefchef
      Complementary Products
      cp
      Highest Discounted
      hdop
      Highest Discounted of Category
      hdoc
      Location Based Top Sellers
      mpol
      Manual Merchandising
      mm
      Most Popular
      mvop
      Most Popular of Category
      mvoc
      Most Valuable Products
      mvpop
      Most Valuable Products of Category
      mvpoc
      New Arrivals
      naop
      New Arrivals of the Category
      naoc
      Viewed Together
      vtv
      Purchased Together
      btb
      Purchased with Last Purchased
      lpt
      Substitute Products
      sp
      Top Sellers
      mpop
      Top Sellers of Category
      mpoc
      Trending Products
      tpop
      Trending Products of Category
      tpoc
      User Basedub
      Viewed Together
      vtv

      Sample Example

      Sample Request

      GET https://recommendation.api.useinsider.com/v2/mixed?locale={Locale}&currency={Currency}&partnerName={PartnerName}&strategy=[{%22recommendationType%22%3A%22hdop%22%2C%22size%22%3A2}]

      Sample Response

      {
          "success": true,
          "total": 2,
          "types": {
              "hdop": 2
          },
          "data": [
              "XYZ-987789",
              "ABC-123321"
          ]
      }

      Fallback Algorithms

      Fallback algorithms are determined by your strategy selections. 


      Was this article helpful?

      ESC

      Eddy, a super-smart generative AI, opening up ways to have tailored queries and responses