Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

Chat request does not return a usable response

Triage an interactive request that fails to return a useful assistant response.

Runbook

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.

Danger

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>:

Terminal window
az containerapp show --name <SERVICE_NAME> --resource-group <RESOURCE_GROUP> --query "properties.runningStatus" -o tsv
az containerapp logs show --name <SERVICE_NAME> --resource-group <RESOURCE_GROUP> --tail 200

Quick Recovery Procedure

  1. Check ingress status and endpoint

    Confirm the request targeted /chatting/ag-ui (forwarded to /ag-ui on 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 missing customer role / chatting_read + chatting_write scopes.

    429: Per-user rate limit exceeded; honor Retry-After.

    5xx or 200 with fallback text: Continue to dependency and trace checks.

  2. 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-1 selected 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).

  3. Check downstream dependencies

    Look for failed spans or timeouts across:

    Microsoft Foundry: Model errors, throttling, or CognitiveServicesUser RBAC 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.

  4. 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:

Terminal window
az containerapp logs show --name <SERVICE_NAME> --resource-group <RESOURCE_GROUP> --tail 50

Expected trace progression:

1. /ag-ui returns 200 with an event stream
2. Input validation -> accepted
3. Decision router -> selected specialist (<Book|QA|Rating>)
4. Specialist -> assistant text or client UI tool call

Rollback / 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).