10
אינטגרציית AI
מותג BetterGuard לסוכני AI: קריאה אחת, סכמה אחת, עוגנים צפויים.
הכנס זאת לסוכן ה-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.
דוגמאות fetch
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"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:cyancurl -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 path | brand.json#/color/cyan |
| HTML id | id="bg-color-cyan" |
| URL | https://brand.betterguard.net/colors#bg-color-cyan |