Designed for tablet+. View on a tablet or larger screen for the intended layout.
SPEAKER NOTES MODE — press s to hide
BLOCK 4 · AI GATEWAY (PRODUCTION)
3:58 – 4:08 · 10 min · 3L / 7HO · Lab
TOPIC 4.7 / 10 · HO #6 · VERIFIED OSS
Prompts as gateway assets
Named, versioned, callable by header. Same shape as Git for code — but for prompts.
Decouples prompt iteration from app deploy cycles.
Slide 1 / 3 · Versioned assets
Prompts should be assets, not constants
- Named prompts (
customer-support-greeting, repo-briefing-system) — each gets a UUID
- Versioned — every edit creates a new version with a commit message
- Called by header (
x-bf-prompt-id: <prompt-UUID>) — gateway injects the latest committed version
- Optional
x-bf-prompt-version: <N> — pin a specific version (rollback / canary)
- Invalid IDs are logged as warnings, request still runs
Slide 2 / 3 · Why this separation matters
Decouple prompt iteration from deploy cycles
Before:
- Marketing rewords the greeting → engineer redeploys the app
After:
- Marketing rewords the greeting → new prompt version in the repo
- App still calls
x-bf-prompt-id: <UUID>
- No redeploy. No release window.
Slide 3 / 3 · Eight steps to prompt versioned
HO #6 — Prompt Repository (7 min)
- Sidebar → Prompt Repository
- Create Prompt → name
workshop-greeting
- Add a version → system message: "You are a friendly Vue.js workshop assistant. Greet the user."
- Commit message:
v1: initial draft → save
- Add another version with a tone change → commit
v2: more casual → save
- Copy the prompt UUID from the dashboard (you'll need it for the header — name ≠ UUID)
- (Optional)
curl ... -H "x-bf-prompt-id: <UUID-you-just-copied>" — see the stored prompt injected
- Confirm both versions visible in the repo view