Validate JSON-LD templates tuned for how AI assistants extract and cite information. Zero dependencies.
Project description
schema-for-ai
Copy-paste JSON-LD templates tuned for how AI assistants extract and cite information. Structured data helps ChatGPT, Perplexity, Gemini, and Google AI resolve what your product is and pull clean facts into answers — instead of guessing from raw HTML.
- Ready-to-edit templates for the schema types that matter most for AEO.
- A tiny
validate.py(stdlib only) to sanity-check your JSON-LD. - Notes on why each one helps AI extraction.
Drop a template in a <script type="application/ld+json">…</script> tag in your
page <head>, replace the {{placeholders}}, and validate.
Why structured data helps AI answers
LLM answers lean heavily on entities (is "Acme" a company? a product? which
one?) and on extractable facts (price, category, FAQ answers). JSON-LD states
those explicitly and unambiguously, which makes you easier to identify, trust, and
quote. Pair it with a clean llms.txt (see our
llms-txt-generator).
Validate
python validate.py mypage.jsonld
Checks valid JSON, the presence of @context/@type, and warns about missing
recommended fields for common types.
Templates
Organization
Establishes the entity. Put it on your homepage.
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "{{Company Name}}",
"url": "https://{{domain}}",
"logo": "https://{{domain}}/logo.png",
"description": "{{One sentence on what you do and for whom}}",
"sameAs": [
"https://www.linkedin.com/company/{{handle}}",
"https://x.com/{{handle}}",
"https://www.crunchbase.com/organization/{{handle}}"
]
}
SoftwareApplication / Product
For a tool or product page — gives AI the category, price, and ratings.
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "{{Product Name}}",
"applicationCategory": "{{e.g. DeveloperApplication}}",
"operatingSystem": "{{e.g. Web, macOS, Linux}}",
"description": "{{What it does, for whom, key differentiator}}",
"offers": {
"@type": "Offer",
"price": "{{0.00}}",
"priceCurrency": "{{USD}}"
}
}
FAQPage
AI loves FAQs — short Q/A pairs are highly extractable. Mark up real questions buyers ask.
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "{{A real question a buyer asks}}",
"acceptedAnswer": {
"@type": "Answer",
"text": "{{A clear, self-contained answer in 1–3 sentences}}"
}
}
]
}
Article / BlogPosting
For blog posts — author, date, and headline help AI attribute and cite you.
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "{{Post title}}",
"datePublished": "{{2026-01-01}}",
"author": { "@type": "Person", "name": "{{Author}}" },
"publisher": { "@type": "Organization", "name": "{{Company Name}}" },
"description": "{{One-line summary}}"
}
BreadcrumbList
Helps AI understand your site structure and the page's place in it.
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://{{domain}}/" },
{ "@type": "ListItem", "position": 2, "name": "{{Section}}", "item": "https://{{domain}}/{{section}}/" }
]
}
Tips
- One entity per page; keep
name/descriptionconsistent everywhere (consistency is an entity signal). - Put real, useful FAQ answers — don't keyword-stuff. AI (and Google) penalize it.
- Validate before shipping; a broken JSON-LD block is ignored entirely.
License
MIT © Clear Cited
Built by Clear Cited — AEO/GEO for B2B SaaS & developer tools. See if AI recommends your product →
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file schema_for_ai-0.1.0.tar.gz.
File metadata
- Download URL: schema_for_ai-0.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5af430440164b146c1444022c18511a30290487f05360a1af7ac32f8df1e0e81
|
|
| MD5 |
b7c4ed7724fe8017cab4c90cc9c1e6ba
|
|
| BLAKE2b-256 |
ac66d298e20ac60319e2cd0362887189101631a045fe6f06c87a78f4645ef0db
|
Provenance
The following attestation bundles were made for schema_for_ai-0.1.0.tar.gz:
Publisher:
publish.yml on Clear-Cited/schema-for-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
schema_for_ai-0.1.0.tar.gz -
Subject digest:
5af430440164b146c1444022c18511a30290487f05360a1af7ac32f8df1e0e81 - Sigstore transparency entry: 2322025946
- Sigstore integration time:
-
Permalink:
Clear-Cited/schema-for-ai@666cf6f16bc2a911759446141fc7862745b7785e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Clear-Cited
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@666cf6f16bc2a911759446141fc7862745b7785e -
Trigger Event:
release
-
Statement type:
File details
Details for the file schema_for_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: schema_for_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e27e727278dd84a08fc793cf123e2ca1254d16c3e2196b21f26b7a1b3ec03b3d
|
|
| MD5 |
fdbf9a69c3e306165607167c411dcdc0
|
|
| BLAKE2b-256 |
a4c2464b057a656b12d172b615a92026e30e9178898f1c0594dc253e8e2db9c5
|
Provenance
The following attestation bundles were made for schema_for_ai-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on Clear-Cited/schema-for-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
schema_for_ai-0.1.0-py3-none-any.whl -
Subject digest:
e27e727278dd84a08fc793cf123e2ca1254d16c3e2196b21f26b7a1b3ec03b3d - Sigstore transparency entry: 2322026186
- Sigstore integration time:
-
Permalink:
Clear-Cited/schema-for-ai@666cf6f16bc2a911759446141fc7862745b7785e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Clear-Cited
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@666cf6f16bc2a911759446141fc7862745b7785e -
Trigger Event:
release
-
Statement type: