# ウェブサイト用のllms.txtファイルを作成する方法（例付き）

- Canonical: https://www.geoly.ai/jp/blog/create-llms-txt-file
- Published: 2026-03-07
- Updated: 2026-07-13
- Author: [GEOly AI](https://www.geoly.ai/jp/blog/author/geoly-ai)
- Tags: [How To](https://www.geoly.ai/jp/blog/tag/how-to), [llms.txt](https://www.geoly.ai/jp/blog/tag/llms-txt), [GEO](https://www.geoly.ai/jp/blog/tag/geo), [AEO](https://www.geoly.ai/jp/blog/tag/aeo)

> **Summary:** 実践的な構築: 最適なページを選び、Markdownを書き、llms.txtをNext.js、WordPress、またはShopifyのルートにデプロイし、URLがプレーンテキストを返すことを確認します。

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.

AIがブランドについての回答をどのように改善しているかを確認するには、時間とともに回答の正確性が向上しているかを観察してください。GEOデータプラットフォームであるGEOlyはここで役立ちます。GEOlyの29項目のGEO監査は、クローラーが主要なページにアクセスできるかどうかを含むAI対応シグナルをチェックし、ChatGPT、Gemini、Perplexity、Copilot、Grokがどのようにあなたを説明し引用しているかを監視します。これにより、仮定ではなくファイルの効果を確認できます。無料トライアルは`app.geoly.ai`で利用可能です。詳細は[what is GEOly AI](/blog/what-is-geoly-ai)および[GEOly AI author page](/blog/author/geoly-ai)をご覧ください。

## 一般的な間違い

- すべてのページをリストする代わりにキュレーションすること。ファイルの価値は選択にあり、膨大なファイルは最良のページを埋もれさせます。
- 相対URLを使用すること。ファイルはドメインをコンテキストとして読まない場合があるため、常に絶対リンクを使用してください。
- 情報が古くなることを放置すること。特に価格や製品の主張が古いままだと、それが引用される可能性があります。
- デプロイが成功したと仮定してURLを読み込まないこと。間違ったディレクトリに置かれたファイルは誰の役にも立ちません。
- `llms.txt`でクローラーを招待しながら、`robots.txt`でブロックすること。両方のファイルが一致している必要があります。

## FAQ

### llms.txtはAIモデルが従うべき公式標準ですか？

これは広く採用されているコミュニティの慣習であり、すべてのモデルが必ず従う義務があるわけではありません。採用が進んでいる理由は、作成が簡単で本当に有用であり、クリーンでキュレーションされたマップを提供するコストがほとんどかからないからです。

### llms.txtとrobots.txtの違いは何ですか？

`robots.txt`はアクセスを制御し、クローラーに取得可能なものと取得不可なものを指示します。一方、`llms.txt`は理解を提供し、モデルに最良のコンテンツをコンテキスト付きで指し示します。一方はゲートであり、もう一方はガイドです。両方を一貫して設定することが重要です。

### このガイドは他のllms.txt記事とどう違いますか？

このガイドは実践的な構築方法に焦点を当てています。ファイルの作成、プラットフォームごとのデプロイ、ライブ状態の確認を扱っています。一方、[how to create an llms.txt file for GEO](/blog/how-to-create-llms-txt-file-for-geo)は、何を含めるべきか、そしてそれがAIの可視性にどのように影響するかという戦略をカバーしています。両方の記事を併せて読むことをお勧めします。

### 別のllms-full.txtファイルが必要ですか？

一部のサイトでは、より多くのコンテンツを取り込めるモデル向けに拡張コンテンツを含む`llms-full.txt`を追加しています。ただし、最初は厳選された`llms.txt`から始めるべきです。キュレーションされたコアファイルがほとんどの価値を提供します。ドキュメントが十分に大きい場合にのみ、拡張版を後から追加してください。

### llms.txtでAIモデルがブランドを引用することを保証できますか？

いいえ。llms.txtはコンテンツの理解を容易にし、推測を減らしますが、引用はエンティティの明確さ、クローラーのアクセス、信頼できる第三者ソースに依存します。`llms.txt`をGEO戦略の中で高ROIの1つのレイヤーとして扱い、万能の解決策とは考えないでください。
