---
title: Answer store and customer-support questions
summary: How the QA Agent responds to store questions using supplied policy context and clear limits.
version: 1.0.0
type: guides
order: 3
badges:
  - content: Guide
    backgroundColor: teal
    textColor: teal
---

**Audience & Outcome:** This guide is for AI engineers and support-domain architects working on [[agent|qa-agent]] inside [[service|chat-api]]. You will learn how [[agent|qa-agent]] grounds answers in version-controlled policy skills while remaining structurally isolated from transactional customer data.

BookWorm routes store-policy and customer-support questions to [[agent|qa-agent]], an isolated specialist inside [[service|chat-api]]. [[agent|qa-agent]] grounds every answer in version-controlled store-policy skill documents and hands off book-specific follow-ups to [[agent|book-agent]], while structural governance rules prevent it from reading or mutating live customer accounts, baskets, or orders.

## Context and motivation

Customers regularly ask conversational questions about shipping speeds, return windows, refund timelines, gift cards, and order cancellations. In a microservices architecture, those topics sit adjacent to sensitive transactional domains—[[service|basket-api]] and [[service|order-api]].

If a conversational agent blends general policy guidance with live transactional lookups or writes, two failure modes emerge:

- **False transaction confirmation:** An LLM can phrase a generic return or cancellation policy as if it verified the customer's personal order status.
- **Over-privileged attack surface:** Granting a general support agent direct access to [[service|basket-api]], [[service|order-api]], or catalog search tools increases prompt-injection blast radius and blurs bounded-context ownership.

## How it works

When the decision router classifies an in-scope English request as a support or policy question—or when [[agent|book-agent]] transfers a policy question—[[agent|qa-agent]] executes under strict policy grounding and tool isolation.

The visual below shows how [[agent|qa-agent]] loads policy context from the store-policies skill, enforces governance and privacy middleware, and hands off mixed book requests to [[agent|book-agent]].

<MermaidFileLoader file="mermaids/03-answer-store-questions-diagram-1.mmd" />

### Four architectural invariants

:::warning
[[agent|qa-agent]] has zero network path to [[service|basket-api]] or [[service|order-api]]. It must never claim to have checked a live order, refund, or account balance.
:::

- **Skill-based policy grounding:** [[agent|qa-agent]] loads version-controlled store-policy skill documents covering shipping tiers, 30-day returns and refunds, account and order guidance (such as the 1-hour cancellation window), gift cards, BookPoints loyalty, wishlists, and pre-orders. When the skill files do not answer a question, it directs the customer to human support rather than inventing policies.
- **Structural tool isolation via governance:** Default-deny governance rules permit [[agent|qa-agent]] to invoke only skill-loading tools and `handoff_to_book`, while explicitly denying catalog tools (`search_catalog`, `get_book`, `list_categories`, `list_authors`). [[service|chat-api]] registers no Basket or Ordering clients.
- **Privacy, guardrails, and lightweight compaction:** Every model call runs through [[service|presidio-api]] PII filtering, guardrail middleware, decision-based tool selection, and lightweight context compaction.
- **Bidirectional mixed-intent handoffs:** [[agent|qa-agent]] hands book-specific portions of a mixed inquiry to [[agent|book-agent]] after resolving the policy portion, and [[agent|book-agent]] can hand policy follow-ups back to [[agent|qa-agent]].

<AccordionGroup>
<Accordion title="Design trade-offs and alternatives considered">

| Decision                                                                | Benefits                                                                                     | Costs and limits                                                                         |
| :---------------------------------------------------------------------- | :------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------- |
| **Policy-only skill grounding without live Ordering or Basket clients** | Eliminates unauthorized account lookups, order mutations, and false confirmations            | Customers asking for real-time order tracking must use Commerce or contact human support |
| **Explicit catalog-tool denial on [[agent\|qa-agent]]**                 | Enforces separation of concerns and prevents ungrounded book searches                        | Mixed support-and-book messages incur an extra handoff hop to [[agent\|book-agent]]      |
| **Version-controlled Markdown policy skills**                           | Policy updates go through Git review and deploy deterministically with [[service\|chat-api]] | Policy changes require a [[service\|chat-api]] redeployment rather than live CMS edits   |

**Rejected alternatives:**

- **Granting [[agent|qa-agent]] read-only OBO access to [[service|order-api]] and [[service|basket-api]]:** Expands PII exposure and prompt-injection risk; customers already manage baskets and order history directly in Commerce.
- **Merging store policies into [[agent|book-agent]]:** Degrades prompt focus and prevents enforcing distinct per-agent tool governance policies.

</Accordion>
</AccordionGroup>

## Related documentation

- [[flow|agent-orchestration]] — How `Microsoft-Decision-1` selects [[agent|qa-agent]] and coordinates handoffs.
- [[adr|adr-005-govern-agent-tools-per-agent]] — Per-agent tool governance and explicit denials.
- [[adr|adr-002-fail-closed-pii-middleware]] — Fail-closed PII filtering across agent inputs and outputs.
