Shopify robots.txt.liquid Generator for AI Shopping Bots
In our 47-brand Shopify DTC benchmark, 17% of major stores block ChatGPT, Claude, and Perplexity shopping crawlers in robots.txt. Generate a safe robots.txt.liquid template below without breaking Shopify's default rules.
1. Choose which AI shopping crawlers to allow
{%- comment -%}
Save as templates/robots.txt.liquid in your Shopify theme.
Preserves Shopify's default checkout/admin rules while configuring AI shopping bots.
{%- endcomment -%}
{% for group in robots.default_groups %}
{{- group.user_agent -}}
{% for rule in group.rules %}
{{- rule -}}
{% endfor %}
{%- if group.sitemap != blank -%}
{{ group.sitemap }}
{%- endif -%}
{% endfor %}
User-agent: OAI-SearchBot
Allow: /products/
Allow: /collections/
Allow: /products.json
User-agent: GPTBot
Allow: /products/
Allow: /collections/
Allow: /products.json
User-agent: ClaudeBot
Allow: /products/
Allow: /collections/
Allow: /products.json
User-agent: PerplexityBot
Allow: /products/
Allow: /collections/
Allow: /products.json
User-agent: Google-Extended
Allow: /products/
Allow: /collections/
Allow: /products.json
2. Where to add this in Shopify Admin
- Open Online Store → Themes → Edit code in Shopify Admin.
- Under Templates, click Add a new template and select
robots(createstemplates/robots.txt.liquid). - Paste the snippet above, save, and verify your live store below.
Verify your live robots.txt & Product JSON-LD now
Run CartPulse's free 3-second AI-Shopping Readiness audit with zero signup.