搜尋與 AI 解答
為每個頁面提供完整的 meta 標籤與結構化資料,並從您自己的網域提供 sitemap.xml、robots.txt 與 llms.txt。
本頁翻譯自英文。若內容有任何差異,以英文版為準。 閱讀英文版
Atlas 會準備搜尋引擎與 AI 助理讀取您網站時所需的一切。您的網站只需要把它輸出。
Atlas 準備的內容
Section titled “Atlas 準備的內容”| 對象 | 您會得到什麼 |
|---|---|
| 每個頁面 | 現成的 head:標題、說明、robots、canonical 與語言連結、Open Graph 與 X/Twitter 標籤,以及 JSON-LD |
| 結構化資料 | Organization、WebSite、WebPage、Article、Product、BreadcrumbList 與 FAQPage,已針對 script 標籤完成跳脫 |
sitemap.xml |
正式發行版本中每個可被索引的已發布頁面,並附語言替代版本 |
robots.txt |
允許搜尋引擎、指向 sitemap,並可依您的選擇阻擋 AI 爬蟲 |
llms.txt |
為 AI 助理提供的網站與頁面純文字摘要 |
Development 的頁面與檔案一律標示為 noindex,因此測試網站絕不會出現在搜尋結果中。
設定您的搜尋檔案
Section titled “設定您的搜尋檔案”- 在 Studio 中開啟 SEO & redirects → Search & AI。
- 在 Organization and summary 下,填寫 Organization name、Logo、Profiles elsewhere(您的社群與公司頁面,每行一個)以及 What the site is about(最多 500 個字元)。
- 選擇 AI crawlers:Allow AI assistants to read the site 或 Keep AI crawlers out。
- 按一下 Save settings。正式網站會隨下一個發行版本取得這些設定。
llms.txt 卡片會預覽該檔案,並列出沒有摘要的頁面。Structured data per page 會顯示頁面實際會輸出的內容,可選擇目前草稿或已發布版本。
在每個頁面上,頁面編輯器的 Page 分頁會加入 Canonical page(您網站上的路徑)與 Sharing image(預設為頁面上的第一張圖片)。
在您的網站上輸出
Section titled “在您的網站上輸出”Delivery API 的 pages 回應包含 head:{ title, meta[], links[], jsonLd[] }。請將它對應到您框架的中繼資料,並將 JSON-LD 區塊印在 <script type="application/ld+json"> 標籤中。這些區塊已完成跳脫,但請在您的程式碼中解析並重新序列化,而不要盲目信任任何 CMS 的輸出。
當該環境在 Atlas 中沒有網站位址時,head 為 null,並附帶 headProblem: "SITE_ADDRESS_MISSING"。請在 Studio 中為該環境加入網站位址。
請在您自己的伺服器上代理這三個檔案,從您自己的網域提供,讓傳遞權杖保持私密:
// app/robots.txt/route.ts (do the same for sitemap.xml and llms.txt)export async function GET() { const response = await fetch( `${process.env.ATLAS_CMS_ORIGIN}/v1/delivery/environments/${process.env.ATLAS_ENVIRONMENT_ID}/robots.txt`, { headers: { Authorization: `PublishedConsumer ${process.env.ATLAS_DELIVERY_TOKEN}` } }, ); const headers = new Headers({ 'content-type': response.headers.get('content-type') ?? 'text/plain', }); const robotsTag = response.headers.get('x-robots-tag'); if (robotsTag) headers.set('x-robots-tag', robotsTag); return new Response(await response.text(), { status: response.status, headers });}當 AI 爬蟲被阻擋時,robots.txt 會禁止 GPTBot、OAI-SearchBot、ChatGPT-User、ClaudeBot、Claude-SearchBot、anthropic-ai、PerplexityBot、Google-Extended、Applebot-Extended、CCBot 與 meta-externalagent。
解答引擎檢查
Section titled “解答引擎檢查”SEO 稽核現在也會檢查有助於 AI 助理引用您頁面的項目:每頁一個 H1、標題順序、附有答案的常見問題、第一句簡短的答案(40 字以內)、圖片替代文字、canonical 連結、分享圖片,以及 llms.txt 摘要。這些都只是建議,絕不會阻擋發布。
- Canonical 連結必須指向您自己網站上的路徑。
llms.txt最多列出 2,000 個頁面。- 目前尚無 Google Search Console 連線。