Chat System
Internal system that hosts BookWorm's conversational workflow and specialist AI agents for customer support and catalog-backed book discovery.
System Purpose & Boundary
The Chat System delivers BookWorm’s interactive conversational assistant and multi-agent orchestration within the ConversationalDomainv1.0.0ConversationalRoutes BookWorm customer requests through privacy-filtered AI agents for catalog-backed book discovery and read-only sto...Ownerai-capabilities-teamDiagramOpen docs domain. It serves Customers seeking store-policy answers, catalog-backed book discovery, personalized recommendations, and review insights. Modifying shopping baskets (ShoppingDomainv1.0.0ShoppingCoordinates the customer basket and pre-purchase checkout intent, from selecting books through handing an accepted purch...Ownercommerce-fulfillment-teamDiagramOpen docs), placing or mutating orders (OrderingDomainv1.0.0OrderingCreates durable Orders from a buyer's current basket, locks purchase-time pricing, and owns order lifecycle transitions ...Ownercommerce-fulfillment-teamDiagramOpen docs), and persisting customer reviews (ReviewsDomainv1.0.0ReviewsCaptures individual customer feedback for books, publishes rating changes for Catalog discovery, and provides privacy-sc...Ownercatalog-experience-teamDiagramOpen docs) are explicitly out of scope—the system operates strictly as a read-only advisor.
All conversational inputs and outputs pass through fail-closed PII detection and anonymization in Data PrivacySystemv1.0.0Data PrivacyExternal Presidio system that detects and anonymizes personally identifiable information in the Reviews feedback-summari...Ownerplatform-engineering-teamDiagramOpen docs. Streaming replies are buffered until privacy screening succeeds; if privacy screening is unavailable, the turn fails rather than bypassing redaction.
Contained Capabilities
| Service / Agent | Role in System | Primary Data Store | Interaction Style (Sync / Async) |
|---|---|---|---|
| Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs | Hosts the interactive AG-UI conversational workflow, routing, safety validation, and agent discovery | Chat Session Blob StorageContainerv1.0.0Chat Session Blob StorageAuthoritative Azure Blob Storage container owned by the Conversational bounded context for durable AG-UI multi-turn chat...Ownerai-capabilities-teamDiagramOpen docs | Sync (HTTP / Streaming) |
| QA AgentAgentv1.0.0QA AgentRead-only customer support and store-policy specialist that answers operational, shipping, returns, account, and billing...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs | Answers store policy and general service questions from approved policy context | Chat Session Blob StorageContainerv1.0.0Chat Session Blob StorageAuthoritative Azure Blob Storage container owned by the Conversational bounded context for durable AG-UI multi-turn chat...Ownerai-capabilities-teamDiagramOpen docs | Sync (In-process) |
| Book AgentAgentv1.0.0Book AgentPrimary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookup...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs | Coordinates book search, catalog details, recommendations, and feedback discussions | Chat Session Blob StorageContainerv1.0.0Chat Session Blob StorageAuthoritative Azure Blob Storage container owned by the Conversational bounded context for durable AG-UI multi-turn chat...Ownerai-capabilities-teamDiagramOpen docs | Sync (In-process + MCP / A2A) |
| Book Catalog ResearcherAgentv1.0.0Book Catalog ResearcherInternal delegated subagent that performs low-temperature factual catalog lookups for the Book Agent and never communica...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs | Investigates catalog-backed book, author, and category facts | None (Stateless) | Sync (In-process + MCP) |
| Book Recommendation ResearcherAgentv1.0.0Book Recommendation ResearcherInternal delegated subagent that curates catalog-verified book shortlists matching customer preferences for the Book Age...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs | Builds catalog-backed book shortlists tailored to stated reader preferences | None (Stateless) | Sync (In-process + MCP) |
External Interactions & Trust Boundaries
- Customer entry point: Customers interact over the authenticated AG-UI streaming surface via the API Gateway, backed by Identity ProviderSystemv1.0.0Identity ProviderExternal identity infrastructure that authenticates BookWorm users and provides OAuth-compatible identity verification f...Ownerplatform-engineering-teamDiagramOpen docs token validation and per-user rate limiting.
- Catalog tooling: Book specialists connect to MCP ToolsSystemv1.0.0MCP ToolsInternal stateless MCP server that exposes read-only Catalog tools and reusable AI prompts to BookWorm AI clients. Ownerai-capabilities-teamDiagramRepositoryOpen docs using delegated On-Behalf-Of (OBO) tokens to invoke read-only catalog lookup tools; QA AgentAgentv1.0.0QA AgentRead-only customer support and store-policy specialist that answers operational, shipping, returns, account, and billing...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs has no catalog tool access.
- Review insights: Book AgentAgentv1.0.0Book AgentPrimary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookup...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs or the conversational router delegates book-specific review analysis to Rating AgentAgentv1.0.0Rating AgentRead-only review intelligence specialist that summarizes customer feedback over A2A gRPC and map-reduce workflows while ...PublishesAnalyzeText, AnonymizeTextOwnercatalog-experience-teamDiagramRepositoryOpen docs in Rating SystemSystemv1.0.0Rating SystemInternal Reviews system that owns customer feedback, publishes rating changes to Catalog, and provides read-time feedbac...Ownercatalog-experience-teamDiagramRepositoryOpen docs over Agent-to-Agent (A2A) gRPC.
- Privacy boundary: Data PrivacySystemv1.0.0Data PrivacyExternal Presidio system that detects and anonymizes personally identifiable information in the Reviews feedback-summari...Ownerplatform-engineering-teamDiagramOpen docs screens and redacts personal information on every turn before model invocation and before responses reach the customer.
- Prompt safety & scope routing: Empty inputs and prompt-injection attempts are rejected upfront; non-English or out-of-scope requests receive a boundary response without invoking specialist agents. - Session memory: Conversation transcripts and agent memory are persisted in Chat Session Blob StorageContainerv1.0.0Chat Session Blob StorageAuthoritative Azure Blob Storage container owned by the Conversational bounded context for durable AG-UI multi-turn chat...Ownerai-capabilities-teamDiagramOpen docs across turns.
System Visualizations
System Context
Component Topology
Architecture Decisions
Architecture Decision Records (9)
Decisions that apply to this Chat System. Search, filter by status, or sort by clicking a column.Related Documentation
- Chat Agent OrchestrationFlowv1.0.0Chat Agent OrchestrationA customer submits a conversational request through Storefront; Chat API screens input, routes via a non-LLM classifier ...Ownerai-capabilities-teamView flowOpen docs — End-to-end conversational routing and specialist handoff flow.
- domains/bookworm/subdomains/conversational/engineering/01-conversation-architecture — Conversational workflow architecture and governance boundaries.
- domains/bookworm/subdomains/conversational/guides/01-route-customer-requests — Request routing and scope enforcement guide.
- domains/bookworm/subdomains/conversational/guides/02-handle-book-discovery — Catalog-backed book discovery guide.