Content and technical

Schema Markup for AI Search: What Helps and What Doesn’t

Written by: Published: Last updated: 6 min read

Quick Summary

Summarize this article instantly with your preferred AI model.

Schema helps AI read. Not quote you. Where JSON-LD goes, which types to use, and what it can’t do. Illustration: a web page lifted to reveal a structured data layer that a crawler bot reads.

Short answer

Schema markup is structured data, usually JSON-LD in a script tag, that states facts about a page, such as who you are, what a product costs or where a business is, in a form machines read reliably. Put it in the HTML the server sends, matched to what the page visibly says. It helps AI engines read your facts correctly, but alone it won’t make them cite you.

Key takeaways

  • Where it goes: a JSON-LD script tag in the page’s HTML, in the head or the body. Crawlers have to receive it in that HTML, so don’t rely on scripts that add it later.
  • What to use: Organization on the home page, Product on product pages, LocalBusiness for locations, Article on posts, FAQPage where a page has real FAQs.
  • Schema helps engines identify entities and read facts like prices, hours and authors accurately.
  • Content still does the heavy lifting. A page with perfect markup and a vague answer won’t be quoted.
  • Markup must match the visible page, because marking up content that isn’t there breaks search guidelines.

What is schema markup, in plain English?

A web page is written for people. Schema markup is a small, separate block of code on the page written for machines. It uses a shared vocabulary from schema.org to state facts in a fixed format. It can say that this page is about an Organization called X, with this logo and these social profiles; this Product costs this much and is in stock; this LocalBusiness opens at nine on Saturdays.

Search engines have used schema for years to understand pages and show rich results. AI engines that search the web read the same pages, so the same markup is available to them. What it actually changes is the real question.

Where should you put schema code?

The recommended format is JSON-LD, a script tag with type "application/ld+json" containing the structured data. Google accepts it in the head or the body of the page. Position matters less than making sure it is in the HTML crawlers receive.

  1. 1Add it server-side or at build time. Many AI crawlers fetch your HTML without running JavaScript. If your schema is only injected by a tag manager or a client-side script, some crawlers may never see it.
  2. 2One block per entity, or one graph. You can add several JSON-LD blocks, or one block with an "@graph" list. Either works. Keep IDs consistent so the Organization on every page is the same entity.
  3. 3Use your platform’s fields where they exist. Most CMSs and ecommerce platforms generate Product, Article or Organization markup from the data you enter. Fill those in properly before you write any custom code.
  4. 4Validate it. Run the page through the Schema Markup Validator and Google’s Rich Results Test, then view the page source to confirm the markup is in the delivered HTML.

Which schema types should each page use?

Most sites are well covered by a handful of types, used on the right pages and filled in completely.

Page typeSchema typeKey properties to fillWhat it helps engines get right
Home or about pageOrganizationname, url, logo, sameAs, descriptionWhich entity you are, and which profiles belong to you
Product pageProduct with Offername, brand, description, sku or gtin, offers (price, currency, availability), aggregateRating where genuinePrices, availability and attributes, stated exactly
Location or local business pageLocalBusiness (or a subtype such as Dentist, Plumber)name, address, telephone, openingHoursSpecification, areaServed, geoName, address, phone and hours, consistent with your listings
Blog post or guideArticle or BlogPostingheadline, author (Person), datePublished, dateModified, publisherWho wrote it and how current it is
Page with real FAQsFAQPagemainEntity: each Question with its acceptedAnswerWhich questions the page answers, and the answers
Any page in a hierarchyBreadcrumbListitemListElement in orderWhere the page sits on your site

Fill in fewer types completely rather than many types partly. Empty or wrong properties help no one.

For local businesses, LocalBusiness markup is the structured companion to a consistent name, address and phone across your listings; see how local businesses get named by ChatGPT. For catalogs, see getting products recommended in AI shopping.

What schema markup doesn’t do

  • It doesn’t make an engine cite you. Engines cite pages that answer the question well, and markup on a vague page just gives you a well-labelled vague page.
  • It doesn’t replace visible content. If a fact is only in the markup and not on the page, search guidelines treat that as misleading. Mark up what is there.
  • It doesn’t guarantee rich results. Google decides which rich results to show. It sharply limited FAQ rich results in 2023, for example, though FAQPage markup still describes the page accurately.
  • It doesn’t fix access. If AI crawlers are blocked by robots.txt or a CDN rule, they never read the markup. Run an AI crawler access audit first.
  • It isn’t a shortcut to authority. Adding review markup to ratings you invented, or marking up content as authored by experts who didn’t write it, breaks guidelines and trust.

Schema is one item on a longer list. Whether you are cited usually comes down to the content itself, the page format and third-party mentions. Our guide to the page types AI engines cite most covers the content side, and the GEO audit checklist puts schema in context with everything else.

Frequently asked questions

Where do I put schema code on my website?

Add JSON-LD in a script tag in the page’s HTML, in the head or the body. Make sure it is in the HTML the server sends, not only injected later by JavaScript or a tag manager, because some AI crawlers don’t run scripts.

Does schema markup help with ChatGPT?

It can help ChatGPT and other engines read your facts accurately, such as prices, hours and which profiles are yours. It doesn’t make ChatGPT cite you by itself. A direct, specific answer on the page matters more.

Is JSON-LD better than microdata?

For most sites, yes. JSON-LD sits in one block separate from the page layout, so it is easier to add, maintain and validate. Google recommends it. Microdata still works if your platform already uses it.

Should I still use FAQPage schema?

Use it on pages that genuinely have a question-and-answer section. Rich results for FAQs are now limited in Google, but the markup still describes the page accurately for any machine reading it. Don’t add it to pages without visible FAQs.

What schema types matter most for AI search?

Organization for who you are, Product with Offer for what you sell, LocalBusiness for locations, Article for content with authors and dates, and FAQPage for real FAQs. Whichever you use, fill it in completely and keep it matched to the visible page.