Skip to main content

Complementary Recommendations

Complementary recommendations

POST /indexes/{index_name}/recommendations/complementary

Purpose

Drive cross-sell by suggesting items frequently purchased together or that complete a set/look. These recommendations optimize for increased Average Order Value (AOV) by identifying products that naturally pair with what the customer is already considering, without competing for their attention or suggesting alternatives that might pull them away from their current selection.

Background

Complementary recommendations use machine learning to analyze purchase patterns, co-occurrence data, and product relationships to identify items that enhance or complete the customer's current selection. Unlike similar recommendations that offer alternatives, complementary suggestions work synergistically with the base product to create a more complete purchase experience.

When to use

  • Cross-sell opportunities: When customers are viewing or have added items that commonly pair with accessories, add-ons, or complementary products
  • Complete-the-look scenarios: For fashion, home décor, or lifestyle products where customers often purchase coordinated items
  • Bundle optimization: To suggest logical product combinations that increase basket size
  • Cart abandonment recovery: To add value perception through relevant add-ons

Example uses

Use CaseDescriptionInput ProductsBusiness Impact
Complete the LookShow items that naturally go together to create a cohesive style or setCurrent item being viewedIncreases AOV, improves customer satisfaction
Frequently Bought TogetherSuggest items commonly purchased alongside the current productMain product from PDP or cartDrives cross-sell, leverages proven purchase patterns
Cart CompletionRecommend add-ons or accessories before checkoutAll items currently in cartLast-chance revenue boost, reduces post-purchase regret
Bundle SuggestionsShow products that work together as a logical set or packagePrimary product or category anchorCreates value perception, increases basket size
Cross-Sell OpportunitiesSuggest complementary items from different categoriesAny product as anchor pointDiversifies purchase, introduces new product categories

Input products (document_ids)

  • PDP Context: Use the current product being viewed to suggest items that pair well
  • Cart Context: Include all cart items to find complements that work with the entire selection
  • Multi-item Context: Pass multiple related items (recent views, cart additions) to find products that complement the overall shopping intent
  • Best Practice: Use 3-5 most relevant products as input to maintain focus and relevance

Example (cURL)

curl -X POST https://ecom.marqo-ep.ai/api/v1/indexes/${index_name}/recommendations/complementary \
-H "x-marqo-index-id: ${MARQO_INDEX_ID}" \
-H "Content-Type: application/json" \
-d '{
"documentIds": ["shirt_123"],
"limit": 6
}'

Parameters

Filters use the Marqo Filter DSL. Note: Results automatically exclude the input item(s) where applicable.

NameTypeRequiredDescriptionExample
documentIdsarray[string]yesAn array of up to 10 item IDs to anchor the complements.["shirt_123"]
limitintegernoMax number of results (default 10).6
offsetintegernoPagination offset.0
filterstringnoConstrain by stock, brand, category, price ranges. See Marqo Filter DSL."in_stock:true"
attributesToRetrievearray[string]noAttributes to return in the response for each document. If not specified, all attributes are returned.["title", "price", "image_url"]
userIdstringnoOptional user identifier."abc123"
sessionIdstringnoOptional session identifier."xyz789"