Skip to Main Content
Back to Insights
Engineering & Architecture
August 04, 2026
2 min read

How to Structure JSON-LD Schema for ChatGPT & Perplexity

Emily Watson
Emily WatsonAuthor
Digitized Kosmos Solutions Architecture
Peer-Reviewed & Fact-Checked
Developer workspace showing JSON-LD schema code used for ChatGPT and Perplexity optimization

1. Quick Answer

How do you structure JSON-LD schema for AI Search?

To optimize JSON-LD schema for ChatGPT and Perplexity, you must move beyond generic WebPage schemas and deploy highly specific graphs like FAQPage, TechArticle, and SoftwareApplication. Ensure your structured data uses absolute URLs, explicitly defines mainEntity properties to highlight core concepts, and links authors and organizations to authoritative Wikidata or Crunchbase IDs using the sameAs property. This semantic linking helps AI engines validate your entity's authority during the Retrieval-Augmented Generation (RAG) process.


2. Introduction

In traditional SEO, schema markup (specifically JSON-LD) was a "nice-to-have" feature that occasionally earned your site a rich snippet on Google. In the era of Generative Engine Optimization (GEO) and Answer Engine Optimization (AEO), JSON-LD is mandatory.

When LLM-driven search engines like ChatGPT, Perplexity, and Google AI Overviews crawl your site, they do not read CSS or visual layouts. They parse raw text and structured data graphs. If your site provides clean, explicit JSON-LD schema, you drastically reduce the computational load on the AI's parser, increasing the probability that your content is selected as a primary citation source.

This guide provides technical blueprints for structuring JSON-LD in React and Next.js applications specifically for AI indexers.


3. Why AI Engines Rely on JSON-LD

Retrieval-Augmented Generation (RAG) pipelines are fast, but they are prone to hallucinations if the input data is ambiguous. JSON-LD (JavaScript Object Notation for Linked Data) removes ambiguity by explicitly declaring what a piece of content is.

When an AI crawler encounters a page, it asks:

  • Who wrote this? Is this author a recognized entity?
  • Is this a blog post, a product page, or a factual Q&A?
  • What organization publishes this?

JSON-LD answers these questions instantly via key-value pairs standardized by schema.org.


To capture citations in AI search, implement these three schema types across your Next.js application.

A. The FAQPage Schema

The FAQPage schema is the highest ROI markup you can deploy for AEO. ChatGPT and Perplexity are conversational engines; they thrive on Question-and-Answer formats. By wrapping your content in FAQPage schema, you feed the AI exactly what it wants.

Next.js Implementation Example:

// components/FAQSchema.tsx
import Head from 'next/head';

export default function FAQSchema({ questions }) {
  const schema = {
    "@context": "https://schema.org",
    "@type": "FAQPage",
    "mainEntity": questions.map((q) => ({
      "@type": "Question",
      "name": q.question,
      "acceptedAnswer": {
        "@type": "Answer",
        "text": q.answer
      }
    }))
  };

  return (
    <Head>