AgentReady
Next.js AI Search Guide

How to Add llms.txt & AI Search Schema to Next.js (2026 Guide)

Place spec-compliant llms.txt and robots.txt in public/, avoid empty client-only SPA shells, and emit Organization + SoftwareApplication JSON-LD from app/layout.tsx.

Implementation Checklist

  1. Place llms.txt and llms-full.txt directly inside public/ so Next.js serves them at /llms.txt with HTTP 200.
  2. Use app/robots.ts or public/robots.txt to explicitly allow OAI-SearchBot, GPTBot, ClaudeBot, and PerplexityBot.
  3. Render hero copy and pricing inside Server Components so non-JS AI crawlers never read an empty root div.

Skip Manual Setup — Generate Your Next.js Pack Automatically