---
title: "Use knowledge with agents"
description: "Learn which sources an agent reads, attach docs to one agent, and check the evidence behind an answer."
---

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

# Use knowledge with agents

Agents read your knowledge without extra setup. Every agent in the project reads the **Brand knowledge** pool, which holds every source added with **Add to** set to **Brand knowledge**. You can also attach docs to one agent.

> **Where to find it**
>
> In the sidebar, click **Agents** and open an agent. The panel on the right has
> an **Overview** tab. Under **Spec**, the **Docs** section lists the docs
> attached to that agent.

## What an agent can read

An agent reads these sources, and only when their status is **Ready**:

- **Brand knowledge.** Every source in the pool. An agent leaves the pool only when its **Company knowledge** switch is off.
- **Docs attached to the agent.** These stay available even when **Company knowledge** is off.
- **Board Project sources.** A source added to a Board Project counts only for work in that Board Project, and only while **Company knowledge** is on.

AI Agent splits each source into passages and gives the agent the passages that match the task. The agent does not read whole documents.

## Attach docs to an agent

Attaching adds a source to that agent's own list. It does not take sources away from the agent, because the agent keeps reading **Brand knowledge** unless you turn **Company knowledge** off. Attach a doc when you turn off **Company knowledge** for the agent, or when a Board Project source must always reach that agent.

1. **Open the Docs section**

   1. In **Agents**, open the agent.
   2. In the panel on the right, stay on **Overview** and scroll to the **Docs** section under **Spec**.
   3. In the **Docs** section, click **Attach**. The **Attach docs** dialog opens.

   ![The Docs section in the agent panel with the Attach button.](/screenshots/knowledge/agentdocs-attach.webp)
2. **Choose the docs**

   1. In **Attach docs**, tick the docs the agent needs. The list shows only **Ready** sources.
   2. Click **Stage**. The button shows the count, for example **Stage (2)**.

   ![The Attach docs dialog with two docs ticked and the Stage button.](/screenshots/knowledge/agentdocs-stage.webp)

   Choose a small, focused set. A focused set makes results easier to test.
3. **Save the agent**

   Staging changes only the draft. The docs appear as chips in the **Docs** section, and an **Unsaved changes** bar appears at the bottom of the panel.

   1. In the **Unsaved changes** bar, click **Save**. To drop the change, click **Discard**.

   ![The agent panel with two staged docs and the Save button in the Unsaved changes bar.](/screenshots/knowledge/agentdocs-save.webp)

   To remove a doc, click the **x** on its chip, then click **Save**.

## Turn off Company knowledge for one agent

Use this when an agent must work only from the docs you attach to it.

1. On the agent page, click **Edit** to open the agent builder.
2. Click the agent block. In the panel that opens, find **Model & reasoning**.
3. Turn off **Company knowledge**. The switch is on by default.
4. Click **Save Core**, then click **Save** at the top right.

> **What the switch controls**
>
> The switch description mentions the Brand Profile and the site crawl. The
> switch controls the whole **Brand knowledge** pool, including every source you
> add with **Add to** set to **Brand knowledge**.

## Check the evidence

Ask the agent a question that one source answers clearly. In Chat, a reply that used your knowledge shows source chips under it, such as **K1**. Click a chip to see the source title, an excerpt, and the match percentage. A chip for a website source also links to the page.

Under the same reply, the **Retrieval trace** chip opens a page that lists the query, the sources considered, the citations, and the matched passages. Use it to tell a missing source from an answer that needs clearer instructions. The chip appears only under chat replies. Run details, tickets, and Activity have no link to it.

> **Start with a known-answer test**
>
> Use a question whose answer appears clearly in one source. This makes missing
> access, weak retrieval, and unsupported answers easier to distinguish.

**Expected result**

The agent searches the sources it can read when the task calls for them and
can return citations that let you inspect the supporting material. An agent
does not have to cite a source that is irrelevant to the request.

## Related

- [Add and manage knowledge sources](/knowledge/add-and-manage-sources)
- [Agents](/core-concepts/agents)
- [Troubleshoot workflow runs](/troubleshooting/workflow-runs)

Source: https://docs.aiagent.app/knowledge/use-knowledge-with-agents/index.mdx
