Chat request does not return a usable response
Triage an interactive request that fails to return a useful assistant response.
Trigger / Symptom & Blast Radius
A customer sends a chat message through Storefront and receives an HTTP error (401, 403, 429, 5xx), a stalled stream, an empty reply, or the generic rephrase fallback. Blast radius is isolated to interactive Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow,
agent discovery, and session persistence.
Ownerai-capabilities-teamDiagramRepositoryOpen docs conversations; catalog browsing, basket, and checkout remain unaffected.
Never include raw customer prompts, names, email addresses, or personal data in incident tickets or logs. Record only the request category, stage outcomes, and correlation IDs.
Pre-Flight Check
Verify Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow,
agent discovery, and session persistence.
Ownerai-capabilities-teamDiagramRepositoryOpen docs container status and stream recent logs in <ENV>:
az containerapp show --name <SERVICE_NAME> --resource-group <RESOURCE_GROUP> --query "properties.runningStatus" -o tsvaz containerapp logs show --name <SERVICE_NAME> --resource-group <RESOURCE_GROUP> --tail 200Quick Recovery Procedure
Check ingress status and endpoint
Confirm the request targeted
/chatting/ag-ui(forwarded to/ag-uion Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs). Interpret HTTP status codes:401/403: Missing/invalid Entra ID token or missingcustomerrole /chatting_read+chatting_writescopes.429: Per-user rate limit exceeded; honorRetry-After.5xxor200with fallback text: Continue to dependency and trace checks.Trace workflow stages in OpenTelemetry
Inspect the trace in Aspire Dashboard (local) or Azure Log Analytics (
<ENV>):Input validation: Confirm whether the turn was accepted or rejected as empty/unsafe.
Decision router: Confirm
Microsoft-Decision-1selected 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.Specialist & formatter: Confirm the selected specialist produced text or a client UI tool call (an empty text string with a tool call is expected for Storefront cards).
Check downstream dependencies
Look for failed spans or timeouts across:
Microsoft Foundry: Model errors, throttling, or
CognitiveServicesUserRBAC failures.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: PII analyzer/anonymizer failures.
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: Catalog tool errors during 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 execution.
Rating APIServicev1.0.0Rating APIInternal HTTP and A2A gRPC service for collecting, listing, deleting, and summarizing customer feedback for Catalog book...PublishesFeedbackCreatedIntegrationEvent, FeedbackDeletedIntegrationEventSubscribesCreateFeedback, DeleteFeedback +3APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs: A2A gRPC timeouts (2-minute client timeout) or Entra Agent Identity token exchange errors.
Verify session storage if history was lost
Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs persists conversation transcripts 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. Confirm the Storage Account (or local Azurite) is reachable and the Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs Managed Identity holds
Storage Blob Data Contributor.
Verification
Replay an equivalent sanitized request against /chatting/ag-ui and confirm HTTP 200 with a non-fallback assistant response or expected UI tool call in the trace:
az containerapp logs show --name <SERVICE_NAME> --resource-group <RESOURCE_GROUP> --tail 50Expected trace progression:
1. /ag-ui returns 200 with an event stream2. Input validation -> accepted3. Decision router -> selected specialist (<Book|QA|Rating>)4. Specialist -> assistant text or client UI tool callRollback / Escalation
- Rollback: If a recent Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow,
agent discovery, and session persistence.
Ownerai-capabilities-teamDiagramRepositoryOpen docs deployment introduced regressions in prompts, routing, or middleware, roll back to the previous Container App revision in
<RESOURCE_GROUP>. - Escalation: Escalate repeated fallbacks or dependency faults to AI Capabilities TeamTeamAI Capabilities TeamComplicated-Subsystem team owning BookWorm's multi-agent conversational discovery, MCP/A2A protocols, vector ingestion, ...Open docs (code/prompts) or Platform Engineering TeamTeamPlatform Engineering TeamPlatform team providing BookWorm's thinnest viable platform—orchestration, messaging fabric, scheduling, notifications, ...Open docs (Foundry/RBAC/Storage).
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 workflow.
- ADR-002: Apply PII filtering to agent input and outputDecision Recordv1.0.0ADR-002: Apply PII filtering to agent input and outputChat agents use Presidio middleware to analyze and anonymize sensitive text, and privacy-processing failures are not byp...Ownerai-capabilities-teamOpen docs — Fail-closed PII filtering behavior.