Your product feed is the single most important asset in the agentic commerce era. Not your website design. Not your ad creative. Not your social media presence. Your product data — structured, comprehensive, machine-readable product data — determines whether AI agents find, recommend, and purchase your products.
This guide is a technical implementation manual for e-commerce teams. It covers exactly what you need to build, configure, and test to make your product data agent-ready. Code examples included.
Why Traditional Product Feeds Fall Short
Most e-commerce brands have a product feed already — typically a Google Merchant Center XML feed that powers their Google Shopping campaigns. This feed includes basic attributes: title, description, price, image URL, availability, GTIN, brand, and a handful of product-type fields.
For Google Shopping, this is sufficient. Google's system matches search queries to products based on these limited attributes plus bid amount.
For AI agents, this is woefully insufficient. Here is why.
What Agents Need That Merchant Center Doesn't Provide
| Data Point | Google Merchant Center | AI Agent Requirement |
|---|---|---|
| Product title | Required (150 chars) | Needed, plus natural language variants |
| Description | Required (5000 chars, often marketing-heavy) | Needs both marketing AND structured specifications |
| Specifications | Not required | Critical — detailed, comparable attributes |
| Compatibility info | Not supported | Needed for accurate recommendations |
| Use-case mapping | Not supported | Needed to match products to consumer needs |
| Comparison attributes | Not supported | Needed to evaluate against alternatives |
| Real-time pricing | Daily update typical | Real-time API or webhook preferred |
| Real-time inventory | Supported but often delayed | Real-time required for agent purchases |
| Return policy details | Basic support | Detailed, machine-readable terms needed |
| Warranty information | Not supported | Needed for total value evaluation |
| Sustainability data | Limited support | Growing importance for agent evaluations |
| Size/fit guidance | Basic support | Detailed, structured guidance needed |
The gap between what Merchant Center provides and what agents need is substantial. Closing this gap is the core technical challenge of product feed optimization for AI agents.
The Three Channels Agents Use to Access Product Data
AI agents access your product data through three primary channels, each requiring different optimization:
-
Web crawling and scraping: Agents (or their training data pipelines) crawl your product pages and extract information from HTML content and structured data markup. This is where JSON-LD schema markup matters.
-
APIs: Agents increasingly access product data through storefront APIs (like Shopify's Storefront API) or custom product data APIs. This provides clean, structured data without parsing HTML.
-
Product databases and feeds: Agents access aggregated product databases (Google's Shopping Graph, product data platforms, etc.) that are fed by merchant product feeds. This is where your Merchant Center feed and other feed submissions matter.
You need to optimize for all three channels. A brand that only optimizes its Merchant Center feed misses agents that crawl the web. A brand that only optimizes its website misses agents that query APIs directly.
Product Schema Markup: The Complete Implementation
JSON-LD schema markup on your product pages is the most immediately impactful optimization you can make. It provides structured, machine-readable product data that agents extract during web crawling.
The Complete Product Schema Template
Here is a comprehensive JSON-LD template for a product page. This goes significantly beyond what most e-commerce stores currently implement:
{
"@context": "https://schema.org",
"@type": "Product",
"name": "ProTrail X1 Trail Running Shoe - Men's",
"description": "Technical trail running shoe with Vibram Megagrip outsole, 4mm lugs, and DWR-treated mesh upper. Designed for rocky terrain and moderate cushioning preference. 9.2oz (men's size 10), 4mm drop.",
"sku": "PTX1-M-BLK-10",
"gtin13": "0123456789012",
"mpn": "PTX1-M-BLK",
"brand": {
"@type": "Brand",
"name": "ProTrail",
"url": "https://www.protrail.com"
},
"category": "Shoes > Athletic Shoes > Trail Running Shoes",
"color": "Black/Orange",
"size": "10",
"material": "Engineered mesh upper, Vibram Megagrip rubber outsole",
"weight": {
"@type": "QuantitativeValue",
"value": "9.2",
"unitCode": "OZ"
},
"additionalProperty": [
{
"@type": "PropertyValue",
"name": "Drop",
"value": "4mm"
},
{
"@type": "PropertyValue",
"name": "Stack Height (Heel)",
"value": "28mm"
},
{
"@type": "PropertyValue",
"name": "Stack Height (Forefoot)",
"value": "24mm"
},
{
"@type": "PropertyValue",
"name": "Lug Depth",
"value": "4mm"
},
{
"@type": "PropertyValue",
"name": "Water Resistance",
"value": "DWR-treated upper"
},
{
"@type": "PropertyValue",
"name": "Terrain Type",
"value": "Technical trail, rocky terrain"
},
{
"@type": "PropertyValue",
"name": "Cushioning Level",
"value": "Moderate"
},
{
"@type": "PropertyValue",
"name": "Arch Support",
"value": "Neutral"
},
{
"@type": "PropertyValue",
"name": "Fit",
"value": "True to size"
}
],
"image": [
"https://example.com/images/ptx1-main.jpg",
"https://example.com/images/ptx1-side.jpg",
"https://example.com/images/ptx1-sole.jpg",
"https://example.com/images/ptx1-top.jpg"
],
"offers": {
"@type": "Offer",
"url": "https://example.com/products/protrail-x1-mens",
"price": "149.99",
"priceCurrency": "USD",
"priceValidUntil": "2026-12-31",
"availability": "https://schema.org/InStock",
"itemCondition": "https://schema.org/NewCondition",
"seller": {
"@type": "Organization",
"name": "Trail Gear Pro"
},
"shippingDetails": {
"@type": "OfferShippingDetails",
"shippingDestination": {
"@type": "DefinedRegion",
"addressCountry": "US"
},
"deliveryTime": {
"@type": "ShippingDeliveryTime",
"handlingTime": {
"@type": "QuantitativeValue",
"minValue": 0,
"maxValue": 1,
"unitCode": "d"
},
"transitTime": {
"@type": "QuantitativeValue",
"minValue": 1,
"maxValue": 3,
"unitCode": "d"
}
},
"shippingRate": {
"@type": "MonetaryAmount",
"value": "0.00",
"currency": "USD"
}
},
"hasMerchantReturnPolicy": {
"@type": "MerchantReturnPolicy",
"applicableCountry": "US",
"returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
"merchantReturnDays": 60,
"returnMethod": "https://schema.org/ReturnByMail",
"returnFees": "https://schema.org/FreeReturn",
"returnPolicySeasonalOverride": {
"@type": "MerchantReturnPolicySeasonalOverride",
"merchantReturnDays": 90,
"startDate": "2026-11-01",
"endDate": "2027-01-31"
}
}
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.6",
"bestRating": "5",
"worstRating": "1",
"ratingCount": "342",
"reviewCount": "289"
},
"review": [
{
"@type": "Review",
"reviewRating": {
"@type": "Rating",
"ratingValue": "5",
"bestRating": "5"
},
"author": {
"@type": "Person",
"name": "Sarah M."
},
"datePublished": "2026-02-15",
"reviewBody": "Best trail shoe I've owned in 10 years of ultrarunning. The Vibram Megagrip outsole handles wet granite without slipping. Fit is true to size — I ordered my usual 10 and it's perfect. Only minor note: takes about 20 miles to fully break in.",
"name": "Best trail shoe for technical terrain"
},
{
"@type": "Review",
"reviewRating": {
"@type": "Rating",
"ratingValue": "4",
"bestRating": "5"
},
"author": {
"@type": "Person",
"name": "Mike T."
},
"datePublished": "2026-01-28",
"reviewBody": "Great grip and protection on rocky trails. Comfortable for runs up to 15 miles. I dock one star because the DWR coating wears off after about 100 miles — would love a more durable water treatment. Otherwise, excellent shoe for the price.",
"name": "Great grip, water resistance could be better"
}
],
"isRelatedTo": [
{
"@type": "Product",
"name": "ProTrail X1 Trail Running Shoe - Women's",
"url": "https://example.com/products/protrail-x1-womens"
}
],
"isSimilarTo": [
{
"@type": "Product",
"name": "ProTrail S2 Speed Trail Shoe",
"url": "https://example.com/products/protrail-s2"
}
]
}
Key Elements That Most Stores Miss
Based on our analysis of thousands of product pages, here are the schema elements that most stores neglect but that significantly impact agent recommendations:
additionalProperty for specifications: This is the most underused schema element. The additionalProperty array lets you define any custom product attribute as a structured PropertyValue. Agents use these extensively for comparison shopping.
shippingDetails within Offer: Agents factor shipping speed and cost directly into purchase decisions. Embedding this in schema ensures agents have this data during evaluation, not just at checkout.
hasMerchantReturnPolicy: Return policy details influence agent trust. A clearly structured return policy in schema markup gives agents confidence to recommend your product.
review with detailed reviewBody: Including full review text in schema (not just ratings) allows agents to perform sentiment analysis during their initial product evaluation.
isRelatedTo and isSimilarTo: These help agents understand your product ecosystem and make cross-sell or alternative recommendations.
Shopify Metafield Setup for Agent-Readable Attributes
If you run a Shopify store, metafields are your primary tool for storing structured product data that agents access via the Storefront API.
Creating Metafield Definitions
Navigate to Settings > Custom data > Products in your Shopify admin. Create the following metafield definitions:
1. Technical Specifications (JSON)
- Namespace and key:
custom.specifications - Type: JSON
- Description: Complete technical product specifications in structured format
2. Use Cases (List of Text)
- Namespace and key:
custom.use_cases - Type: List of single line text fields
- Description: Primary intended use cases for this product
3. Compatibility (List of Text)
- Namespace and key:
custom.compatibility - Type: List of single line text fields
- Description: Compatible products, systems, or accessories
4. Comparison Attributes (JSON)
- Namespace and key:
custom.comparison_attributes - Type: JSON
- Description: Key attributes for cross-product comparison in standardized format
5. Warranty Information (JSON)
- Namespace and key:
custom.warranty_info - Type: JSON
- Description: Structured warranty and guarantee details
6. Sustainability (JSON)
- Namespace and key:
custom.sustainability - Type: JSON
- Description: Environmental and sustainability certifications and data
7. Size and Fit Guide (JSON)
- Namespace and key:
custom.size_fit - Type: JSON
- Description: Detailed sizing information, fit recommendations, and measurement guides
Example Metafield Values
Specifications metafield (custom.specifications):
{
"weight": {"value": 9.2, "unit": "oz", "context": "men's size 10"},
"drop": {"value": 4, "unit": "mm"},
"stack_height_heel": {"value": 28, "unit": "mm"},
"stack_height_forefoot": {"value": 24, "unit": "mm"},
"upper_material": "Engineered mesh with TPU overlays",
"outsole_material": "Vibram Megagrip rubber",
"midsole_material": "Dual-density EVA foam",
"lug_depth": {"value": 4, "unit": "mm"},
"water_resistance": "DWR-treated upper",
"closure": "Traditional lacing",
"toe_protection": "TPU toe cap",
"heel_counter": "Semi-rigid internal counter",
"insole": "Removable OrthoLite footbed",
"terrain_rating": {
"road": 2,
"trail": 5,
"technical": 4,
"mud": 3,
"rock": 5
},
"cushioning_level": "moderate",
"arch_support": "neutral",
"pronation": "neutral"
}
Comparison attributes metafield (custom.comparison_attributes):
{
"category": "trail_running_shoe",
"primary_use": "technical_trail_running",
"price_tier": "mid_range",
"key_feature": "Vibram Megagrip outsole",
"best_for": ["rocky terrain", "technical trails", "moderate cushioning preference"],
"not_ideal_for": ["road running", "maximum cushioning preference", "wet mud"],
"comparable_products": [
{"brand": "Salomon", "model": "Speedcross 6", "comparison": "Similar grip, less cushioning"},
{"brand": "Hoka", "model": "Speedgoat 6", "comparison": "More cushioning, less ground feel"},
{"brand": "La Sportiva", "model": "Bushido III", "comparison": "Similar precision, heavier"}
],
"value_rating": 4.2,
"durability_rating": 4.5
}
Use cases metafield (custom.use_cases):
[
"Technical trail running on rocky terrain",
"Ultramarathon training on mixed surfaces",
"Mountain hiking requiring secure footing",
"Trail racing in dry to moderately wet conditions",
"Fastpacking on technical trails"
]
Bulk Populating Metafields
Manually entering metafields for every product is impractical for large catalogs. Here are three approaches for bulk population:
Approach 1: Shopify Bulk Editor
Shopify's built-in bulk editor supports metafield editing. Navigate to Products, select all products, and use the "Edit metafields" option. This works for small catalogs (under 100 products) but becomes tedious at scale.
Approach 2: CSV Import via Shopify Admin API
Use the Shopify Admin API to programmatically update metafields in bulk. Write a script that reads from a spreadsheet or database and updates metafields via the API:
// Example: Bulk update product metafields via Shopify Admin API
const updateProductMetafields = async (productId, metafields) => {
const response = await fetch(
`https://${SHOP_DOMAIN}/admin/api/2026-01/products/${productId}/metafields.json`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Shopify-Access-Token': ACCESS_TOKEN,
},
body: JSON.stringify({
metafield: {
namespace: 'custom',
key: 'specifications',
value: JSON.stringify(metafields.specifications),
type: 'json',
},
}),
}
);
return response.json();
};
Approach 3: Third-Party Metafield Apps
Apps like Metafields Guru, Accentuate Custom Fields, or Matrixify provide spreadsheet-based metafield management with bulk import/export capabilities. These are the most practical solution for large catalogs.
API Endpoint Optimization
Beyond schema markup and metafields, consider optimizing your API endpoints for direct agent access.
Storefront API Best Practices
If you use Shopify, optimize your Storefront API for agent consumption:
Response time: Agents expect fast responses. Ensure your Storefront API queries return within 200ms. Avoid complex computed fields that slow down query execution.
Data completeness: When agents query a product, they want everything in one request — not a product summary that requires follow-up queries for details. Structure your GraphQL fragments to include all relevant data including variants, metafields, images, and availability in a single query.
Inventory accuracy: Enable real-time inventory tracking. Agents that recommend an out-of-stock product lose trust in your store. Configure inventoryPolicy and inventoryQuantity to reflect actual availability.
Custom Product Data API
For brands with custom e-commerce platforms (not Shopify), consider building a dedicated product data API endpoint for agent consumption:
// GET /api/products/{sku}
// Response format optimized for agent consumption
{
"product": {
"sku": "PTX1-M-BLK-10",
"name": "ProTrail X1 Trail Running Shoe - Men's",
"brand": "ProTrail",
"category": ["Shoes", "Athletic Shoes", "Trail Running Shoes"],
"price": {
"current": 149.99,
"currency": "USD",
"compare_at": null,
"price_per_unit": null
},
"availability": {
"in_stock": true,
"quantity": 47,
"backorder_available": false,
"estimated_ship_date": "2026-03-22",
"delivery_estimate_days": {"min": 1, "max": 3}
},
"specifications": {
"weight_oz": 9.2,
"drop_mm": 4,
"stack_height_heel_mm": 28,
"stack_height_forefoot_mm": 24,
"upper_material": "Engineered mesh with TPU overlays",
"outsole": "Vibram Megagrip",
"lug_depth_mm": 4,
"water_resistance": "DWR-treated",
"fit": "true_to_size"
},
"use_cases": [
"Technical trail running",
"Rocky terrain",
"Ultramarathon training"
],
"ratings": {
"average": 4.6,
"count": 342,
"distribution": {"5": 198, "4": 89, "3": 35, "2": 12, "1": 8}
},
"return_policy": {
"window_days": 60,
"free_returns": true,
"condition": "Unworn, with tags"
},
"warranty": {
"duration_months": 12,
"coverage": "Manufacturing defects"
},
"comparable_products": [
{"sku": "PTS2-M-BLU-10", "name": "ProTrail S2 Speed Trail"},
{"sku": "PTX1-W-BLK-8", "name": "ProTrail X1 - Women's"}
]
}
}
This flat, structured format is exactly what agents need. No HTML parsing, no CSS stripping, no marketing copy to filter through — just clean, comparable product data.
Real-Time Pricing and Inventory Signals
Agents need current data. Stale pricing or incorrect inventory damages trust and leads to failed transactions.
Implement webhook-driven updates:
For Shopify stores, subscribe to these webhook topics and push updates to any external product data systems:
products/update— Price or description changesinventory_levels/update— Stock level changescollections/update— Category or collection changes
For custom platforms, build a pub/sub system that broadcasts product changes in real-time to all downstream consumers, including any agent-facing API endpoints.
Cache with short TTLs:
If you cache product data (which you should for performance), use short cache TTLs for agent-facing endpoints:
- Price data: 5-minute TTL maximum
- Inventory data: 1-minute TTL maximum
- Product specifications: 1-hour TTL (changes rarely)
- Review data: 15-minute TTL
Before and After: Product Data Optimization Examples
To illustrate the impact of product data optimization, here are before-and-after examples.
Example 1: Wireless Headphones
Before (typical product listing):
Title: SoundMax Pro Wireless Headphones
Description: Experience incredible sound with our premium wireless
headphones. Perfect for music lovers who demand the best.
Comfortable all-day wear with noise cancellation.
Price: $179.99
Rating: 4.3/5
After (agent-optimized):
Title: SoundMax Pro Wireless Over-Ear Headphones with ANC
Description: Premium wireless over-ear headphones with hybrid
active noise cancellation (35dB reduction). 40mm custom drivers
with aptX HD support. 30-hour battery life. 270g weight.
Bluetooth 5.3 with multipoint connection (2 devices simultaneous).
Foldable design with carrying case included.
Specifications:
- Driver size: 40mm custom neodymium
- Frequency response: 20Hz-40kHz
- ANC: Hybrid active, 35dB reduction
- Bluetooth: 5.3 with aptX HD, AAC, SBC
- Battery: 30 hours (ANC on), 45 hours (ANC off)
- Charge time: 2 hours (10-min quick charge = 3 hours playback)
- Weight: 270g
- Connectivity: Multipoint (2 devices)
- Microphone: 4-mic array with AI noise reduction
- Fit: Over-ear, adjustable headband, memory foam cushions
- Foldable: Yes, with included hard case
- Water resistance: IPX4 (sweat resistant)
- Colors: Midnight Black, Cloud White, Ocean Blue
Best for: Commuting, office work, music production,
long flights, work-from-home calls
Compatible with: All Bluetooth devices, works with
SoundMax app (iOS/Android) for EQ customization
Return policy: 30-day free returns, no questions asked
Warranty: 2-year manufacturer warranty
Impact: When an agent receives a query like "best wireless headphones for office work with good noise cancellation under $200," the optimized listing provides every data point the agent needs to make a confident recommendation. The unoptimized listing provides almost nothing actionable.
Example 2: Kitchen Appliance
Before:
Title: BlendPro 5000 Blender
Description: The ultimate blending machine! Make smoothies,
soups, and more with the push of a button. Powerful motor
crushes ice effortlessly. Beautiful design looks great on
any countertop.
Price: $89.99
Rating: 4.5/5
After:
Title: BlendPro 5000 Countertop Blender - 64oz, 1400W
Description: High-performance countertop blender with 1400W
motor and 6-point stainless steel blade assembly. 64oz
BPA-free Tritan pitcher. 12 speed settings plus 4 preset
programs (Smoothie, Soup, Ice Crush, Pulse). Self-cleaning
cycle. Dimensions: 8"W x 7"D x 17"H. Weight: 8.2 lbs.
Dishwasher-safe pitcher and lid. 4-foot power cord.
ETL certified. BPA-free.
Specifications:
- Motor: 1400W / 2.0 peak HP
- Blade: 6-point hardened stainless steel
- Pitcher capacity: 64 oz / 1.9L (Tritan BPA-free)
- Speeds: 12 variable + 4 presets
- Noise level: 85dB at max speed
- Dimensions: 8"W x 7"D x 17"H
- Weight: 8.2 lbs
- Cord length: 4 feet
- Dishwasher safe: Pitcher and lid (not base)
- Certifications: ETL, BPA-free
- Warranty: 5-year motor, 2-year full unit
- Voltage: 120V / 60Hz (US standard)
Best for: Daily smoothies, frozen drinks, hot soups
(vented lid), nut butters, baby food, protein shakes
Not ideal for: Small single-serve portions (64oz pitcher
minimum 16oz for effective blending), food processing
tasks (no slicing/shredding attachments)
Testing Your Product Data Against AI Agents
Optimization without measurement is guesswork. Here is a systematic approach to testing your product data against AI agents.
The Testing Matrix
Create a spreadsheet with the following structure:
| Product | Query | ChatGPT | Claude | Perplexity | Gemini | Position | Accuracy | Action Needed |
|---|---|---|---|---|---|---|---|---|
| Product A | "best [category] under $X" | Yes/No | Yes/No | Yes/No | Yes/No | #1-5 | High/Med/Low | Notes |
Testing Queries to Use
For each product, test with at least 5 query types:
- Category query: "What are the best [category] in 2026?"
- Budget query: "Best [category] under $[price point]"
- Use-case query: "Best [product type] for [specific use case]"
- Comparison query: "Compare [your product] vs [competitor product]"
- Specification query: "[Your brand] [product name] specifications"
Evaluating Agent Responses
For each test, evaluate:
- Presence: Does the agent recommend your product? (Most important)
- Position: Where in the recommendation list does your product appear?
- Accuracy: Are the specifications, pricing, and availability correct?
- Sentiment: How does the agent describe your product? Positive, neutral, or negative?
- Comparison framing: When compared to competitors, how is your product positioned?
- Missing data: What information does the agent lack about your product?
Monthly Testing Cadence
Run your testing matrix monthly and track changes over time. Look for:
- Products that gained or lost AI visibility
- Platforms where your visibility improved or declined
- Categories where competitors are gaining agent recommendation share
- Correlation between data optimization efforts and visibility changes
Monitoring Agent-Initiated Traffic in Analytics
Identifying agent traffic in your analytics platform requires specific configuration.
Google Analytics 4 Configuration
Create custom segments to identify agent traffic:
Bot/agent user agents: Create a segment that captures traffic from known agent user agent strings. These vary by platform but commonly include:
GPTBot— OpenAI's crawlerChatGPT-User— ChatGPT browsingClaudeBot— Anthropic's crawlerPerplexityBot— Perplexity's crawlerGoogle-Extended— Gemini/Google AI
Behavioral signals: Create a segment for traffic with these characteristics:
- Session duration under 10 seconds
- Conversion rate above 50%
- No scroll events
- Single page session leading to checkout
- API-originated checkout creation
Shopify Analytics
In Shopify, monitor:
- Storefront API usage: Track API call volume, query patterns, and checkout creation through the API
- Checkout source attribution: Identify checkouts created via API versus web browser
- Order source tagging: Use order metafields or tags to flag likely agent-initiated purchases
Custom Dashboards
Build a dedicated dashboard for agentic commerce metrics:
- Total agent-attributed revenue (weekly/monthly)
- Agent-to-human traffic ratio trend
- Products with highest agent recommendation rates
- Average order value for agent purchases versus human purchases
- Return rate comparison (agent purchases versus human purchases)
- API response time and error rates
Implementation Priority Checklist
Here is the prioritized implementation checklist for preparing your product feed for AI agents:
Week 1: Quick Wins
- Audit existing JSON-LD schema on product pages — identify gaps
- Add
additionalPropertyspecifications to top 20 products - Add shipping and return policy details to Offer schema
- Verify price and availability accuracy in schema markup
Week 2-3: Foundation
- Create Shopify metafield definitions (or equivalent on your platform)
- Populate specifications metafields for top 50 products
- Add use_cases and compatibility metafields
- Enable Storefront API with appropriate scopes
- Set up inventory and pricing webhooks
Week 4-6: Scale
- Bulk populate metafields across entire catalog
- Implement comprehensive JSON-LD schema across all product pages
- Add comparison_attributes metafields
- Configure real-time inventory tracking
- Run first AI agent testing matrix
Week 7-12: Optimize
- Build agent traffic analytics and monitoring
- Set up competitive price monitoring
- Create testing cadence (monthly minimum)
- Optimize based on test results
- Document and iterate on data formats based on agent behavior
Your product data is the new storefront. In the agentic commerce era, the quality, completeness, and accessibility of your product information directly determines your revenue. Invest in it accordingly.
Need help optimizing your product feed for AI agents? Contact AdsX for a technical product data audit. We analyze your current feed, identify gaps, and implement the structured data that gets your products recommended by AI shopping agents.