AI tools like ChatGPT and Google’s AI Overviews try to pull clear facts from pages. Structured data spells out who wrote the page, when it was updated and what it is about. It is not a magic switch, but it removes guesswork about your content.
To put it in a script tag, wrap the JSON like this:
JSON-LD is a small block of code that describes your page in a format search engines understand. It can say "this is an article by this author" or "this is a software product with this price".
Will schema get me rich results?
It can make you eligible, but there is no guarantee. Google decides when to show rich results. Since 2023, Google shows FAQ rich results mainly for well-known government and health sites, and it no longer shows HowTo rich results. The markup still helps search engines and AI tools understand your page.
Where do I put the code?
Paste the script tag into the HTML of the page it describes, usually in the head. Many CMS tools have a field for custom code or a plugin that adds it for you.
Does the schema have to match the page?
Yes. Everything in your schema must be visible on the page. Marking up content that isn't there breaks Google's guidelines and can lead to a manual action.
How do I test my schema?
Use Google's Rich Results Test or the Schema.org validator. Both show errors and missing fields.