Core Concepts

llms.txt Generation

Last updated by Harlan Wilton in doc: sync.

Nuxt AI Ready generates /llms.txt and /llms-full.txt during prerender following the llms.txt standard.

/llms.txt

The llms.txt file gives AI systems a concise overview of your site. It's generated on build based on the inferred metadata and structure of your pages.

See a live example at nuxtseo.com/llms.txt. The structure looks like:

# <Site Title>

> <Site Description>

## Pages

- [Page Title](/page-link): Meta Description
  ...

## <...Section Title>

- [<Section Link Title>](/section-link): <Section Link Description>
  ...

<...Section Notes>

You can customize the sections and notes via the module configuration (see below).

Configuration

Add custom sections:

nuxt.config.ts
export default defineNuxtConfig({
  aiReady: {
    llmsTxt: {
      sections: [
        {
          title: 'Getting Started',
          description: 'Learn how to use our API',
          links: [
            {
              title: 'API Documentation',
              href: '/docs/api',
              description: 'Complete API reference'
            }
          ]
        }
      ],
      notes: 'Built with Nuxt AI Ready'
    }
  }
})

Full config: /docs/ai-ready/api/config

Hook for Advanced Customization

Add sections or notes before generation:

nuxt.config.ts
export default defineNuxtConfig({
  hooks: {
    'ai-ready:llms-txt': (payload) => {
      payload.sections.push({
        title: 'Custom APIs',
        links: [{ title: 'Search', href: '/api/search', description: 'Search endpoint' }]
      })
      payload.notes.push('Custom note at the end')
    }
  }
})

Hook details: /docs/ai-ready/api/nuxt-hooks#ai-ready-llms-txt

/llms-full.txt

The llms-full.txt file contains all of your indexable pages content converted to Markdown. This is useful for AI systems that want to ingest the full content of your site for training or retrieval-augmented generation (RAG).

This file is auto-generated from your prerendered pages and cannot be modified via hooks.

Did this page help you?