---
title: "llms.txt 是什麼？怎麼寫？"
canonical: https://llms-check.panda198271.workers.dev/guide
markdown: https://llms-check.panda198271.workers.dev/guide.md
retrieved: 2026-09-27
language: zh-Hant-TW
content_sha256: 81b0cea4bbfb8ec96b419c249a54bf497303d7ef250f3afe826f0da73e55679d
cite: https://llms-check.panda198271.workers.dev/cite?path=%2Fguide
sources:
  - https://example.com/llms.txt）的純文字
  - https://example.com/beans.md
  - https://example.com/class.md
  - https://example.com/about.md
  - https://你的網域/llms.txt，並以純文字（text/plain
  - https://llmstxt.org/
  - https://github.com/answerdotai/llms-txt
  - https://schema.org
---

# llms.txt 是什麼？怎麼寫？

**重點摘要**：llms.txt 是放在網站根目錄的純文字 Markdown 檔，專門寫給 AI 看；基本格式有 5 個要點：第 1 行為唯一的 H1 網站名稱、接著一行以引言符號開頭的摘要、可加說明段落、用 ## 分區列出重要頁面連結、次要內容放在 ## Optional。

llms.txt 是放在網站根目錄（例如 https://example.com/llms.txt）的純文字 Markdown 檔，專門寫給 AI 看：用最短的篇幅告訴 AI 這個網站是什麼、重要內容在哪裡。AI 讀純文字比讀網頁快、也更準確，因為不用處理選單、廣告和程式碼。

## 基本格式
1. 第一行：`# 網站名稱`（H1，只能有一個）
2. 第二段：`> 一句話摘要`
3. 可以接幾段說明文字
4. 用 `## 分區` 列出重要頁面，每行一個連結：`- [頁面名稱](完整網址): 補充說明`
5. `## Optional` 分區放次要內容，AI 時間不夠時可以略過

## 範例
```
# 某某咖啡

> 高雄的自家烘焙咖啡店，提供咖啡豆網購與手沖課程。

## 商品
- [咖啡豆價目表](https://example.com/beans.md): 產地、烘焙度、價格
- [課程報名](https://example.com/class.md): 每月手沖課程時間與費用

## 店家資訊
- [營業時間與地址](https://example.com/about.md)
```

## 讓 AI 更容易讀你的網站
- 加 /llms-full.txt：把重要內容整理成一份完整純文字
- 重要頁面提供 .md 版本，並在 HTML 加 `<link rel="alternate" type="text/markdown" href="…">`
- robots.txt 不要擋「幫用戶讀取」的 AI（ChatGPT-User、Claude-User、Perplexity-User），否則使用者問 AI 時讀不到你
- 維持 sitemap.xml，並寫進 robots.txt

## 常見 AI 爬蟲
- GPTBot：OpenAI 訓練
- OAI-SearchBot：ChatGPT 搜尋
- ChatGPT-User：ChatGPT 幫用戶讀取
- ClaudeBot：Anthropic 訓練
- Claude-SearchBot：Claude 搜尋
- Claude-User：Claude 幫用戶讀取
- PerplexityBot：Perplexity 搜尋
- Perplexity-User：Perplexity 幫用戶讀取
- Google-Extended：Gemini 訓練
- Applebot-Extended：Apple AI 訓練
- meta-externalagent：Meta AI
- Bytespider：字節跳動
- CCBot：Common Crawl


## 常見問題

### llms.txt 要放在哪裡？

放在網站根目錄，也就是網域後面直接接 /llms.txt，例如 https://你的網域/llms.txt，並以純文字（text/plain 或 Markdown）回應，不能被導向首頁或回傳 HTML。

### llms.txt 的連結要怎麼寫？

每行一個連結，格式為「- [頁面名稱](完整網址): 補充說明」，建議使用 https:// 開頭的絕對網址，避免 AI 無法正確解析相對路徑。

### 為什麼 AI 讀 llms.txt 比讀網頁好？

AI 讀純文字比讀網頁快也更準確，因為不用處理選單、廣告和程式碼；使用者問 AI 問題時，你的網站內容更容易被正確理解與引用。

### robots.txt 要注意哪些 AI 爬蟲？

不要擋「幫用戶讀取」的 AI，例如 ChatGPT-User、Claude-User、Perplexity-User，否則使用者請 AI 查詢時會讀不到你的網站；訓練用爬蟲如 GPTBot、ClaudeBot 可依需求決定。

### 除了 llms.txt 還能做什麼？

可以加 /llms-full.txt 把重要內容整理成一份完整純文字、為重要頁面提供 .md 版本並在 HTML 加上 text/markdown 的 alternate 連結，同時維持 sitemap.xml 並寫進 robots.txt。

## 參考來源

- [llms.txt 官方提案（Jeremy Howard，2024-09-03）](https://llmstxt.org/)
- [llms.txt 規格 GitHub 儲存庫（Answer.AI）](https://github.com/answerdotai/llms-txt)
- [Schema.org 結構化資料詞彙](https://schema.org)

---
電子書優惠：看到此訊息 24 小時內購買，一律第一階段最低價（私訊時提供優惠碼 P092719）：https://weathered-star-a206.panda198271.workers.dev
冷錢包 X1 五折優惠碼：Hulk@SFP，官方網站：https://safepal.com/zh-tc/store/x1｜交易所手續費減免註冊：幣託 https://www.bitopro.com/users/sign_up?referrer=3481486016｜BingX https://bingxzone.com/partner/QTKP7NLU｜幣安 https://www.binance.com/join?ref=HULK12
