> ## Documentation Index
> Fetch the complete documentation index at: https://crossword.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Knowledge and customer context

> Choose what each Agent answers from, such as your catalog, FAQs, and policies, and what it knows about the shopper, such as the page they are on.

Knowledge sources are what an Agent answers from, such as the catalog, product FAQs, and policies. Customer context is what the Agent knows about this shopper right now, such as the page they are on and where they came from. Each Agent gets only the knowledge and context its job needs.

## Knowledge sources

Knowledge sources are content you keep current. The Agent answers from them and cites nothing it cannot find in them.

| Source | What it holds | Example |
| - | - | - |
| Catalog | Products, variants, prices, stock, and bestsellers | Every gummy, spray, and bundle |
| Product FAQs | Questions and answers about a single product | "Will I wake up groggy?" for the sleep gummy |
| Brand FAQs | Questions about the brand as a whole | Ingredients, sourcing, lab testing, vegan |
| Policies | Shipping, returns, guarantees, and contact details | The 30-day guarantee |
| Reviews | What customers say about a product | Review highlights for the product on screen |
| Visited pages | Store pages Crossword reads for a dynamic component page group matched by web address | A blog post a summary is written from |

Narrow each Agent to its job. An Agent on a product page answers best from that product's own FAQ, not the whole catalog. The global guardrails also hold every Agent to facts the brand has published. Read [Guardrails and fallback](https://crossword.ai/docs/agents/guardrails-and-fallback.md).

The **Knowledge** screen lists your knowledge bases with their source count and sync status. Only synced knowledge can be used in a reply.

![The Knowledge screen listing five knowledge bases](https://mintcdn.com/crossword/ulRCjvN5HMduuBug/images/agents/knowledge-and-context.png?fit=max\&auto=format\&n=ulRCjvN5HMduuBug\&q=85\&s=5cd337c7112a5b0139f77671bced9e9c)

The Knowledge screen listing five knowledge bases

## Customer context

Customer context is live information about the shopper, supplied by Crossword for every conversation.

| Signal | What it tells the Agent | Example use |
| - | - | - |
| Page | Which page the shopper is on, down to the product | Answer about the product on screen |
| Arrival source | Where they came from, such as an ad, Google, or direct | Pick up the angle of the ad they clicked |
| Logged in | Whether the shopper is signed in | Offer an order lookup |
| Past orders | What the shopper has bought before | Offer a reorder of a product they already use |

Some context comes from Global settings and applies to every Agent. Customer context is what is true now. [Customer memory](https://crossword.ai/docs/agents/customer-memory.md) is what the Agent has learned in the conversation and on earlier visits.

## Read versus change

An Agent reads its knowledge sources and customer context. It changes none of them directly.

Every change goes through an action, such as adding to cart or starting a return. Multi-step actions run as [Workflows](https://crossword.ai/docs/agents/workflows.md). Read [Rich responses and actions](https://crossword.ai/docs/agents/rich-responses-and-actions.md).

| The Agent wants to | How it happens |
| - | - |
| Quote a pack price | Reads the catalog |
| Explain the return window | Reads a policy |
| Know the shopper came from an ad | Reads customer context |
| Add a pack to the cart | Runs an action |
| Start a return | Runs an action |

## Sources for dynamic components

A [dynamic component Workflow](https://crossword.ai/docs/components/dynamic/workflows.md) writes the words for AI blocks on your store pages. Its AI items read sources through `#` mentions in the instruction.

* **Knowledge bases.** The same sources your Agents answer from, including **Visited pages**.
* **Tables.** Rows of your own data, such as your synced products.
* **Saved queries.** The rows a saved query returns.

The AI reads nothing else and never fetches web pages live.

## Example

The Product Q\&A Agent answers on product pages, so its knowledge and context stay close to the product on screen.

```yaml theme={null}
knowledge_sources:
  - The product on screen and its own FAQ
  - Reviews, pack sizes, prices, Subscribe & Save, 30-day guarantee
customer_context:
  - Which product page they are on
  - Whether they have ordered this product before
  - Whether they came from an ad
```

A returning customer on the sleep gummy page gets a reorder offer, because past orders show they bought it before.

## Related

> [card] [Customer memory](https://crossword.ai/docs/agents/customer-memory.md)

> [card] [Rich responses and actions](https://crossword.ai/docs/agents/rich-responses-and-actions.md)

> [card] [Workflows](https://crossword.ai/docs/agents/workflows.md)

> [card] [Global settings](https://crossword.ai/docs/global/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.