How to add business schema and allow AI crawlers on Shopify
The short answer
On Shopify, the default robots.txt already lets crawlers reach your products, collections and pages, and has no rules against AI crawlers, so most stores need no change. Check you haven’t added blocking rules in a robots.txt.liquid template, confirm your theme outputs product structured data, and add business markup to your home page.
Which AI crawlers matter
AI companies run separate crawlers for search and for training. The search and user crawlers decide whether your store can appear in AI answers; training crawlers are a separate choice.
| Crawler | Whose | What it does | If you block it |
|---|---|---|---|
| OAI-SearchBot | OpenAI | Finds pages for ChatGPT search | Your site is not shown in ChatGPT search answers |
| ChatGPT-User | OpenAI | Visits a page when a ChatGPT user’s question needs it | OpenAI says robots.txt may not apply, because a person asked |
| Claude-SearchBot | Anthropic | Indexes pages for Claude’s search | You may be less visible in Claude’s answers |
| Claude-User | Anthropic | Fetches a page when a Claude user asks | Claude can’t retrieve your page for that person |
| PerplexityBot | Perplexity | Surfaces and links sites in Perplexity results | Perplexity says to allow it if you want to appear in its results |
| Perplexity-User | Perplexity | Visits a page during a Perplexity user’s question | Perplexity says it generally ignores robots.txt, because a person asked |
| Googlebot | Builds Google Search, which Gemini can ground answers in | You drop out of Google Search | |
| Google-Extended | A robots.txt token, not a separate crawler: whether Gemini may use your pages for training and grounding | Gemini may not use your pages to ground its answers (Google Search is not affected) | |
| GPTBot, ClaudeBot | OpenAI, Anthropic | Collect pages that may be used to train future models | Signals you don’t want your pages used for training; the search crawlers above are set separately |
Part 1: Let AI crawlers in on Shopify
What the default robots.txt does
Shopify says its default robots.txt works for most stores. It allows crawlers to request your public content (products, collections, pages, blogs and policies) and blocks private areas such as the admin, cart, checkout, account and order pages, plus filtered and sorted collection pages. It has no rules aimed at AI crawlers (Shopify). Shopify also says it handles bot management for stores at the network level, with no action needed from you.
Check you haven’t added blocking rules
Open your-store.com/robots.txt. If it contains lines like these, someone has customized it:
# These lines tell ChatGPT's and Perplexity's search crawlers to stay out.
# If you see something like this and want to be recommended, remove it.
User-agent: OAI-SearchBot
Disallow: /
User-agent: PerplexityBot
Disallow: /Custom rules live in a robots.txt.liquid template in your theme. Shopify’s steps: from your Shopify admin, go to Online Store, click the menu next to your theme and choose Edit code, and look in the templates folder (Shopify). Remove the lines that block crawlers you want, and save. Shopify calls this an unsupported customization and warns that mistakes can cost you all your search traffic, so duplicate your theme first and change only what you need. Shopify also notes that deleting an old template restores the current default.
If your domain runs through Cloudflare
Shopify recommends removing third-party workarounds such as Cloudflare before editing robots.txt (Shopify). If your domain does pass through Cloudflare, check its AI crawler settings too: see Is Cloudflare blocking AI assistants from your site?
Part 2: Add structured data on Shopify
Product structured data
Product structured data tells machines each item’s name, brand, price, currency and availability. Google’s product structured data guide lists the fields. Many Shopify themes already output it, so paste a product page address into the Rich Results Test first. If products show up there, don’t add a second copy; if they don’t, ask your theme developer or look for an app that adds it.
Business structured data for the home page
If customers can visit a physical shop, describe it with schema.org’s LocalBusiness type or a more specific one such as ClothingStore. If you only sell online, use Organization or OnlineStore instead and leave out the address and opening hours. A starting point for a shop with an address:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Store",
"name": "Your Business Name",
"url": "https://www.your-site.example/",
"telephone": "+1-000-000-0000",
"address": {
"@type": "PostalAddress",
"streetAddress": "Your street address",
"addressLocality": "Your city",
"addressRegion": "Your state",
"postalCode": "Your ZIP code",
"addressCountry": "US"
},
"openingHoursSpecification": [{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "09:00",
"closes": "17:00"
}],
"sameAs": [
"https://www.example.com/link-to-one-of-your-official-profiles"
]
}
</script>To add it yourself, open Edit code as above (Shopify), open your theme’s main layout file (usually layout/theme.liquid) and paste the block just before the closing </head> tag, wrapped so it only appears on the home page:
{% if template.name == 'index' %}
<!-- paste your <script type="application/ld+json"> block here -->
{% endif %}If you’d rather not touch theme code, apps in the Shopify App Store can add business markup for you. Whichever you choose, keep a copy of the original file.
Part 3: Test it
- Run your home page and a product page through the Rich Results Test or the Schema.org validator.
- Reload
your-store.com/robots.txtand confirm the blocking lines are gone. - Ask ChatGPT, Claude, Perplexity and Gemini a question your shoppers ask. Changes show up only after each assistant re-reads your pages.
Checklist
- robots.txt has no Disallow lines for the AI search crawlers you want
- Any robots.txt.liquid template reviewed, with a theme backup
- Cloudflare AI crawler settings checked, if your domain uses Cloudflare
- Product structured data present once per product page
- LocalBusiness, Organization or OnlineStore markup on the home page
- Markup passes the Rich Results Test or the Schema.org validator
Frequently asked questions
Does Shopify block ChatGPT or other AI crawlers?
Shopify’s default robots.txt has no rules aimed at AI crawlers; it blocks only private areas like the admin, cart, checkout and account pages. Shopify also runs its own bot management at the network level. Blocking only happens at the robots.txt level if you or an app add rules to a robots.txt.liquid template.
Are my Shopify products in ChatGPT shopping results?
OpenAI says Shopify products are included through Shopify Catalog without extra work from merchants. Shopify adds that blocking AI crawlers in robots.txt does not stop Shopify Catalog from sending product data to agentic storefronts you have activated.
Should I use LocalBusiness or Organization markup for my store?
Use LocalBusiness, or a more specific type like ClothingStore, if customers can visit a physical shop. If you only sell online, Organization or schema.org’s OnlineStore type describes you better.
Sources
- Shopify Help Center: Editing robots.txt.liquid
- Shopify developer docs: Customize robots.txt
- Shopify Help Center: Editing theme code
- OpenAI Help Center: Shopping with ChatGPT search
- OpenAI: Overview of OpenAI crawlers
- Anthropic: Does Anthropic crawl data from the web, and how can site owners block the crawler?
- Perplexity: Perplexity crawlers
- Google: Google’s common crawlers (including Google-Extended)
- Google Search Central: Introduction to robots.txt
- Google Search Central: Product structured data
- Google Search Central: Local business structured data
- Schema.org: OnlineStore
- Google Rich Results Test
- Schema.org Markup Validator
See what AI says about your business
The free Citable Search scan asks ChatGPT, Claude, Perplexity and Gemini a question your customers ask, 3 times each, and shows whether they name you, who they recommend instead, and your top 3 fixes in plain English. No card needed.
Start a free scan