什麼是 llms.txt?2026 Shopify 指南
面向 Shopify 商家的 llms.txt 完整指南:它是什麼、該包含什麼、哪些 AI 引擎會使用,以及如何建立。
事實上,我們的 2026 Shopify AI 可見性基準報告 顯示:雖然 92.5% 的活躍店鋪響應 /llms.txt(由平台級 UCP 模板預設驅動),但僅有 9.4% 的商家定制了包含核心商品集合與選購指南的內容地圖。
What is llms.txt?
llms.txt 是放在 yourstore.com/llms.txt 的 Markdown 檔案。它告訴 AI 系統哪些頁面最重要:商品、集合、FAQ、政策頁與購買指南。
30 秒重點
- llms.txt lives at the root of your domain:
/llms.txt. - It lists key URLs such as products, collections, FAQs, policies, and guides.
- Each URL includes a short explanation so AI systems can prioritize it.
- It complements
sitemap.xmlandrobots.txt; it does not replace them.
sitemap.xml says “everything”; llms.txt says “what matters most.”
為什麼會出現 llms.txt
Shopping discovery is moving from classic search results to AI answers. ChatGPT, Perplexity, Claude, and Google AI Overviews must decide which stores to cite. They can only do that well when they understand what the store sells, who it serves, and which pages are authoritative.
robots.txtcontrols access but does not explain importance.sitemap.xmllists URLs but not priority or meaning.- Shopify themes can bury product signal under navigation, scripts, variants, and recommendations.
llms.txt adds a curated, human-readable layer for AI grounding.
What an llms.txt file looks like
https://yourstore.com/llms.txt
A typical file has a brand H1, a summary blockquote, short context, and H2 sections of important links with descriptions.
# Northwind Coffee Co.
> Single-origin specialty coffee roasted weekly in Portland, Oregon, shipped to home brewers across the U.S.
## Products
- [Yirgacheffe Single Origin](https://northwindcoffee.com/products/yirgacheffe): Bright, floral light roast from Ethiopia, 12oz whole bean.
## Buying Guides
- [How to choose your first specialty coffee](https://northwindcoffee.com/blogs/guide/choosing): For new specialty coffee drinkers.
## Policies
- [Shipping & Returns](https://northwindcoffee.com/policies/shipping): U.S. shipping rates, return window, freshness guarantee.
On Shopify, /llms.txt and /llms-full.txt mirror /agents.md by default. A separate expanded file requires an explicit override.
llms.txt vs sitemap.xml vs robots.txt
| File | Audience | Job |
|---|---|---|
robots.txt |
Search engines and AI bots | Permission: who can access what |
sitemap.xml |
Search engine crawlers | Inventory: every URL that exists |
llms.txt |
AI systems and answer engines | Priority: which URLs matter and what they are about |
Use all three together: robots.txt for permission, sitemap.xml for inventory, and llms.txt for AI priority. See our Shopify robots.txt checklist for AI crawlers.
What goes inside a Shopify llms.txt file
1. Store overview
State the brand, what it sells, who it serves, and why it is different in one to three sentences.
2. Featured products or collections
Do not list every SKU. List best sellers, flagship products, defining collections, and high-value categories. Ten to thirty links is enough for most stores.
3. Buying guides and educational content
Include comparison, sizing, care, ingredient, style, and “how to choose” content because AI engines use it to answer shopping questions.
4. FAQs
FAQ pages are easy for AI systems to quote because they already use a question-and-answer format.
5. Policies
Shipping, returns, sizing, warranty, subscriptions, and international availability are frequent AI shopping questions.
6. About and brand context
Add pages about sustainability, local manufacturing, certifications, founder story, or other differentiators that influence buying decisions.
Avoid every product, admin URLs, pages you do not want surfaced, and empty marketing copy. llms.txt is curation, not completeness.
檢查與自訂 Shopify 代理檔案
Shopify 已為每家商店維護 /agents.md,/llms.txt 和 /llms-full.txt 預設鏡像其內容。多數商家可保留平台管理版本,不需為了讓檔案存在而安裝應用程式或新增範本。
- 先造訪商店的 /agents.md 與 /llms.txt,確認具體缺少的資訊。
- 確需自訂時,先備份佈景主題,再進入 Online Store > Themes > Edit code。建立 templates/agents.md.liquid 可統一自訂三個路徑;只有 /llms.txt 需要不同內容時才建立 templates/llms.txt.liquid。
- 這些範本只提供 agents 與 request,不提供一般佈景主題的 shop 或 collections。請使用 agents 欄位與手動維護的靜態連結,不要遍歷商品目錄。
官方範本文檔: llms.txt.liquid · agents.md.liquid.
支援的 Liquid 範例
# {{ agents.store_name }}
> Store: {{ agents.store_url }}
## Commerce discovery
- UCP: {{ agents.ucp_discovery_url }}
- MCP: {{ agents.mcp_endpoint_url }}
- Sitemap: {{ agents.sitemap_url }}
本範例已對照 Shopify 文檔,尚未在開發商店執行。儲存後應確認店名與 URL 有值、商務探索端點保留、自訂商品與政策連結有效。只發布公開資訊,不要暴露私人聯絡資料。
AI 使用情況與效果時間
不能假設每個 AI 平台都讀取檔案或將它用於商品排名,也沒有可靠的效果時間表。持續維護可檢索頁面、準確商品資料與實用指南,再觀察來源流量和引用。
Google 的 AI 功能文檔說明,已索引且可顯示摘要的頁面無需額外技術要求即可具備 AI Overviews 或 AI Mode 展示資格;自訂 llms.txt 並非前提。 Google Search Central.
常見問題
Shopify 會自動產生 llms.txt 嗎?
會。Shopify 預設提供平台管理的代理探索檔案。僅在有明確需求時取代它,並持續維護自訂內容。
已有 schema 還需要自訂 llms.txt 嗎?
不一定。結構化資料與代理探索檔案用途不同;沒有明確需求時可保留預設檔案。兩者都不保證 AI 推薦。
llms-full.txt 與多語言版本如何處理?
除非另行覆寫,/llms.txt 和 /llms-full.txt 預設鏡像 /agents.md。檔案位於主要網域根路徑,沒有語言或 Markets 子目錄版本;可在內容中連結相關語言頁面。
下一步
先檢查預設檔案,再視需求使用免費產生器與行業範本。安裝前請確認應用程式的當前功能與權限,不要假設它會部署範本或監測引用。