Optimize Shopify for AI Agents

Learn how to edit your Shopify Liquid theme files, expose schema markups, and configure llms.txt to make your catalog easily parsed by autonomous shoppers.

1 Allow AI Crawlers in robots.txt.liquid

Shopify stores automatically restrict many bots. You can customize this by creating a robots.txt.liquid file in your Online Store -> Themes -> Edit Code panel. Add rules to ensure search agents are not blocked:

# Allow AI Shopping Crawlers User-agent: GPTBot Allow: /products/* Allow: /collections/* User-agent: PerplexityBot Allow: /products/* User-agent: ClaudeBot Allow: /products/*

2 Enhance JSON-LD Schema Markup

Verify that your product page template outputs clear variant metadata. In your Shopify theme's product.liquid, inject dynamic JSON-LD code containing precise size and color options:

<script type="application/ld+json"> { "@context": "https://schema.org/", "@type": "Product", "name": "{{ product.title }}", "image": "{{ product.featured_image | image_url }}", "description": "{{ product.description | strip_html | escape }}", "offers": [ {% for variant in product.variants %} { "@type": "Offer", "sku": "{{ variant.sku }}", "price": "{{ variant.price | money_without_currency }}", "priceCurrency": "{{ shop.currency }}", "availability": "https://schema.org/{% if variant.available %}InStock{% else %}OutOfStock{% endif %}" }{% unless forloop.last %},{% endunless %} {% endfor %} ] } </script>

3 Create and Upload your llms.txt file

Generate your file using the llms.txt Generator. Since Shopify doesn't support uploading text files to the root directory directly, create a new theme page with template layout page.liquid (or a custom landing layout), set its URL handle to /pages/llms-txt, and redirect /llms.txt to this page under Online Store -> Navigation -> URL Redirects.

4 Connect PointNXT Real-time Sync

PointNXT syncs inventory variations with sub-second speed and exposes optimized XML feeds and conversational integrations natively for your Shopify catalogs, bridging the gap between agent discovery and chat checkout.

Connect Shopify to PointNXT