Skip to content

Account – Knowledge base (detail/editor)

  • Path: /account/knowledge-bases/[kbId]
  • Parent: knowledge-bases.md

Edit, validate, and publish a knowledge base to define brand voice, facts, and compliance constraints.

This KB detail/editor may be accessed from:

  • Account → Knowledge Bases (knowledge-bases.md) for cross-workspace discovery, or
  • Workspace → Knowledge base (workspace-knowledge-base.md) for workspace-scoped navigation.
  • Workspace Admin, Manager (if allowed)
  • Permissions: kb.edit, kb.publish (TBD)

Reference: Roles & Permissions Model

  • Same page-shell pattern as Workspace open: header block + main content card.
  • Header shows KB context (workspace and connected-channel count).
  • Header also includes the top tab switcher (Objectives, Documents) in the same header section for consistency with Workspace open layout.
  • The header context row is the single source for KB metadata chips/details (status, linkage, objectives count, documents count, apps). Do not duplicate that summary row inside the Objectives card.
  • Workspace and KB group chips in the header context are interactive:
    • Workspace chip navigates to /account/workspaces/[workspaceId]
    • Group chip navigates to the same workspace with that KB group preselected in the group filter
  • Main card is the KB editor itself:
    • Objectives tab:
      • body: KbSettingsAccordion (same accordion used in Get Started Step 3)
    • Documents tab is a dedicated surface for KB documents (MVP placeholder supported)
  • Accordion sections include: Brand personality, Primary objective, Secondary objective, Greetings, Closing, Emojis, Hashtags, Exceptions, Clarifications, Default CTA, Custom objectives.
  • Empty: new KB draft
  • Loading: fetching KB content
  • Error: validation/publish error
  • Complete: saved/published
  • Enforce required compliance fields.
  • Publish triggers downstream refresh.
  • Clicking a KB card or KB name in table view navigates to this route.
  • Breadcrumb behavior on this route is context-aware:
    • Default entry (from Account → Knowledge Bases): Account > Knowledge bases > [KB name].
    • Workspace-scoped entry (from a workspace KB list): Account > Workspaces > [Workspace name] > [KB name].
    • In workspace-scoped mode, [KB name] is a dropdown listing KBs in the same workspace for quick switching.

Domain refs:

  • GET /knowledge-bases/{id}
  • PUT /knowledge-bases/{id}
  • POST /knowledge-bases/{id}/publish
  • Approval workflows (future)
  • Concurrent edits / conflicts
  • Audit edits and publish

Reference: Security & Compliance

  • kb.published

Reference: Analytics Events (MVP)