# llms.txt Generator: Make Your Site Readable by AI (`ingeniela/llms-txt-generator`) Actor

Crawl any website without a browser and get a ready llms.txt and llms-full.txt for ChatGPT, Claude, Perplexity and AI agents, with AI-written page descriptions and an AI-readiness check.

- **URL**: https://apify.com/ingeniela/llms-txt-generator.md
- **Developed by:** [Ingeniela](https://apify.com/ingeniela) (community)
- **Categories:** AI, SEO tools, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 page reads

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## llms.txt Generator: Make Your Site Readable by AI

ChatGPT, Claude, Perplexity and AI agents read the web differently from Google. An **llms.txt** file at the root of your site (`yoursite.com/llms.txt`) tells them, in clean Markdown, what your site is and which pages matter. This Actor reads your website without a browser, groups the pages into sections, writes a factual one-line description for each one with AI, and gives you **llms.txt** and **llms-full.txt** ready to upload. It also checks how AI-ready the site is.

### Tutorial (1 minute)

![Step-by-step tutorial: what to fill in, click Start, the real result and the price](https://api.apify.com/v2/key-value-stores/RXaOr7FspyrQ4JP88/records/llms-txt-generator-tutorial.gif)

*Every result in this tutorial comes from a real run.*

### What you get

- **llms.txt** in the format of [llmstxt.org](https://llmstxt.org): site name, a one-line summary, key facts, then sections (Docs, Products, Pricing, Blog…) with a link and a description per page. Legal, company and blog pages go to an `Optional` section, so assistants with little context can skip them.
- **llms-full.txt**: the text of every page as Markdown in one file, with headings. Great for assistants that read everything, and for your own RAG or custom GPT.
- **AI-readiness check**: whether the site already has an llms.txt, the share of pages with meta descriptions, with structured data (schema.org), and with exactly one H1, plus thin pages and average words.
- **A table of pages** with section, title, AI description, meta description, words and schema.

### How to use it

1. Paste your **website** (for example `https://yourbrand.com`).
2. Choose **Max pages** (50-200 covers most sites).
3. Click **Start**. 50 pages take about 1 minute.
4. Download `llms.txt` and `llms-full.txt` from the **Output** tab and upload them to the root of your site, next to `robots.txt`.

On WordPress, upload them with your file manager or a plugin that serves files at the root. On Shopify, Webflow or Framer, use a redirect from `/llms.txt` to a file you host, or the platform's own llms.txt setting when it has one.

### Example output

```markdown
## Acme

> Acme makes project management software for small agencies.

Acme has a free plan and paid plans from $20 per user per month. Teams use it for client projects, time tracking and invoicing.

### Docs

- [Getting started](https://acme.com/docs/start): How to create a workspace, invite your team and import projects.
- [Time tracking](https://acme.com/docs/time): Track hours per task and export timesheets to CSV.

### Pricing

- [Pricing](https://acme.com/pricing): Free, Pro and Business plans compared, with yearly discounts.

### Optional

- [Privacy policy](https://acme.com/privacy): How Acme stores and protects customer data.
```

### How it works

1. Reads `robots.txt` and `sitemap.xml` (including sitemap indexes) to find the pages, then follows links on the same site. No browser, no proxies: it is fast and cheap.
2. Skips pages that should not be there: `noindex`, pages whose canonical points elsewhere, tag and category archives, carts and logins.
3. Takes each page's title, meta description, headings and main text (menus, headers and footers are removed).
4. With AI on, a fast model writes the summary, the key facts and one factual description per page (25 pages per call).

### Pricing

Pay per event:

| Event | Price |
|---|---|
| Page read and included | $0.002 |
| AI descriptions, per 25 pages (built-in AI only) | $0.02 |

**Examples:** 50 pages with AI = $0.10 + $0.04 = **$0.14**. 200 pages = $0.40 + $0.16 = **$0.56**. With your own AI key (Anthropic, OpenAI, OpenRouter, Gemini, Grok, DeepSeek or Mistral) the AI part is not charged.

### FAQ

**Does it work with JavaScript-only sites?** It reads the HTML the server sends. Sites that render everything in the browser (some single-page apps) return little text; sites with server-side rendering (WordPress, Shopify, Webflow, Next.js, Docusaurus and most others) work well.

**Will it overload my site?** It reads at most 8 pages at a time and respects `robots.txt` by default.

**How often should I update llms.txt?** When you add important pages. You can schedule this Actor monthly.

# Actor input Schema

## `websiteUrl` (type: `string`):

Home page of the site, e.g. https://yourbrand.com

## `maxPages` (type: `integer`):

Pages to read (sitemap first, then links). 50-200 covers most sites.

## `siteName` (type: `string`):

Title of the llms.txt. Empty = taken from the site.

## `siteSummary` (type: `string`):

The quote under the title. Empty = written by AI or taken from the home page.

## `buildFullText` (type: `boolean`):

Every page's text as Markdown in one file, for assistants that read everything.

## `useSitemap` (type: `boolean`):

Find pages in the sitemap first (faster and more complete).

## `respectRobotsTxt` (type: `boolean`):

Skip pages the site asks bots not to read.

## `maxLinksPerSection` (type: `integer`):

Keeps llms.txt short and useful.

## `aiDescriptions` (type: `boolean`):

A factual one-line description per page and a site summary. Off = meta descriptions only.

## `language` (type: `string`):

Language for AI-written text.

## `aiProvider` (type: `string`):

Leave all keys empty to use the built-in AI (billed per AI event).

## `aiModel` (type: `string`):

Empty = a good default for the provider.

## `anthropicApiKey` (type: `string`):

With your own key (any provider) that provider bills you and AI events are not charged.

## `openaiApiKey` (type: `string`):

Your own key from platform.openai.com.

## `openrouterApiKey` (type: `string`):

Your own key from openrouter.ai/keys.

## `geminiApiKey` (type: `string`):

Your own key from aistudio.google.com/apikey.

## `xaiApiKey` (type: `string`):

Your own key from console.x.ai.

## `deepseekApiKey` (type: `string`):

Your own key from platform.deepseek.com.

## `mistralApiKey` (type: `string`):

Your own key from console.mistral.ai.

## Actor input object example

```json
{
  "websiteUrl": "https://docs.apify.com",
  "maxPages": 15,
  "buildFullText": true,
  "useSitemap": true,
  "respectRobotsTxt": true,
  "maxLinksPerSection": 40,
  "aiDescriptions": true,
  "language": "English",
  "aiProvider": "auto"
}
```

# Actor output Schema

## `llmsTxt` (type: `string`):

No description

## `llmsFull` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `pages` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "websiteUrl": "https://docs.apify.com",
    "maxPages": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("ingeniela/llms-txt-generator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "websiteUrl": "https://docs.apify.com",
    "maxPages": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("ingeniela/llms-txt-generator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "websiteUrl": "https://docs.apify.com",
  "maxPages": 15
}' |
apify call ingeniela/llms-txt-generator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ingeniela/llms-txt-generator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/wV7dPcfDESvGNtWnN/builds/V6xehMPLouBYf08SG/openapi.json
