Feed Structure
Your UCP product catalog must follow a standardized structure to ensure AI agents can parse and understand your products.
Product Attributes
Required Attributes
- id: Unique product identifier
- name: Product name
- description: Product description
- price: Price object with amount and currency
- availability: Stock status
Optional Attributes
- images: Product images array
- category: Product category
- brand: Brand name
- sku: SKU identifier
- url: Product page URL
- reviews: Reviews and ratings
Product Variants
Products with variants (size, color, etc.) must be structured clearly:
{
"id": "prod_123",
"name": "Running Shoes",
"variants": [
{
"id": "var_123_1",
"attributes": {
"size": "10",
"color": "black"
},
"price": {
"amount": 12999,
"currency": "USD"
},
"availability": "in_stock",
"sku": "RUN-SHOE-10-BLK"
}
]
}
Pricing and Availability
{
"price": {
"amount": 12999,
"currency": "USD"
}
}
Amount is in smallest currency unit (cents for USD).
Availability Status
in_stock: Available for purchase
out_of_stock: Not available
preorder: Available for pre-order
backorder: Available for backorder
Inventory Sync
Real-Time Updates
Update availability in real-time:
- Use webhooks to notify of inventory changes
- Poll inventory status regularly
- Update UCP endpoints immediately
Best Practices
- Update availability within 5 minutes of change
- Handle concurrent inventory updates
- Prevent overselling
Feed Validation
Required Checks
- All required attributes present
- Price format correct
- Availability status valid
- Variants properly structured
- Images accessible
Use our UCP readiness checker to validate your feed.
Common Issues
Issue 1: Missing Variants
Problem: AI agents can't distinguish product options
Solution: Structure all product options as variants with clear attributes.
Issue 2: Stale Pricing
Problem: Prices shown to users don't match actual prices
Solution: Update prices in real-time, cache for maximum 5 minutes.
Issue 3: Incorrect Availability
Problem: Products shown as available but out of stock
Solution: Sync inventory status immediately when stock changes.
Next Steps