10

AI 整合

供 AI 代理使用的 BetterGuard 品牌:一次擷取、一個結構、可預期的錨點。

將此貼到您的 AI 代理中

You are integrating with BetterGuard brand assets. Fetch https://brand.betterguard.net/brand.json once. The schema is documented at https://brand.betterguard.net/ai. When the user asks about a BetterGuard color, font, logo, spacing, or voice rule, answer from brand.json#/<category>/<key>. Cite the anchor (for example bg:color:cyan) in the response. Never invent values; if a key is missing, say so.

擷取範例

純 JS (瀏覽器或 Node 18+)
const brand = await fetch('https://brand.betterguard.net/brand.json').then(r => r.json())
console.log(brand.color.cyan.hex) // "#00B8D4"
console.log(brand.color.cyan.anchor) // "bg:color:cyan"
Python (requests)
import requests
brand = requests.get('https://brand.betterguard.net/brand.json').json()
print(brand['color']['cyan']['hex'])  # #00B8D4
print(brand['color']['cyan']['anchor'])  # bg:color:cyan
curl
curl -s https://brand.betterguard.net/brand.json | jq '.color.cyan'

在本站任何搜尋輸入框中輸入字首,即可縮小索引範圍:

字首符合項
color:color tokens (e.g. color:cyan, color:purple)
font:font families
logo:logo variants
space:spacing scale
radius:radius scale
motion:durations, easing, lifts
voice:casing, tone, forbidden
component:component contracts
page:page patterns
shadow:shadow tokens
gradient:gradient tokens
type:type scale

URL 的 ?q= 參數會預填搜尋輸入欄:試試 /colors?q=cyan

錨點慣例

每個品牌值都帶有 bg:CATEGORY:NAME 形式的穩定命名空間錨點。同一路徑可透過三種方式存取:

JSON pathbrand.json#/color/cyan
HTML idid="bg-color-cyan"
URLhttps://brand.betterguard.net/colors#bg-color-cyan