What is Agentic Commerce?
Agentic commerce represents a fundamental shift in how consumers discover, evaluate, and purchase products online. Instead of browsing websites, clicking through menus, and filling out checkout forms, customers delegate purchasing decisions to AI agents that act on their behalf. Shopify has positioned itself at the center of this transformation, building infrastructure that lets any AI agent in the world sell any product from any Shopify merchant.
Agentic commerce is not a distant future concept. As of 2025, Shopify has shipped production APIs that let AI agents like ChatGPT, Microsoft Copilot, and Perplexity browse product catalogs, add items to carts, and complete purchases -- all without the buyer ever visiting a traditional storefront.
The Shopify Vision
Shopify CEO Tobi Lutke has described agentic commerce as the third major channel shift in retail:
- Physical retail -- customers walk into stores
- E-commerce -- customers browse websites
- Agentic commerce -- AI agents shop on behalf of customers
The core thesis is simple: if an AI assistant can understand what a customer wants, search billions of products, compare options, and complete a purchase in seconds, the traditional storefront becomes just one of many surfaces where commerce happens.
Shopify Catalog API
The Catalog API is the backbone of agentic commerce. It provides a unified, searchable index of products across millions of Shopify merchants, exposing billions of individual products to AI agents through a single interface.
How the Catalog API Works
Unlike traditional Storefront APIs that are scoped to a single store, the Catalog API operates at the platform level. An AI agent does not need to know which merchant sells running shoes -- it queries the Catalog API with the customer's intent and receives relevant products from across the entire Shopify ecosystem.
# Example: Searching the Shopify Catalog API
query SearchProducts {
catalog {
search(
query: "organic cotton t-shirt"
filters: {
priceRange: { min: 20, max: 60 }
availability: IN_STOCK
}
first: 10
) {
edges {
node {
title
description
vendor
priceRange {
minVariantPrice {
amount
currencyCode
}
}
images(first: 1) {
edges {
node {
url
altText
}
}
}
checkoutUrl
}
}
}
}
}
Key Capabilities
| Feature | Description |
|---|---|
| Semantic Search | Natural language product discovery powered by ML embeddings |
| Faceted Filtering | Price, availability, location, category, and custom attribute filters |
| Real-time Inventory | Live stock levels synchronized across all merchant channels |
| Merchant Quality Signals | Ratings, fulfillment speed, return policies surfaced to agents |
| Multi-currency | Automatic price conversion for global commerce |
The Catalog API uses cursor-based pagination. Always store the endCursor from each response and pass it as the after parameter in subsequent requests. This is critical when building agents that need to paginate through large result sets.
Checkout Kit
Checkout Kit is Shopify's client library that lets AI agents complete purchases without redirecting users to a traditional web checkout. It is available for multiple platforms:
- JavaScript (web and Node.js agents)
- Swift (iOS agents and Apple Intelligence integrations)
- Android/Kotlin (Google Assistant and Android agents)
- React Native (cross-platform mobile agents)
import { CheckoutKit } from '@shopify/checkout-kit-js';
// Initialize Checkout Kit with agent credentials
const checkout = new CheckoutKit({
storefrontAccessToken: process.env.SHOPIFY_STOREFRONT_TOKEN,
domain: 'merchant-store.myshopify.com',
});
// Create a cart from agent-selected products
const cart = await checkout.createCart({
lines: [
{
merchandiseId: 'gid://shopify/ProductVariant/12345',
quantity: 1,
},
],
buyerIdentity: {
email: 'customer@example.com',
countryCode: 'US',
},
});
// Generate a checkout URL or embed checkout inline
const checkoutUrl = cart.checkoutUrl;
Checkout Kit uses Storefront API access tokens, which are public tokens safe to embed in client-side code. Never expose your Admin API tokens in agent-facing code. The Storefront token scoping ensures agents can only perform buyer-facing operations.
Agentic Storefronts
Agentic storefronts are the surfaces where AI agents present products and facilitate purchases. Shopify merchants do not need to build custom integrations for each agent platform -- Shopify handles the plumbing.
Currently Supported Agent Platforms
ChatGPT Shopping: OpenAI's ChatGPT can browse Shopify's product catalog, show product cards with images and pricing, and link directly to checkout. Merchants appear in ChatGPT shopping results automatically once their products are indexed.
Microsoft Copilot: Through the Copilot Commerce integration, Shopify products appear in Copilot search results and conversational responses. The integration supports rich product cards with buy buttons.
Perplexity Shopping: Perplexity's answer engine surfaces Shopify products with direct purchase links when users ask shopping-related questions.
Custom Agents: Any developer can build a shopping agent using the Catalog API and Checkout Kit. This is where the real opportunity lies for developers in this course.
Dev Dashboard for AI Shopping
Shopify provides a dedicated section in the Partner Dashboard for monitoring and managing agentic commerce integrations.
Dashboard Features
- Agent Analytics: Track which AI agents are driving traffic and conversions
- Product Feed Health: Monitor how your products appear in the Catalog API index
- Conversion Funnels: See drop-off rates from agent discovery to checkout completion
- Agent-Specific Optimization: A/B test product descriptions optimized for AI comprehension
- Revenue Attribution: Understand which percentage of revenue comes from agent-driven purchases versus traditional channels
The Catalog API is currently in a controlled rollout. Not all merchants are automatically indexed. Merchants must meet certain quality thresholds (active store, valid shipping rates, clear product data) to appear in agent search results. Check the Partner Dashboard for your store's indexing status.
The Developer Opportunity
As a developer, agentic commerce opens several new categories of applications:
- Custom Shopping Agents -- Build specialized agents for niche markets (e.g., a wine sommelier agent that recommends bottles from Shopify wine merchants)
- Agent Optimization Tools -- Help merchants optimize their product data for AI discovery
- Multi-Agent Orchestration -- Build systems that coordinate multiple specialized agents for complex purchasing decisions
- Agent Analytics Platforms -- Provide merchants with deeper insights into agent-driven commerce
What You Will Build in This Module
Throughout this module, you will build a complete agentic commerce pipeline:
- Query the Catalog API to discover products based on natural language
- Build a conversational shopping flow using Claude as the AI backbone
- Integrate Checkout Kit to complete purchases programmatically
- Deploy a custom shopping agent that works across multiple surfaces
Continue to the next lesson on Sidekick Extensions to learn how Shopify's built-in AI assistant can be extended with custom functionality for merchants.