Shopify 店想俾 ChatGPT 搜尋引用:開 OAI-SearchBot + 執好 Product schema
要做嘅嘢:確認你 Shopify 店開放咗 OAI-SearchBot,然後每個產品頁有齊 Product JSON-LD(名、價、貨存、圖)。
依據:OpenAI 爬蟲官方文件 + ChatGPT 搜尋購物功能公告。ChatGPT 展示產品靠爬蟲讀到你頁面嘅結構化資料 —— 冇 schema,佢淨係估。
第一步:檢查 robots
Shopify 預設嘅 robots.txt 係開放嘅。行:
curl -s https://你店舖域名/robots.txt | grep -i -A2 "oai\|gpt"
見到 OAI-SearchBot 被 Disallow 先要改(改 robots.txt.liquid,做法睇開放 OAI-SearchBot 嗰篇)。冇提到就係預設放行,唔使郁。
第二步:檢查產品 schema
開一個產品頁,view-source 搵 application/ld+json,睇入面有冇 @type: "Product" 連 offers(價錢、貨存)。好多主題淨係出一半。冇嘅話,layout/theme.liquid 嘅 </head> 前貼:
{% if template contains 'product' %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": {{ product.title | json }},
"description": {{ product.description | strip_html | truncate: 300 | json }},
"image": {{ product.featured_image | image_url: width: 800 | prepend: "https:" | json }},
"offers": {
"@type": "Offer",
"price": {{ product.price | divided_by: 100.0 | json }},
"priceCurrency": {{ cart.currency.iso_code | json }},
"availability": "{% if product.available %}https://schema.org/InStock{% else %}https://schema.org/OutOfStock{% endif %}",
"url": {{ shop.url | append: product.url | json }}
}
}
</script>
{% endif %}
點樣驗證
Rich Results Test 入你條產品 URL,要見到 Product 同 price/availability 冇報錯。之後喺 ChatGPT 用搜尋問你賣嗰類嘢,睇會唔會引用到你。
香港實例
未有公開實例 —— ChatGPT 購物引用仲係早期,我哋手頭冇一間香港店可以公開確認「因為咁做而被引用」。呢篇係對住官方要求砌嘅準備工夫:條件齊咗,功能擴展到香港時你先係第一批讀到嘅店。
想我哋幫手套上去你個網站?話我哋知你睇緊邊篇。 WhatsApp 我哋