Chat Agent Orchestration
A customer submits a conversational request through Storefront; Chat API screens input, routes via a non-LLM classifier with optional human disambiguation, delegates to specialist agents, and formats the response.
Trigger & Business Outcome
This flow is triggered when an authenticated customer sends a conversational message from the Storefront to Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs. Success is confirmed when Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs screens the input, routes it to the appropriate specialist (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, 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, or 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), persists session context 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, and returns a formatted, read-only response without exposing transactional order or account mutations.
Interactive Flow Visualization
Step-by-Step Walkthrough
Guarded Conversational Routing and Specialist Execution
Authenticate and screen customer input
Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs enforces customer authentication and per-user rate limits, loads multi-turn history from 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, and screens input for empty prompts, prompt injection, excessive length, and PII redaction via Presidio APIServicev1.0.0Presidio APIExternal HTTP sidecar API for detecting PII in text and anonymizing detected entities in the Chat and Rating AI agent pi...SubscribesAnalyzeText, AnonymizeText +3APIsOpenAPIOwnerplatform-engineering-teamDiagramOpen docs.
Classify scope and specialist route
A lightweight non-LLM decision router checks English language, BookWorm scope, and target specialist. Non-English or off-topic prompts short-circuit immediately; low-confidence in-scope prompts pause for customer disambiguation.
Execute specialist or parallel research
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 queries live catalog data through MCP ServerServicev1.0.0MCP ServerInternal stateless Streamable HTTP MCP service that exposes read-only Catalog lookup tools and reusable AI prompts. PublishesListBooksGrpc, GetBookDetailsGrpc +2Ownerai-capabilities-teamDiagramRepositoryOpen docs or fans out concurrently to 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 and 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. 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 questions, and 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 provides review summaries over Agent-to-Agent gRPC.
Normalize and return response
Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs strips any leaked system-prompt fragments, normalizes punctuation, saves updated session state 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, and streams the final answer to Storefront.
Failure, Retry & Compensation Behavior
| Failure Point | System Behavior | Compensation / Recovery |
|---|---|---|
| Prompt injection or empty input | Input screening rejects the turn before routing | Returns a safe boundary prompt without consuming specialist LLM tokens |
| Low-confidence in-scope route | Workflow pauses and asks the customer to pick a specialist | Resumes immediately with the customer’s chosen specialist |
| Account or live-order mutation request | qa-agent enforces a strict read-only boundary | Directs the customer to Commerce or human support |
Read-only conversational boundary: None of the conversational agents can edit baskets, place orders, cancel orders, or submit reviews. Always route customer traffic through Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs so input screening, PII redaction, and response formatting are enforced.
Participating Resources
- Domains & Systems: ConversationalDomainv1.0.0ConversationalRoutes BookWorm customer requests through privacy-filtered AI agents for catalog-backed book discovery and read-only sto...Ownerai-capabilities-teamDiagramOpen docs, ReviewsDomainv1.0.0ReviewsCaptures individual customer feedback for books, publishes rating changes for Catalog discovery, and provides privacy-sc...Ownercatalog-experience-teamDiagramOpen docs, Chat SystemSystemv1.0.0Chat SystemInternal system that hosts BookWorm's conversational workflow and specialist AI agents for customer support and catalog-...Ownerai-capabilities-teamDiagramRepositoryOpen docs, 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, Data PrivacySystemv1.0.0Data PrivacyExternal Presidio system that detects and anonymizes personally identifiable information in the Reviews feedback-summari...Ownerplatform-engineering-teamDiagramOpen docs
- Services & Stores: Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs, MCP ServerServicev1.0.0MCP ServerInternal stateless Streamable HTTP MCP service that exposes read-only Catalog lookup tools and reusable AI prompts. PublishesListBooksGrpc, GetBookDetailsGrpc +2Ownerai-capabilities-teamDiagramRepositoryOpen docs, Presidio APIServicev1.0.0Presidio APIExternal HTTP sidecar API for detecting PII in text and anonymizing detected entities in the Chat and Rating AI agent pi...SubscribesAnalyzeText, AnonymizeText +3APIsOpenAPIOwnerplatform-engineering-teamDiagramOpen docs, 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
- AI Agents: 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, 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, 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, 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, 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
- Related Views: Customer Feedback Publication and ProjectionFlowv1.0.0Customer Feedback Publication and ProjectionRating API persists customer feedback in Cosmos DB and publishes an integration event; Catalog API updates the derived b...Ownercatalog-experience-teamView flowOpen docs