How to Add FAQ Schema for AI Search (With a Working Example)
Add FAQ schema for AI search the right way: write real questions, ship valid FAQPage JSON-LD that matches your visible text, and validate it before publishing.
GEO · 7 min read · Step-by-step
If you want to know how to add FAQ schema for AI search, the short version is: write a real FAQ section on the page, then describe that exact section with FAQPage JSON-LD so machines can lift the questions and answers without guessing. The schema does not create visibility by itself — what it does is remove ambiguity. An answer engine extracting facts from your page gets clean, attributable Q&A pairs instead of prose it has to interpret. This guide walks through writing the questions, the exact markup, and the validation step most people skip.
Step 1: Write questions your buyers actually ask
FAQ schema amplifies a good FAQ section; it cannot rescue a fake one. Source your questions from reality:
- Support tickets and sales calls — the wording customers use, not your internal terminology.
- "People also ask" boxes and autocomplete for your main topics.
- The objections that appear in your competitors' reviews.
Aim for 3–6 questions per page, each with a self-contained answer of one short paragraph. An answer that needs the rest of the page to make sense will not survive being quoted on its own — which is the entire point.
Step 2: Put the FAQ on the page as visible text first
The questions and answers must exist as normal readable content on the page. Marking up hidden or absent content violates Google's structured-data guidelines and is ignored or worse by everyone else. Write the section, style it however you like (accordions are fine — the text is still in the HTML), and only then add the markup that describes it.
Step 3: Add the FAQPage JSON-LD
Place this in the page's <head> or at the end of the body, with your real questions and answers copied word-for-word from the visible section:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "How much does the Pro plan cost?",
"acceptedAnswer": {
"@type": "Answer",
"text": "The Pro plan costs $19 per month, or $210 per year."
}
},
{
"@type": "Question",
"name": "Can I cancel at any time?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. You can cancel in one click from your account page, and access continues until the end of the paid period."
}
}
]
}
</script>
The details that break most implementations: the text values must match the visible answers (minor formatting differences are fine, different facts are not), answers must be plain text without HTML tags, and every question on the page that you mark up must actually be in the markup — partial coverage confuses validators and extractors alike. If generating this by hand for every page sounds error-prone, it is; AEOTools' fix workflow generates FAQPage JSON-LD from your page's own FAQ section and validates it against the page before you ship it.
Step 4: Validate before you publish
Run the page through a structured-data validator and fix every error, not just the fatal-looking ones. The three failures we see most:
- Mismatched text — the JSON-LD answer was edited after the page copy changed. Re-copy from the live text.
- Broken JSON — a trailing comma or an unescaped quote inside an answer. Answers containing
"characters are the usual culprit; escape them or reword. - Schema on the wrong page — FAQPage markup pasted into a template and inherited by pages with no FAQ section. Those pages now claim Q&A they do not contain.
AEOTools' page diagnostics include FAQ-section and FAQPage-schema checks among their 39 automated checks, so a missing or invalid block shows up in the same report as your other machine-readability issues.
Step 5: Set expectations honestly
FAQ schema is a clarity improvement, not a ranking trick. Google restricted FAQ rich results to a narrow set of sites in 2023, so do not do this for SERP decorations. Do it because answer engines extract structured Q&A more reliably than prose — and because writing real FAQs improves the page for humans too. Measure the effect the same way you measure everything in AI search: sample the questions before and after, and watch your citation rate.
FAQ
Does FAQ schema guarantee AI engines will cite my page?
No. Nothing guarantees a citation. FAQ schema makes your answers easier to extract and attribute accurately; whether an engine chooses your page still depends on crawl access, relevance, and corroboration. Treat it as removing a barrier, not buying a placement.
How many questions should my FAQ schema include?
As many as are genuinely on the page — typically 3–6 for a product or guide page. Padding the markup with questions that are not visible on the page, or stuffing in questions nobody asks, violates structured-data guidelines and adds no extraction value.
Should the JSON-LD answers match the page word for word?
Substantively, yes. The acceptedAnswer text should say exactly what the visible answer says. Whitespace and punctuation differences are harmless; different prices, dates, or claims between the two versions are a real problem — for validators and for any engine comparing them.
Can I put FAQ schema on my homepage?
You can if the homepage genuinely contains an FAQ section. Most homepages do not, and forcing one in usually hurts more than it helps. Product pages, pricing pages, and guides — where buyers really do ask repeatable questions — are where FAQ schema earns its place.