How do I add Organization schema for AI search?
Add a JSON-LD script tag with Organization schema to your root layout (head). Include name, legalName, url, logo, foundingDate, founders, sameAs links to LinkedIn/GitHub/Crunchbase, and disambiguatingDescription if a similarly-named company exists. AI engines re-crawl and update within 7-14 days.
Organization schema is the foundation of entity recognition for AI engines. Every page on your site should include it (or inherit it from the root layout). Three steps to ship correctly.
Step 1: Draft the schema
The minimum-viable Organization schema includes 8 fields. Most B2B SaaS sites ship 3 and stop. Ship all 8 from day one.
- name — exact brand name as you want AI engines to refer to it.
- legalName — registered legal entity, if different from name.
- url — canonical homepage URL with https:// and trailing slash.
- logo — absolute URL to a square SVG or PNG logo (256x256 or larger).
- foundingDate — ISO 8601 date the company was founded.
- founder — Person schema for each founder with name, jobTitle, sameAs.
- sameAs — array of LinkedIn, GitHub, Crunchbase, X/Twitter URLs.
- disambiguatingDescription — only if a similarly-named company exists; clarifies which one you are.
Step 2: Inject in the root layout
In Next.js App Router, add a JSON-LD script tag to the root layout (or to a component imported by it). Render via a safe primitive that escapes script-terminator sequences. NEVER use dangerouslySetInnerHTML for JSON-LD — risk of XSS via unescaped content. Use a children-as-text pattern inside a <script type="application/ld+json"> tag.
Pixelmojo open-sources its <JsonLd> primitive in /components/seo/JsonLd.tsx. Safe by construction (escapes </script>, U+2028, U+2029, &, <, >).
Step 3: Validate before deploy
Two free validators to run: Google Rich Results Test (https://search.google.com/test/rich-results) confirms Google parses your schema. Schema.org Validator (https://validator.schema.org/) confirms the schema is well-formed per the spec. Both should pass before deploying.
| Validator | What it checks | When to use |
|---|---|---|
| Google Rich Results Test | Google-specific schema interpretation | Before deploying to verify Google sees what you intend |
| Schema.org Validator | Spec compliance (broader than Google) | For non-Google AI engines (Claude, Perplexity, Gemini) |
| Radar Schema Audit | Coverage + completeness across all pages | Audits whole site, not just one URL |
How to audit Organization schema coverage on your site
Radar Schema Audit crawls your site and reports which pages have Organization schema, which are missing critical fields (legalName, founders, sameAs), and what to add. Free first audit covers the full site.
Want to take action on this?