PayPal's "Online Shopping Agent" appears to be a specialized system design or low-level design interview question, often tagged with Backend, Web, Machine Learning, and System Design, focusing on building an AI-driven agent for e-commerce tasks like product search, comparison, and checkout.
Design an Online Shopping Agent system that acts as an autonomous AI agent for users shopping online. The agent should interpret natural language queries (e.g., "Find me a laptop under $1000 with 16GB RAM and good battery life"), search across multiple e-commerce platforms (e.g., Amazon, eBay, Walmart), compare options using ML-powered recommendations, handle payments securely via backends like PayPal, and execute purchases while optimizing for price, reviews, and constraints. Key challenges include real-time inventory syncing, fraud detection, multi-vendor integration, scalability for high query volumes, and personalization using user history. The system must support web APIs for frontend integration and ML models for ranking/relevance scoring.[1][2][4]
No verbatim full examples were surfaced in searches, but typical cases from PayPal-style interviews include:
| Scenario | Input Query | Expected Output |
|----------|-------------|-----------------|
| Product Search | "Red sneakers size 10 under $50 fast shipping" | JSON: {products: [{id: "abc123", name: "Nike Air", price: 45, vendor: "Amazon", rating: 4.5, stock: true}], summary: "Top 3 matches ranked by price/review"} [4] |
| Comparison | "Compare iPhone 15 vs Galaxy S25" | Table: {comparison: {features: ["camera", "battery"], scores: {iPhone: 9.2, Galaxy: 8.7}}} with purchase links [2] |
| Purchase | "Buy cheapest 16GB laptop + checkout with PayPal" | Confirmation: {order_id: "ord-456", total: 899, status: "paid", eta: "2 days"} after fraud check [1] |
This draws from PayPal's agentic commerce push (e.g., agent-ready payments, store sync for AI discovery) and common interview patterns. For exact LeetCode/Glassdoor matches, check platforms like codezym.com or Reddit LLD threads.[6][1]