Learning Path
Pick the path that fits what you are working on
Websites
Applications
AXD Fundamentals
Schema markup for agents
Structured data (a set of labels in your page's code, also called schema markup) spells out facts a person would read off the page: who wrote it, when it last changed, which company you are, and what a product costs. Adding it won't buy you AI citations by itself. What it does is take the guesswork away for any software reading your pages, so it gets those facts right. Add it for the things it reliably does, and treat any boost in AI citations as possible but unproven.
First, the part people argue about
You'll find confident claims both ways about whether structured data gets you into AI answers, so it helps to be precise about what is known.
Google's position
Google's Search Central guide, Optimizing your website for generative AI features, says structured data isn't required to appear in its AI features and that there's no special markup to add. Google still recommends it for rich results in ordinary search (the extras such as star ratings, prices, and breadcrumbs shown with a link).
The dissent
Some practitioners think the AI tools that quote your pages probably read these labels too, whatever Google says.
Where that leaves you
This is still unresolved. Only the teams who build these AI tools can see whether a block of JSON-LD (the code format every example on this page uses) changes which sources an answer relies on. From the outside, you can't prove or disprove Google's guidance or the practitioners' argument, so don't treat either one as settled.
For your decision it hardly matters, because the benefits below don't depend on that question and already justify the work. Add schema for those. If it also helps you get cited, you get that for no extra effort. Just don't let markup replace the basics of good content, kept up to date, with clear sources. Neither side of the argument claims schema can stand in for those.
The benefits that don't depend on AI citations
Rich results in classic search
Google uses valid markup to show extras such as breadcrumbs, product prices, review stars, recipe cards, event listings, and video key moments in its results. Ordinary search still sends visitors that AI answers don't, though fewer than it used to, so it pays to look your best in the results you still get.
Saying exactly who you are
This may be the most useful thing markup does. A sameAs list (links to your profiles elsewhere) pointing at Wikidata (Wikipedia's public database of facts), Wikipedia, LinkedIn, Crunchbase, or GitHub tells software that the company named on your page is yours, not another business with that name, and that your author is the person behind those profiles. Working out which real company or person a name refers to is hard for software, and you can settle it for free by saying so.
Dates and authors software can read
Working out "updated last spring" from the text is guesswork. A dateModified written as an exact ISO 8601 date (the standard 2026-08-11 format), and an author linked to a real, checkable identity, are not. An exact date also lets any system reading the page judge how current it is. In a July 2025 study of about 17 million citations, Ahrefs found that pages AI tools cite are about 25.7% newer on average than pages in Google's ordinary results. That's a correlation, not proof.
Product and offer feeds
The systems that let AI agents shop for people (agentic commerce protocols) read product data, not paragraphs. Price, currency, availability, SKU (your stock code), and how long the price is valid are the fields a buying agent needs to compare you with someone else. There's no speculation in this one, because product data is the format those agents take in. The e-commerce guide shows how that has played out for real shops.
Notice what's missing from that list: "makes ChatGPT recommend you." It settles questions that software would otherwise answer by guessing. The rest of this page shows how to write it so it does that job, one type of page at a time, starting with articles.
Article
Article markup is the one you'll use most, so put it on every article, guide, and blog post. Everything in it should also be visible on the page itself. Schema repeats what the reader can see, and it is never a place to claim things the page doesn't say.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How Answer Engines Choose Which Sources to Cite",
"description": "A field guide to citation selection in generative search, based on observed crawler and retrieval behavior.",
"datePublished": "2026-03-04T09:00:00-08:00",
"dateModified": "2026-08-11T14:20:00-07:00",
"author": {
"@type": "Person",
"@id": "https://example.com/#/schema/person/rmoss",
"name": "Rebecca Moss",
"jobTitle": "Principal Research Engineer",
"url": "https://example.com/authors/rebecca-moss",
"sameAs": [
"https://www.linkedin.com/in/rebeccamoss",
"https://github.com/rmoss",
"https://orcid.org/0000-0002-1825-0097"
]
},
"publisher": {
"@type": "Organization",
"@id": "https://example.com/#organization",
"name": "Example Research",
"logo": {
"@type": "ImageObject",
"url": "https://example.com/logo-600x60.png",
"width": 600,
"height": 60
}
},
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://example.com/research/citation-selection"
},
"image": ["https://example.com/img/citation-selection-1200x675.png"],
"inLanguage": "en-US"
}
</script>Which fields matter most
- dateModified is the one people forget to update. Software uses it to judge how current a page is, so it only helps if it's true. If
dateModifiedchanges every time the site is rebuilt while the text hasn't changed since 2023, it's a false claim, and an AI tool can catch it by comparing your text with the copy it saved last time. A visible "updated today" on unchanged content costs you human readers' trust too. - author as a Person, not just a name.
"author": "Rebecca Moss"is valid but tells software almost nothing. APersonentry with a URL and asameAslist makes a claim anyone can check against the outside world, and being checkable is what makes it useful. - sameAs on the author. Use ORCID for researchers, LinkedIn and GitHub for working professionals, or a personal site with an
aboutpage. These links tie the name on the byline to a real person with a track record. There's more on this in trust and authority signals. - mainEntityOfPage says which page this article is the main subject of.
- headline should match the visible
h1(the main heading on the page). Google has cut off long headlines in rich results in the past. More importantly, a headline that disagrees with the page heading tells software the page contradicts itself.
Organization
Describe your organization once, on your homepage or your about page. Give it a fixed @id (a permanent ID, written as a web address), and point to that @id from every other page instead of describing the organization again each time.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"@id": "https://example.com/#organization",
"name": "Example Research",
"legalName": "Example Research, Inc.",
"url": "https://example.com/",
"logo": {
"@type": "ImageObject",
"url": "https://example.com/logo-600x60.png"
},
"foundingDate": "2019-06-01",
"sameAs": [
"https://en.wikipedia.org/wiki/Example_Research",
"https://www.wikidata.org/wiki/Q00000000",
"https://www.linkedin.com/company/example-research",
"https://github.com/example-research",
"https://www.crunchbase.com/organization/example-research"
],
"contactPoint": [
{
"@type": "ContactPoint",
"contactType": "customer support",
"email": "support@example.com",
"telephone": "+1-555-0100",
"availableLanguage": ["en", "es"],
"areaServed": "US"
},
{
"@type": "ContactPoint",
"contactType": "press",
"email": "press@example.com"
}
],
"address": {
"@type": "PostalAddress",
"streetAddress": "410 Mission Street, Suite 300",
"addressLocality": "San Francisco",
"addressRegion": "CA",
"postalCode": "94105",
"addressCountry": "US"
}
}
</script>The sameAs list matters most in this block, for a simple reason. Any system working with information about your organization first has to decide which organization you are. There may be other companies with your name or one close to it, a closed company that used to own your domain, or a person whose surname is your brand. Software sorts that out whether or not you help it.
sameAs is how you help. Linking to your Wikidata entry (its Q-number) or your Wikipedia article is the strongest signal, because knowledge graphs (the databases of people, places, and companies that search engines and AI tools draw on) are organized around those identifiers. You're handing over the exact ID instead of asking for a best guess. LinkedIn, GitHub, and Crunchbase are weaker but still useful backup. If you have no Wikidata entry, the usual route is to earn independent coverage first. An entry you write yourself for a company no one else has covered tends to get removed, so it isn't the shortcut it looks like.
One rule: every link in sameAs must be a profile of this organization, either one you control or one clearly about you. It is not a place to collect links for SEO. Stuffing it with directory listings you don't own weakens the signal, and across many pages it looks like manipulation.
FAQPage
Know what to expect before you add this one. In an August 2023 Search Central post, Google said FAQ rich results would only show for a small set of well-known government and health sites. If you're adding FAQPage markup to get the expandable questions under your link in Google results, that no longer happens.
It still earns its place for a different reason. It turns a section that only looks like questions and answers into one that says so in code. Software that would otherwise have to guess "this h3 is a question and the paragraph after it is the answer" is told outright, with the start and end of each answer marked. That helps anything that lifts a single answer out of your page.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"@id": "https://example.com/support/billing-faq#faq",
"mainEntity": [
{
"@type": "Question",
"name": "When does my plan renew?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Plans renew on the monthly anniversary of your signup date. If you signed up on the 31st, renewal falls on the last day of shorter months."
}
},
{
"@type": "Question",
"name": "Do you refund partial months?",
"acceptedAnswer": {
"@type": "Answer",
"text": "No. Canceling stops the next renewal and your account stays active until the end of the paid period. We do not prorate refunds for the current period."
}
}
]
}
</script>- Every question and answer in the markup must appear on the page, in full, where visitors can see it. Marking up answers that exist only in the JSON-LD is a common way for sites to earn a manual action (a penalty applied by Google's reviewers) for their markup.
- Write answers as complete sentences that still make sense when quoted on their own. "No, see above" is useless to software pulling out one answer.
FAQPageis for questions you answer on your own page. Pages where your users post questions and answers, like a forum, useQAPagewith anacceptedAnswerandsuggestedAnswer. That's a different type with its own rules.
Product with Offer
Google checks this block against your product feed, and any agent that visits the page can read it. When a shopping assistant compares your product with two others, it compares these fields, not your product description.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"@id": "https://example.com/products/trail-runner-gtx#product",
"name": "Trail Runner GTX Waterproof Hiking Shoe",
"description": "Gore-Tex lined trail shoe with a 6mm drop, Vibram Megagrip outsole, and a 320g per-shoe weight in US M9.",
"sku": "TR-GTX-9-BLK",
"mpn": "TRGTX2026BLK09",
"gtin13": "0123456789012",
"brand": {
"@type": "Brand",
"name": "Example Outdoor"
},
"image": [
"https://example.com/img/trail-runner-gtx-1x1.jpg",
"https://example.com/img/trail-runner-gtx-4x3.jpg"
],
"color": "Black",
"material": "Recycled polyester mesh, Gore-Tex membrane",
"weight": {
"@type": "QuantitativeValue",
"value": 320,
"unitCode": "GRM"
},
"offers": {
"@type": "Offer",
"url": "https://example.com/products/trail-runner-gtx",
"price": "168.00",
"priceCurrency": "USD",
"priceValidUntil": "2026-12-31",
"availability": "https://schema.org/InStock",
"itemCondition": "https://schema.org/NewCondition",
"seller": {
"@id": "https://example.com/#organization"
},
"shippingDetails": {
"@type": "OfferShippingDetails",
"shippingRate": {
"@type": "MonetaryAmount",
"value": "0.00",
"currency": "USD"
},
"shippingDestination": {
"@type": "DefinedRegion",
"addressCountry": "US"
},
"deliveryTime": {
"@type": "ShippingDeliveryTime",
"handlingTime": {
"@type": "QuantitativeValue",
"minValue": 0,
"maxValue": 1,
"unitCode": "DAY"
},
"transitTime": {
"@type": "QuantitativeValue",
"minValue": 2,
"maxValue": 5,
"unitCode": "DAY"
}
}
},
"hasMerchantReturnPolicy": {
"@type": "MerchantReturnPolicy",
"applicableCountry": "US",
"returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
"merchantReturnDays": 60,
"returnMethod": "https://schema.org/ReturnByMail",
"returnFees": "https://schema.org/FreeReturn"
}
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.4",
"reviewCount": 218,
"bestRating": "5"
}
}
</script>- availability must be one of Schema.org's fixed values, written as a web address such as
https://schema.org/InStock, not the words "in stock". It also has to be true at the moment someone asks. - price and priceCurrency. Write the price as text with no currency symbol or thousands separator, and the currency as a three-letter ISO 4217 code such as USD. If the price changes by size or color, give each version its own
Offer, or use oneAggregateOfferwithlowPriceandhighPrice. A single price that only applies to the cheapest size is a mismatch waiting to be caught. - priceValidUntil is a real expiry date, and software reads it that way. Once it passes, some systems treat the offer as out of date. Set it from your actual pricing schedule and let your CMS (the system you publish your site with) move it forward for you.
- sku, mpn, gtin are your stock code, the manufacturer's part number, and the barcode number. They're how a comparison tool knows your listing and someone else's are the same physical product.
- shipping and returns may decide a comparison an agent makes, because they're the costs that surprise buyers.
BreadcrumbList
Breadcrumbs are the trail of links that shows where a page sits on your site, like Home, then Research, then this article. The markup is easy to generate from the structure of your site, Google still shows it in search results, and it tells someone who lands deep in your site where they are. There's no good reason to leave it out.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://example.com/"
},
{
"@type": "ListItem",
"position": 2,
"name": "Research",
"item": "https://example.com/research"
},
{
"@type": "ListItem",
"position": 3,
"name": "How Answer Engines Choose Which Sources to Cite"
}
]
}
</script>Two details to get right. Positions start at 1 and can't skip a number, and the last entry (the current page) usually leaves out item, since it's the page you're already on. The trail should match the breadcrumb visitors see on the page, not an idealized map of your site.
Connecting everything with @graph
Many sites get this part wrong. It's also what turns markup that describes one page into markup that shows how your organization, your authors, and your pages fit together.
The usual mistake looks like this. A page has four separate <script type="application/ld+json"> blocks for an Article, an Organization, a BreadcrumbList, and a WebSite. Each one is valid on its own, and none of them mentions the others. Software reading the page sees four unconnected things and has to guess that the Organization in block two is the one that publishes the Article in block one. Across your whole site, you've now declared dozens of separate organizations that happen to share a name.
The fix is @id. Give everything you mention more than once, such as your organization, your authors, and your website, a permanent ID that nothing else uses. Make it a web address you control, usually the page's canonical URL (its one official web address) plus a # and a name, like https://example.com/#organization. Describe each thing once, and everywhere else refer to it by its @id. Then put all of the page's markup in one @graph list, so the connections sit in a single document.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "https://example.com/#organization",
"name": "Example Research",
"url": "https://example.com/",
"sameAs": ["https://www.wikidata.org/wiki/Q00000000"]
},
{
"@type": "WebSite",
"@id": "https://example.com/#website",
"url": "https://example.com/",
"name": "Example Research",
"publisher": { "@id": "https://example.com/#organization" },
"inLanguage": "en-US"
},
{
"@type": "Person",
"@id": "https://example.com/#/schema/person/rmoss",
"name": "Rebecca Moss",
"url": "https://example.com/authors/rebecca-moss",
"jobTitle": "Principal Research Engineer",
"worksFor": { "@id": "https://example.com/#organization" },
"sameAs": [
"https://orcid.org/0000-0002-1825-0097",
"https://www.linkedin.com/in/rebeccamoss"
],
"hasCredential": {
"@type": "EducationalOccupationalCredential",
"name": "PhD, Computer Science",
"credentialCategory": "degree",
"educationalLevel": "Doctorate",
"recognizedBy": {
"@type": "CollegeOrUniversity",
"name": "Massachusetts Institute of Technology"
}
}
},
{
"@type": "WebPage",
"@id": "https://example.com/research/citation-selection",
"url": "https://example.com/research/citation-selection",
"name": "How Answer Engines Choose Which Sources to Cite",
"isPartOf": { "@id": "https://example.com/#website" },
"about": { "@id": "https://example.com/#organization" },
"breadcrumb": { "@id": "https://example.com/research/citation-selection#breadcrumb" },
"primaryImageOfPage": {
"@type": "ImageObject",
"@id": "https://example.com/research/citation-selection#primaryimage",
"url": "https://example.com/img/citation-selection-1200x675.png"
},
"datePublished": "2026-03-04T09:00:00-08:00",
"dateModified": "2026-08-11T14:20:00-07:00"
},
{
"@type": "BreadcrumbList",
"@id": "https://example.com/research/citation-selection#breadcrumb",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://example.com/" },
{ "@type": "ListItem", "position": 2, "name": "Research", "item": "https://example.com/research" },
{ "@type": "ListItem", "position": 3, "name": "How Answer Engines Choose Which Sources to Cite" }
]
},
{
"@type": "Article",
"@id": "https://example.com/research/citation-selection#article",
"isPartOf": { "@id": "https://example.com/research/citation-selection" },
"mainEntityOfPage": { "@id": "https://example.com/research/citation-selection" },
"headline": "How Answer Engines Choose Which Sources to Cite",
"author": { "@id": "https://example.com/#/schema/person/rmoss" },
"publisher": { "@id": "https://example.com/#organization" },
"image": { "@id": "https://example.com/research/citation-selection#primaryimage" },
"datePublished": "2026-03-04T09:00:00-08:00",
"dateModified": "2026-08-11T14:20:00-07:00",
"inLanguage": "en-US"
}
]
}
</script>Look at what that one document says that six separate blocks couldn't. Rebecca Moss works for the same organization that publishes the site, and that organization is the one with a specific Wikidata entry. The article belongs to this page, this page belongs to this website, and the breadcrumb belongs to this page rather than floating free. Without the links, software would have to guess every one of those connections.
A few rules for @id. Make it a web address, and keep it the same every time the site is rebuilt, so never generate it from a build number or from a database row that gets recreated. Use the same value for the same thing on every page. When several things share one address, tell them apart with the part after the #, such as #organization, #article, and #breadcrumb. If your CMS builds the markup piece by piece, keep all the @id values in one place in your code, so every piece points to the same ones instead of making up its own.
Common mistakes
Markup that contradicts the visible page
This is the mistake with real consequences. Google's rules for structured data require markup to describe content that visitors can see. Breaking that rule can remove rich results across your site, including pages that did nothing wrong. Typical examples are review stars for reviews no customer left, a price in the JSON-LD that differs from the price on the page, and FAQ answers that exist only in the markup. Even without a penalty, markup that disagrees with your text makes your site look unreliable to any software that compares the two.
Dates in schema that disagree with dates in the copy
This is a very common version of the mistake above. The byline says "Updated March 2026" because someone typed it, while dateModified says August because the template fills in the time the site was last built. Now the page makes two conflicting claims about how fresh it is, and software has no sound way to choose between them. Take both from the same place, one CMS field that the same code writes into the visible date and the JSON-LD, so they can't drift apart.
hasCredential as a bare string
hasCredential expects an EducationalOccupationalCredential object, not plain text. "hasCredential": "PhD Computer Science, MIT" is valid but says almost nothing useful. There's no awarding body, no type of credential, and no level. The object form splits those into separate fields software can act on:
"hasCredential": {
"@type": "EducationalOccupationalCredential",
"name": "Board Certification in Internal Medicine",
"credentialCategory": "certification",
"recognizedBy": {
"@type": "Organization",
"name": "American Board of Internal Medicine",
"url": "https://www.abim.org/"
}
}Entities with no @id links between them
The @graph section covers this, and it belongs on this list too. Markup that is valid but unconnected passes every validator and still says nothing about how things relate. If your page has an Organization and an Article and nothing ties them together, nothing tells software that the organization published the article.
Marking up content that is not on the page
Templates usually cause this. A product template adds aggregateRating to every product, including ones with no reviews, or a snippet shared across the whole site gives the Organization an award it never won. Only output a field when the data behind it exists, and leave it out when there is none.
Testing your markup and keeping it right
Run three checks, in this order. Each one catches something the other two miss.
1. Rich Results Test
search.google.com/test/rich-results shows which Google rich results your page qualifies for and which required fields are missing. It's narrow on purpose. It only reports on types Google shows something for, so it stays silent about a perfectly good block it has no use for. Test the live URL rather than pasted code, so you're checking what your server sends.
2. Schema.org validator
validator.schema.org checks your markup against the Schema.org vocabulary itself, not against the features one search engine happens to use. It catches misspelled field names, values of the wrong type, and types used where they don't belong. Those mistakes make your markup wrong for every system other than Google, and Google's tool lets them pass.
3. Check the HTML your server sends
People skip this one, and it matters most for AI agents. Many AI tools that fetch pages don't run JavaScript. Markup added in the browser by a tag manager (a tool that adds scripts to your pages), an analytics script, or a useEffect is invisible to them, even though it looks perfect in your browser's developer tools.
The third check takes one command, and it belongs in CI (the automatic checks that run whenever your code changes), not in a quarterly audit:
# Does the raw HTML contain your JSON-LD, before any JS runs?
curl -sL https://example.com/research/citation-selection \
| grep -o 'application/ld+json'
# Print and pretty-check the blocks that are actually in the response
curl -sL https://example.com/research/citation-selection \
| python3 -c "
import sys, re, json
html = sys.stdin.read()
blocks = re.findall(r'<script[^>]*application/ld\+json[^>]*>(.*?)</script>', html, re.S)
print(f'{len(blocks)} JSON-LD block(s) in server HTML')
for b in blocks:
json.loads(b) # raises on malformed JSON
print('all blocks parse')
"If that finds zero blocks while your browser shows them, your markup is being added in the browser, and every system that doesn't run JavaScript is missing it. In Next.js, render the JSON-LD as a <script> tag in a Server Component, such as your page.js or layout.js. A plain <script type="application/ld+json"> with dangerouslySetInnerHTML inside a server-rendered component ends up in the HTML. The same thing inside a 'use client' effect does not. There's more on why rendering matters in technical implementation.
Keeping it right after launch
- Generate the markup from the same data that builds the page. JSON-LD that someone edits by hand falls out of step with the page within a release or two, and generated markup can't.
- Add the check above to CI for one sample page from each template. It catches the day someone moves a component so that it only renders in the browser.
- Watch the structured data reports in Google Search Console for errors that show up across a whole template. One broken page is a content problem, but four hundred broken pages is a code problem.
- Test again after any upgrade to your CMS, framework, or tag manager. Those are the changes that quietly move your markup.
- Remove markup for rich results that no longer exist, rather than carrying it forever. If you keep
FAQPage, keep it on purpose, for the reason given in the FAQPage section.
Implementation checklist
- One
@graphper page instead of separate, unconnected blocks - Permanent
@idaddresses for the Organization, the WebSite, and each author's Person entry sameAson the organization pointing at Wikidata, Wikipedia, and profiles you own- Authors as
Personentries withsameAs, not plain names datePublishedanddateModifiedin ISO 8601, taken from the same field as the date visitors see- Every claim in the markup also visible on the page
- Credentials as
EducationalOccupationalCredentialobjects with arecognizedBy - Product offers with currency, availability, identifiers, and a real
priceValidUntil - All JSON-LD in the HTML your server sends, checked in CI
- Clean passes on both the Rich Results Test and the Schema.org validator
If a term here is new to you, the glossary explains the words used across agent experience optimization, and trust and authority signals covers how to build the credibility your markup points to.
Further reading from Field Notes
Posts with more on this topic, each with its date.
Stay Updated
A monthly email about AI search, AI crawler policy (the rules for the AI bots that visit websites), and new standards for agents. It includes every Field Note published that month, and you can unsubscribe at any time.