Designed for tablet+. View on a tablet or larger screen for the intended layout.
CORE_WORKSHOP_v1.0
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.

4.7

Prompt Repository — versioned assets

10 min 3L / 7HO 3:58 – 4:08
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)

  1. Sidebar → Prompt Repository
  2. Create Prompt → name workshop-greeting
  3. Add a version → system message: "You are a friendly Vue.js workshop assistant. Greet the user."
  4. Commit message: v1: initial draft → save
  5. Add another version with a tone change → commit v2: more casual → save
  6. Copy the prompt UUID from the dashboard (you'll need it for the header — name ≠ UUID)
  7. (Optional) curl ... -H "x-bf-prompt-id: <UUID-you-just-copied>" — see the stored prompt injected
  8. Confirm both versions visible in the repo view