POST /v2/agentic-search provides the intelligence you need to create conversational shopping experiences.
Overview
AI shopping assistants help users find products through natural language. They:- Understand context from conversational queries
- Learn preferences from user interactions
- Provide personalized recommendations
- Guide discovery with clarifying questions
Core Concepts
Natural Language Queries
Catalog’s Agentic Search understands complex, conversational queries without requiring structured filters:Customer Profiles
Build customer profiles to improve personalization. Profiles can include:- Style preferences: fit, color, aesthetic, silhouettes
- Usage context: activities, environment, travel needs
- Purchase behavior: value priorities, buying frequency
- Avoids: things the customer doesn’t like
Building Your Assistant
- Python
- JavaScript
Step 1: Basic Search
Start with a simple search using natural language queries:Step 2: Customer Profiles
Create and use customer profiles to personalize search results:Step 3: Simple Assistant
Build a basic assistant that handles queries and returns formatted results:Step 4: Error Handling
Always handle errors gracefully:Best Practices
Profile Building
- Start with minimal profiles and enrich over time
- Extract preferences from natural language queries
- Store profiles securely and update them with each interaction
Response Formatting
Format product responses to be user-friendly:- Include key product details: title, brand, price, image
- Provide direct links to purchase
- Show relevant attributes (color, material, style)
Monetization
Monetize your shopping assistant by converting product URLs into affiliate tracking links. UsePOST /v2/affiliate to create trackable affiliate links for products returned in search results. This allows you to earn commissions when users make purchases through your assistant.
Rate Limiting
Respect API rate limits and implement appropriate retry logic:- Default: 50 requests per 4-second sliding window
- Implement exponential backoff for retries
- Use
POST /v2/agentic-search-minifor high-frequency preview features
Related Endpoints
/agentic-search
AI-powered semantic search tailored to customer profiles
/agentic-search-mini
Fast, intelligent product discovery with optional AI-powered attribute enrichment
/affiliate
Generate affiliate links to earn up to 5% on purchases across 50k+ vendors