In classic SEO, `sitemap.xml` told search engines where your pages live. In Generative Engine Optimization, `llms.txt` tells AI models what your pages mean. It is a plain Markdown file at the root of your domain that hands ChatGPT, Claude, Perplexity, and other AI agents a curated, token-efficient summary of your most important content, so they can describe and cite you accurately instead of guessing.
This is the hands-on build guide. By the end you will have written a real `llms.txt`, deployed it on your platform, and confirmed it is live and correct. If you want the strategy behind the format, which pages to prioritize and why it moves AI visibility, read [how to create an llms.txt file for GEO](/blog/how-to-create-llms-txt-file-for-geo) alongside this. Here we focus on getting the file built and shipped.
Key takeaways
- `llms.txt` is a single Markdown file served at `https://yourdomain.com/llms.txt`. There is no XML, no special encoding, just headings, a summary, and curated links with one-line descriptions. - The structure is fixed enough to be easy: an H1 with your name, a blockquote summary, then H2 sections grouping your most important links, each link followed by a short description. - Curate ruthlessly. The value is in choosing your best pages and describing them, not in listing everything. A bloated file defeats the point. - Deployment differs by platform. On a static or code-based site you drop the file in the public root; on Shopify or WordPress you route the path or use a plugin or app. - Verify by loading the URL in a browser, confirming it returns plain text with a 200 status, and checking the links resolve.
Step 1: Choose the pages worth including
Before writing anything, list the pages an AI actually needs to understand and recommend you. Think about what a model would need to answer "what is [your brand] and should I use it." That usually means your homepage or About page, your core product or feature pages, pricing, key documentation, and a few cornerstone guides. Leave out login screens, cart pages, tag archives, and thin or duplicate pages. The whole point of `llms.txt` is curation, so a focused list of ten to twenty strong pages beats a dump of two hundred.
Step 2: Write the file in Markdown
Create a file named `llms.txt` in a plain text editor. The format is standard Markdown with a specific shape: one H1 for your project name, a blockquote one-liner summarizing what you do, then H2 sections that group links, each with a short description after a colon.
Here is a working example you can adapt:
``` # Acme Analytics
Acme Analytics is a GEO monitoring platform for DTC brands that tracks how AI models mention and cite them.
## Core pages - [About Acme](https://acme.com/about): Who we are, what we build, and who it is for. - [Pricing](https://acme.com/pricing): Current plans and what each tier includes. - [Product overview](https://acme.com/product): How the platform works, end to end.
## Documentation - [Quickstart](https://acme.com/docs/quickstart): Get set up in five minutes. - [API reference](https://acme.com/docs/api): Full endpoints and parameters.
## Key concepts - [What is AIGVR](https://acme.com/blog/aigvr): How the AI visibility score is calculated. - [Share of Model explained](https://acme.com/blog/share-of-model): How to read your share versus competitors. ```
Keep the summary blockquote factual and specific, since models often lift it verbatim. Write each link description as a clean, one-line statement of what the reader will find. Use absolute URLs, not relative paths, because the file may be read out of context.
Step 3: Deploy it to your domain root
The file has to answer at exactly `https://yourdomain.com/llms.txt`. How you get it there depends on your stack.
On a static site or one you deploy from code (Next.js, Astro, Hugo, plain HTML), drop `llms.txt` into your public or root output directory, for example `public/llms.txt`, and redeploy. On WordPress, upload the file to the site root via your host's file manager or SFTP, or use an SEO or `llms.txt` plugin that generates and serves it. On Shopify, you cannot write to the true root directly, so create a page or use an app that serves the content at the `/llms.txt` path, or add a redirect from that path to a hosted file; see [the Shopify GEO optimization guide](/blog/shopify-geo-optimization-guide-geoly) for platform-specific handling. Whatever the platform, the test is the same: the raw URL must return your Markdown as plain text.
Step 4: Keep it accurate and current
An `llms.txt` full of stale facts is worse than none, because you are feeding wrong information straight to the models. When your pricing changes, update the file. When you publish a cornerstone guide, add it. When a linked page moves, fix the URL. Treat it as a living document you review whenever your core pages change, and pair it with clean `robots.txt` rules so the crawlers you invite can actually reach the pages you list. See [how to configure robots.txt for AI crawlers](/blog/configure-robots-txt-ai) for that side.
How to verify
Load `https://yourdomain.com/llms.txt` in a browser. You should see your raw Markdown as plain text, not a rendered page or a 404. Confirm the response is a 200 with a text content type, then click through a few links to make sure they resolve to live pages. Finally, sanity-check the facts in your summary and descriptions against your actual site.
Um zu bestätigen, dass es seine Aufgabe erfüllt, beobachten Sie, ob die KI-Antworten zu Ihrer Marke im Laufe der Zeit genauer werden. GEOly, eine GEO-Datenplattform, hilft dabei: Ihr 29-Punkte-GEO-Audit überprüft KI-Bereitschaftssignale, einschließlich der Frage, ob Crawler Ihre wichtigsten Seiten erreichen können, und ihr Monitoring verfolgt, wie ChatGPT, Gemini, Perplexity, Copilot und Grok Sie beschreiben und zitieren, sodass Sie die Wirkung der Datei sehen können, anstatt sie nur anzunehmen. Kostenlose Testversion unter `app.geoly.ai`; mehr unter [was ist GEOly AI](/blog/what-is-geoly-ai) und der [GEOly AI-Autorenseite](/blog/author/geoly-ai).
Häufige Fehler
- Jede Seite auflisten, anstatt zu kuratieren. Der Wert der Datei liegt in der Auswahl, und eine überladene Datei vergräbt Ihre besten Seiten. - Relative URLs verwenden. Die Datei könnte ohne Ihren Domainkontext gelesen werden, daher sollten Sie immer absolute Links verwenden. - Fakten veralten lassen, insbesondere Preise und Produktangaben, die dann an Sie zurückzitiert werden. - Annehmen, dass die Bereitstellung funktioniert hat, ohne die URL zu laden. Eine Datei im falschen Verzeichnis hilft niemandem. - Crawler in `llms.txt` einladen, während sie in `robots.txt` blockiert werden. Die beiden Dateien müssen übereinstimmen.
FAQ
Ist llms.txt ein offizieller Standard, dem KI-Modelle folgen müssen?
Es ist eine weit verbreitete Community-Konvention, kein verpflichtender Standard, dem jedes Modell garantiert folgt. Die Akzeptanz wächst, weil es kostengünstig zu erstellen und wirklich nützlich ist, und es kostet Sie nichts, eine saubere, kuratierte Karte bereitzustellen, selbst für Crawler, die sie opportunistisch lesen.
Was ist der Unterschied zwischen llms.txt und robots.txt?
`robots.txt` steuert den Zugriff und gibt an, was Crawler abrufen dürfen oder nicht. `llms.txt` bietet Verständnis, indem es Modelle auf Ihre besten Inhalte mit Kontext hinweist. Das eine ist ein Tor, das andere ein Leitfaden, und Sie sollten beide konsistent konfigurieren.
Wie unterscheidet sich dieser Leitfaden von Ihrem anderen Artikel zu llms.txt?
Dieser hier ist die praktische Anleitung: die Datei schreiben, sie plattformübergreifend bereitstellen und überprüfen, ob sie live ist. Das Begleitstück, [wie man eine llms.txt-Datei für GEO erstellt](/blog/how-to-create-llms-txt-file-for-geo), behandelt die Strategie, was einzuschließen ist und warum es die KI-Sichtbarkeit beeinflusst. Lesen Sie beide zusammen.
Brauche ich eine separate llms-full.txt-Datei?
Einige Websites fügen eine `llms-full.txt` mit erweiterten Inhalten für Modelle hinzu, die mehr aufnehmen können. Beginnen Sie zunächst mit einer kompakten `llms.txt`, da eine gut kuratierte Kern-Datei den größten Nutzen bringt. Fügen Sie die erweiterte Version später hinzu, wenn Ihre Dokumentation groß genug ist, um dies zu rechtfertigen.
Garantiert llms.txt, dass KI-Modelle meine Marke zitieren?
Nein. Es macht Ihre Inhalte leichter verständlich und reduziert Vermutungen, aber Zitate hängen weiterhin von der Klarheit der Entitäten, dem Zugriff der Crawler und vertrauenswürdigen Drittquellen ab. Betrachten Sie `llms.txt` als eine hochrentable Ebene in einer umfassenderen GEO-Strategie, nicht als Allheilmittel.
