Why This Matters

Grounding the support assistant on a published, managed knowledge set prevents stale, duplicated prompts and reduces accidental drift from operational reality. Static knowledge should explain stable policy and product context, while operational facts continue to come from live services.

Static Knowledge Source of Truth

The source of truth for support-agent static content is:
  • dashboard-authored and dashboard-published documents in Hono
  • served through GET /api/ai/customer-support/knowledge
Mastra should inject the returned compiledPrompt string into the runtime prompt context and use it for stable business context only. In production, apps/mastra reads this endpoint through the generated @hol/client package using the HOL_HONO Cloudflare service binding as the client fetch transport. Hono still owns the endpoint contract and public-read policy.
The endpoint is public because it only returns guest-facing published content. It must never expose draft content, revision history, internal notes, reservation IDs, payment details, or email delivery states.

Runtime Dynamic Boundary

These domains are operational and must be answered through tools, not static prompt memory:
  • show schedules
  • prices and package offers
  • live availability
  • menus
  • reservations
  • payments
  • refunds
  • email delivery status
If a guest asks a live-operational question, the agent should gather missing parameters (such as event date and guest count) and call the appropriate tool-backed endpoint.

Endpoint Surface

RouteMethodAccessPurpose
/api/ai/customer-support/knowledgeGETPublicReturns only published documents and a deterministic compiledPrompt used by static agent grounding.

Governance and RBAC

  • /api/ai/knowledge/* write operations (create/update/publish/archive) are admin/superuser.
  • staff is read-only for knowledge management and has no write path.
  • Read access to published knowledge is public.
Any tool-backed endpoint returning live operational data remains under Hono route access checks and the assistant-safe catalog contracts.