学习Product、Offer、Service等Agent关键Schema类型,以及ai.txt、Well-Known URL等Agent协议。
在Agent搜索时代,Schema标注的价值从「帮助AI理解」升级为「帮助Agent决策和执行」。以下Schema类型对Agent搜索最为关键:Product(产品信息)、Offer(价格和可用性)、Service(服务描述)、FAQPage(常见问题)、HowTo(操作指南)、AggregateRating(用户评分)。这些类型直接对应Agent在决策循环中需要提取的核心数据。
| Schema类型 | Agent用途 | 关键字段 | GEO影响 |
|---|---|---|---|
| Product | 识别产品及核心属性 | name, brand, category | 产品可发现性 |
| Offer | 提取价格和可用性 | price, availability, priceCurrency | 决策和执行依据 |
| Service | 理解服务内容和范围 | serviceType, areaServed | 服务类内容匹配 |
| FAQPage | 获取常见问题答案 | mainEntity/question/answer | 减少Agent回溯检索 |
| HowTo | 理解操作步骤 | step, supply, tool | 指导Agent执行操作 |
| AggregateRating | 评估口碑和可信度 | ratingValue, reviewCount | 决策权重信号 |
Product和Offer的组合标注是Agent GEO中最核心的Schema配置。以下模板展示了完整的产品标注,涵盖了Agent在决策和执行阶段需要的所有关键信息。
{
"@context": "https://schema.org",
"@type": "Product",
"name": "产品名称",
"brand": { "@type": "Brand", "name": "品牌名" },
"description": "一句话产品描述",
"category": "产品分类",
"image": "https://example.com/product.jpg",
"offers": {
"@type": "Offer",
"price": "99.00",
"priceCurrency": "USD",
"priceValidUntil": "2026-12-31",
"availability": "https://schema.org/InStock",
"url": "https://example.com/buy",
"seller": {
"@type": "Organization",
"name": "公司名"
},
"shippingDetails": {
"@type": "OfferShippingDetails",
"shippingRate": { "@type": "MonetaryAmount", "value": "0", "currency": "USD" }
}
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.8",
"reviewCount": "1250"
},
"hasMerchantReturnPolicy": {
"@type": "MerchantReturnPolicy",
"returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
"merchantReturnDays": 30
}
}Well-Known URL是一种标准化的站点级配置机制,通过/.well-known/路径下的文件向Agent和爬虫提供站点级别的指令。对于Agent搜索,关键的Well-Known URL包括ai.txt(AI访问策略)、security.txt(安全联系方式)、ai-plugin.json(AI插件描述)。
ai.txt类似robots.txt,但专门用于声明AI Agent的访问策略——哪些内容可以被Agent用于训练、哪些可以用于搜索引用、哪些可以用于执行操作。虽然ai.txt尚未成为正式标准,但提前配置可以展示Agent友好的态度。
Agent协议的配置需要平衡开放性和安全性。完全开放可能被恶意Agent滥用,完全封闭则失去Agent搜索流量。建议的策略是「分层开放」:内容信息层完全开放(允许检索和引用),操作执行层需要认证(防止未授权操作),数据导出层有条件开放(需要用户授权)。
配置ai.txt时,建议明确声明允许AI搜索引用内容、允许Agent提取结构化数据、但禁止未经认证的批量数据抓取和自动化购买操作。这样既保证Agent搜索的可见性,又控制了执行层面的风险。
# ai.txt - AI Agent Access Policy # https://example.com/.well-known/ai.txt # 允许AI搜索引擎索引和引用内容 User-agent: * Allow: / # 允许提取结构化数据(Schema标注) Allow: /api/structured-data/ # 禁止自动化购买操作(需用户认证) Disallow: /api/purchase/ Disallow: /api/subscribe/ # 允许读取FAQ和产品信息 Allow: /faq/ Allow: /products/ Allow: /pricing/ # 禁止批量数据导出 Disallow: /api/export/ # AI训练数据使用声明 AI-training: not-allowed AI-search-citation: allowed AI-agent-execution: require-auth