> ## Documentation Index
> Fetch the complete documentation index at: https://docs.autype.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LLM Resources

> Machine-readable schemas and references for LLMs and AI agents to work with Autype documents.

## Overview

Autype provides machine-readable resources specifically designed for LLMs, AI agents, and automation tools. These resources enable AI systems to construct valid Autype documents, understand the extended Markdown syntax, and work with the full document schema — without any manual configuration.

All resources are publicly accessible at **[autype.com/llm-resources/](https://autype.com/llm-resources/index.json)** and are always up to date.

## Available Resources

<CardGroup cols={2}>
  <Card title="Complete Document Schema" icon="braces" href="https://autype.com/llm-resources/document-schema.json">
    Full JSON Schema (draft-07) covering all element types, styling, variables, citations, abbreviations, and sections.
  </Card>

  <Card title="Zod Schema (TypeScript)" icon="file-code" href="https://autype.com/llm-resources/document-schema.zod.txt">
    Complete Zod schema as TypeScript source. Use for validation in TypeScript/JavaScript projects.
  </Card>

  <Card title="Markdown Syntax Reference" icon="markdown" href="https://autype.com/llm-resources/markdown-syntax.md">
    Full reference for Autype's extended Markdown syntax with all directives, attributes, and examples.
  </Card>

  <Card title="Resource Index" icon="list" href="https://autype.com/llm-resources/index.json">
    JSON index of all available LLM resources with descriptions and URLs.
  </Card>
</CardGroup>

## Sub-Schemas

These focused schemas cover individual parts of the document structure. Use them when you only need to work with a specific area.

<CardGroup cols={2}>
  <Card title="Defaults (Styling)" icon="palette" href="https://autype.com/llm-resources/defaults-schema.json">
    Fonts, colors, spacing, heading styles, table styles, header/footer, citation style.
  </Card>

  <Card title="Variables" icon="variable" href="https://autype.com/llm-resources/variables-schema.json">
    Template variables: text, number, image, list, and table types. Use `{{varName}}` in text.
  </Card>

  <Card title="Abbreviations" icon="spell-check" href="https://autype.com/llm-resources/abbreviations-schema.json">
    Abbreviation definitions mapping short forms to full text.
  </Card>

  <Card title="Citations" icon="book-open" href="https://autype.com/llm-resources/citations-schema.json">
    Bibliography entries in CSL-JSON format. 6 citation styles supported.
  </Card>

  <Card title="Document Settings" icon="file-cog" href="https://autype.com/llm-resources/document-settings-schema.json">
    Page size, margins, orientation, output format (PDF/DOCX/ODT), and metadata.
  </Card>

  <Card title="Sections & Elements" icon="layout-grid" href="https://autype.com/llm-resources/sections-schema.json">
    All 20 content element types: text, tables, images, charts, code, math, QR codes, and more.
  </Card>
</CardGroup>

## Usage with AI Agents

### MCP Server

The [Autype MCP Server](/automation/integrations/mcp/overview) has built-in access to these schemas. When an AI agent connects via MCP, it can generate documents directly.

### Direct API Integration

For custom AI integrations, point your LLM to the resource index:

```
https://autype.com/llm-resources/index.json
```

The LLM can then fetch the complete document schema and construct valid documents for the [Autype Developer API](/api-reference/introduction).

### Example: System Prompt

```text theme={null}
You are a document generation assistant. Use the Autype document schema
to construct valid JSON documents.

Schema: https://autype.com/llm-resources/document-schema.json
Markdown syntax: https://autype.com/llm-resources/markdown-syntax.md

Required fields: document (with type: "pdf" or "docx") and sections array.
```
