Pixelmojo
How-toBy Lloyd Pilapil

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.

  1. name — exact brand name as you want AI engines to refer to it.
  2. legalName — registered legal entity, if different from name.
  3. url — canonical homepage URL with https:// and trailing slash.
  4. logo — absolute URL to a square SVG or PNG logo (256x256 or larger).
  5. foundingDate — ISO 8601 date the company was founded.
  6. founder — Person schema for each founder with name, jobTitle, sameAs.
  7. sameAs — array of LinkedIn, GitHub, Crunchbase, X/Twitter URLs.
  8. 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.

ValidatorWhat it checksWhen to use
Google Rich Results TestGoogle-specific schema interpretationBefore deploying to verify Google sees what you intend
Schema.org ValidatorSpec compliance (broader than Google)For non-Google AI engines (Claude, Perplexity, Gemini)
Radar Schema AuditCoverage + completeness across all pagesAudits 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.

Related questions