---
id: conversational
name: Conversational
summary: |
  Routes BookWorm customer requests through privacy-filtered AI agents for
  catalog-backed book discovery and read-only store-policy guidance.
owners:
  - ai-capabilities-team
version: 1.0.0
systems:
  - id: chat-system
    version: 1.0.0
  - id: mcp-tools
    version: 1.0.0
flows:
  - id: agent-orchestration
    version: 1.0.0
agents:
  - id: book-agent
    version: 1.0.0
  - id: qa-agent
    version: 1.0.0
  - id: book-catalog-researcher
    version: 1.0.0
  - id: book-recommendation-researcher
    version: 1.0.0
badges:
  - content: Core Domain
    backgroundColor: blue
    textColor: blue
    icon: RectangleGroupIcon
  - content: Business Critical
    backgroundColor: red
    textColor: red
    icon: ShieldCheckIcon
---

## Business Purpose & Boundary

[[domain|conversational]] is BookWorm's Core bounded context for AI-assisted customer book discovery and store-policy guidance. It validates incoming customer requests, routes them in a single pass across safety, language, scope, and specialist selection, protects all prompts and responses with fail-closed PII redaction, and coordinates specialist agents ([[agent|book-agent]], [[agent|qa-agent]], and delegated research subagents) backed by read-only [[service|mcp-server]] tools. Explicitly **out of scope** are mutating books ([[domain|catalog]]), modifying shopping baskets ([[domain|shopping]]), creating or canceling orders ([[domain|ordering]]), and persisting customer feedback ([[domain|reviews]]).

:::warning
Conversational agents operate strictly **read-only** across transactional domains. When a customer asks about orders, shipping, or baskets, [[agent|qa-agent]] provides policy guidance only, and privacy middleware fails closed rather than forwarding unredacted text.
:::

## Core Responsibilities & Capabilities

| Capability                                         | Owning Service / Agent                                                                               | Primary Entities              |
| :------------------------------------------------- | :--------------------------------------------------------------------------------------------------- | :---------------------------- |
| **Multi-Agent Chat Orchestration & Session State** | [[service\|chat-api]]                                                                                | — (Session state only)        |
| **Single-Pass Safety, Scope & Specialist Routing** | [[service\|chat-api]]                                                                                | —                             |
| **Book Discovery & Recommendations**               | [[agent\|book-agent]], [[agent\|book-catalog-researcher]], [[agent\|book-recommendation-researcher]] | — (Reads [[domain\|catalog]]) |
| **Store Policy & Support Guidance**                | [[agent\|qa-agent]]                                                                                  | —                             |
| **Read-Only Catalog Tool & Prompt Exposure**       | [[service\|mcp-server]]                                                                              | — (Reads [[domain\|catalog]]) |

## Cross-Domain Interactions (Context Map)

| Neighboring Domain / System       | Direction                                         | Integration Mechanism                   | Business Data Exchanged                                                             |
| :-------------------------------- | :------------------------------------------------ | :-------------------------------------- | :---------------------------------------------------------------------------------- |
| **[[domain\|catalog]]**           | Upstream (`Catalog` → `Conversational`)           | Sync (gRPC via [[service\|mcp-server]]) | Read-only book searches, book details, categories, and authors                      |
| **[[domain\|reviews]]**           | Upstream (`Reviews` → `Conversational`)           | Sync (A2A gRPC)                         | Delegated requests to [[agent\|rating-agent]] for summarized book feedback          |
| **[[system\|data-privacy]]**      | Upstream (`Data Privacy` → `Conversational`)      | Sync (HTTP)                             | Fail-closed PII analysis and anonymization on incoming prompts and buffered replies |
| **[[system\|identity-provider]]** | Upstream (`Identity Provider` → `Conversational`) | Sync (OIDC / OBO)                       | Customer and agent identity tokens with per-agent claim isolation                   |

:::note
**Read-Only Boundary & Fail-Closed Privacy:** Conversational has no transactional SQL database, cache, or broker integration. Any recommendation that a customer chooses to add to a basket requires explicit customer confirmation in the storefront UI, preserving [[domain|shopping]]'s ownership of basket mutations.
:::

## Ubiquitous Language Highlights

- **Customer Request:** An incoming BookWorm conversation turn; referencing a book, basket, or order never transfers ownership of that record into Conversational.
- **Decision Router:** The single-pass entry gatekeeper that evaluates safety, English compliance, domain scope, and target specialist before invoking a generative agent.
- **Book Agent & Research Subagents:** [[agent|book-agent]] handles catalog discovery and delegates deep lookups and personalized synthesis to [[agent|book-catalog-researcher]] and [[agent|book-recommendation-researcher]].
- **QA Agent:** [[agent|qa-agent]] answers shipping, returns, account, and store-policy questions without accessing live customer records.
- **Handoff:** A transfer of conversational control between specialists (never a transactional business workflow).

## Architecture Visualizations

<NodeGraph />

### Conversational Context Overview

<LikeC4View viewId="conversationalContext" project="conversational" />

## Related Governance & Documentation

- [[system|chat-system]] — Chat orchestration boundary and [[service|chat-api]].
- [[system|mcp-tools]] — Read-only MCP tool server boundary and [[service|mcp-server]].
- [[flow|agent-orchestration]] — End-to-end request validation, routing, privacy screening, and agent delegation.
- [[adr|adr-bw-014-composable-ai-governance]] — Composable validation, PII, and guardrail controls on every AI path.
- [[doc|misc/001-ms-decisions-model-use-case-and-lessons-learned]] — Single-pass decision routing design and lessons learned.
- [[doc|arc42/12-glossary]] — Shared conversational and cross-domain terminology.
