Skip to main content

User Featured Recommendations

For You recommendations

POST /indexes/{index_name}/recommendations/for-you

Purpose

Surface personalized product selections based on a user's interaction history, preferences, and behavioral patterns. Leverages past purchases, clicks, cart additions, and browsing behavior to deliver highly relevant recommendations that match individual customer preferences and increase engagement.

Background

Personalized recommendations use machine learning to analyze user behavior patterns including purchase history, product views, cart additions, and engagement signals. The system builds individual preference profiles to identify products that align with each user's demonstrated interests, shopping patterns, and brand affinities.

When to use

  • Homepage personalization: Show tailored content for returning visitors and logged-in users
  • Email marketing: Create personalized product recommendations in newsletters and campaigns
  • Account dashboards: Display relevant suggestions in user profiles and account pages
  • Re-engagement campaigns: Target users with products based on their historical preferences

Example uses

Use CaseDescriptionInteraction SourceBusiness Impact
Homepage "For You" SectionDisplay personalized recommendations on homepage for logged-in usersPurchase + browse + cart historyIncreases engagement, improves homepage relevance
Email RecommendationsInclude "Based on Your Purchases" or "You Might Like" in email campaignsPurchase history + recent viewsDrives return visits, increases email CTR
Account DashboardShow "Recommended for You" in user account or profile pagesComplete interaction historyExtends session time, improves loyalty
Retargeting CampaignsTarget users with ads featuring products aligned with their preferencesBehavioral data + preferencesImproves ad relevance, increases conversion rates
Mobile App PersonalizationCreate personalized product feeds within mobile applicationsApp usage + purchase patternsEnhances app engagement, drives mobile sales

Input sources (interaction types)

  • Purchase History: Products previously bought by the user - strongest personalization signal
  • Cart Activity: Items added to cart (even if not purchased) - indicates strong interest
  • Product Views: Recently viewed or frequently browsed items - shows browsing preferences
  • Engagement Signals: Likes, saves, shares, or other interaction data - reveals preferences
  • Search Patterns: Historical search queries and clicked results - indicates intent and interests

Example (cURL)

curl -X POST "https://api.marqo.ai/indexes/product-catalog/recommendations/for-you" \
-H "x-marqo-index-id: ${MARQO_INDEX_ID}"
-H "Content-Type: application/json" \
-d '{
"userId": "abc123",
"limit": 12
}'

Parameters

NameTypeRequiredDescriptionExample
userIdstringyesUser identifier for personalization."abc123"
interactionTypesarray[string]noTypes of interactions to consider (ClickEvent, AddToCartEvent, PurchaseEvent). Default: all types.["ClickEvent", "AddToCartEvent"]
limitintegernoMax number of results to return. Defaults to 10.12
offsetintegernoOffset for pagination.0
filterstringnoServer-side constraints (e.g., in_stock, price ranges, brand, category). 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"]
sessionIdstringnoOptional session identifier."xyz789"