Blog / AI & search /

How to test AI-generated schema against the visible page

The schema validates. Green ticks everywhere. The AI wrote it in four seconds.

Then you read it next to the page and notice it mentions a review rating the page never shows.

Schema should reflect visible, current content. It isn’t somewhere to slip in claims the page doesn’t make. Before you use generated markup, compare every property with the rendered page and the actual structured-data requirements.

Start with the page, not the code

Identify what the page is and which information is genuinely visible to visitors. An article, product and organisation have different relevant properties. I’d rather ship less markup that’s true than add a type just because a model suggested it. If the page does not support the information, leave it out. Structured data should describe the page, not act as a hidden marketing brief.

Check names, dates, prices, availability, authorship and other changing details against the page and its source data. A generated example may invent a value or reuse a stale one. Confirm the variant is right and that any price is the one the visitor sees under the same conditions. Never insert a review, rating or business detail that isn’t backed by real visible content.

Compare every property

Create a property-by-property review: markup value, visible source, and expected meaning. If a value is generated from a template, inspect more than one page to ensure the mapping works across cases. Empty fields, defaults and special characters can reveal errors that a single clean sample hides. Check how the markup behaves when content is updated or removed.

I run a structured-data testing tool to catch syntax problems, then inspect the page itself. A valid result only means the tool could parse the markup. It doesn’t prove eligibility for a search feature, or that every claim is accurate. Read the platform’s current documentation for requirements when making a consequential implementation decision.

Keep structured data in sync

Look for duplicate markup added by a theme, plugin and custom code. Multiple sources can disagree about the same entity. Decide which system owns the data and remove redundant output where appropriate. Test the live rendered page after deployment, not only the editor preview, and review a sample of each affected template.

If an AI workflow generates schema, require a human to check both the markup and its visible source. Keep generation constrained to fields present in the page or an approved data source. Log the mapping and owner so future editors know where to correct errors. When the page changes, recheck the structured data rather than assuming it updates automatically.

Check the complete entity

Structured data often describes more than one thing on the same page. An article can identify its author and publisher; a product page may include an offer and a brand. Check that identifiers and relationships make sense, rather than validating isolated fields only. A generated graph can accidentally connect the wrong author, organisation or product if the prompt supplied a generic template.

Inspect dates and identifiers in the rendered output. Publication and modification dates should reflect the page’s actual history and site policy. Do not let a deployment timestamp become a false publication date. URLs should resolve to the intended page, and image references should point to usable images that appear in the relevant context. A syntactically valid value can still be misleading.

Consider how the markup behaves for missing values. If an optional field is empty, it should not produce a placeholder or a fabricated default. Test a page with a missing image, author or price if those cases exist. Also check for duplicate or conflicting entities output by a theme and plugin. A clear ownership rule helps the team know where a correction belongs.

Decide what evidence is enough

For routine markup, a focused sample and an automated validation may be enough to catch common issues. For a site-wide template change, inspect several representative pages and get someone who understands the data model to review it. If a property’s meaning is unclear, consult current official documentation before applying it broadly.

Keep a record of which source field populates each value. This is helpful when the visible page and schema drift apart after a content model changes. An editor should know whether to fix a CMS field, a template or a plugin setting, not add duplicate markup over the symptom.

A useful test is to hide one structured-data property temporarily in a test copy and ask whether the visible page still makes sense. If the page gets confusing without the markup, it’s leaning on structured data for something people should be able to see. Restore the test copy afterwards and make the visible content the primary source of truth. Structured data can describe a page; it should not be the only place an important fact appears.

When a page is rendered from a CMS, test the mapping at the template level and on a few live examples. A good mapping should update when the source content changes, not require a second manual edit. Check the output after publishing and after a content edit, including unusual punctuation and missing optional fields. This catches a common mismatch: the code is correct for the sample but wrong for the real collection.

The temptation is to ask how to add more schema. A better question is whether each property helps describe what a user can actually see. Remove unsupported detail even if the code validates.

Which generated field would you compare with the visible page first?