# How answers use knowledge (/docs/knowledge/how-answers-use-knowledge)

> In plain terms: the agent searches published, attached knowledge, uses the most relevant passages, can cite them, and says when it does not know.

Type: concept | Status: ga | Last reviewed: 2026-11-21

This page explains what happens when a customer asks a question, so you can predict and fix the agent's answers.

## The steps [#the-steps]

1. The agent searches knowledge that is **published**, **attached** to it and has **Use in answers** on. The item must also be within its validity dates (**Effective from** and **Expires on**).
2. It picks the passages that actually bear on the question. When several items score closely, items with higher **Priority** are preferred, and items whose **Language** matches the question get a boost.
3. It writes an answer from those passages, following each item's [guidelines](/docs/knowledge/guideline-fields) and any AI instructions.
4. It shows a source according to the item's [citation mode](/docs/knowledge/citation-modes).
5. If nothing relevant is found, it says it does not know, using your fallback message, and may hand over to a person.

So a gap is usually a content problem. The answer is not in knowledge, or it is in an item that is not published or attached. See [Troubleshooting](/docs/knowledge/troubleshooting).

## Why answers differ from your document [#why-answers-differ-from-your-document]

- The agent answers from passages, not the whole document. If the answer is spread across distant sections, add an FAQ that states it in one place.
- Guidelines can narrow an answer ("Do not quote prices").
- Another item may rank higher.
- The agent's own [instructions](/docs/agents/write-good-instructions) also shape wording.

## Identity and private data [#identity-and-private-data]

Knowledge answers do not need a customer to prove who they are. For anything private, use [Integrations](/docs/integrations) or [Records](/docs/records) with verification; see [Security and verification](/docs/security).

## Sending files [#sending-files]

If **Let the assistant send this file** is on for an item, the agent can send the original file when a customer asks for it.

## Languages [#languages]

Customers can ask in other languages; see [Languages](/docs/languages-attachments). Setting an item's **Language** on its AI instructions tab helps same-language matches.

## Improving answers [#improving-answers]

Read real conversations in the [Inbox](/docs/inbox), find the questions the agent could not answer, and add them as FAQs. The Agent Builder's improvement list also suggests fixes.
