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

# Knowledge overview

> How folders and articles give your agent its answers, what Draft and Published mean, and how to see which articles the agent uses.

Knowledge holds everything your agent should know that is not in your product catalog: shipping and delivery rules, returns and exchanges, payment options, store policies, opening hours, and the questions your team answers every day. When a customer asks, the agent searches the folders connected to it and writes its reply from the articles it finds.

Open it with **Knowledge** in the sidebar, under **Your agent**.

Every night Popcorn also compares your Knowledge with what your team tells customers in WhatsApp chats, and asks you before it adds or corrects anything. See [Review what your agent learned](https://docs.trypopcorn.ai/knowledge/knowledge-check.md).

## How it is organized

| Term | What it is |
| - | - |
| Folder | A group of articles. Agents are given access folder by folder, so a folder is also the unit you connect to an agent. Each folder has a **Name** and a **Description** that helps the agent pick the right folder to answer from. On the agent's **Knowledge** tab the same folders are listed as knowledge bases. |
| Article | One page of knowledge with a title and a formatted body. An article belongs to exactly one folder. |
| Draft | The version you are editing. The agent never uses a draft. |
| Published version | The version the agent answers from. Every time you publish, Popcorn keeps the previous version in the article's **History**. |

Onboarding creates your first folder, **Business Knowledge Base**, and connects it to the agent it created. Popcorn fills it with up to 8 pages it picked from your website, or with the description you wrote if you had no website. Those pages are live for the agent from the start; until you open one for the first time, its **Used by agent** and **Last updated** cells stay empty. See [Create folders and articles](https://docs.trypopcorn.ai/knowledge/writing-articles.md) for what to do with them next.

You may also find an article named **Previous instructions of *agent name*** that nobody on your team wrote. Popcorn saved an agent's instructions there when it moved the agent onto Popcorn's rules, so nothing they said was lost; see [The old instructions article](https://docs.trypopcorn.ai/knowledge/knowledge-check.md#the-old-instructions-article).

## What the agent does with your articles

1. You connect one or more folders to an agent and publish the agent. See [Connect knowledge to an agent](https://docs.trypopcorn.ai/knowledge/connect-to-agents.md).
2. When a customer message needs store knowledge, the agent searches the connected folders. Each folder is searched separately, and the folder's description tells the agent what kind of question that folder answers.
3. The search returns the best-matching passages from the published articles in that folder. The agent writes its reply from those passages.
4. Popcorn records which articles were matched and which were cited in the reply. This powers **Used by agent** on the Knowledge page and **Sources** in the Inbox.

Only published content takes part in step 3. A draft, an unsaved edit, or a restored but unpublished version never reaches the agent.

> [!TIP]
>
> Articles are matched passage by passage, not as a whole. Open an article and click **See what your agent reads** to see exactly which passages the agent can find. A fact buried in a long passage about something else is easy to miss; a short article with one clear topic is easy to find.

## The Knowledge page

The header has **New folder** and **New article**. Above the articles, a panel says whether your agent has questions for you (**Your agent has *N* questions for you**, with **Review**) or **Your agent is up to date**; the articles follow under **Articles**. See [Review what your agent learned](https://docs.trypopcorn.ai/knowledge/knowledge-check.md).

Above the table, the folder picker reads **All folders** or **Folder · name**. When you pick one folder, a **⋯** menu next to the picker offers **Rename folder** and **Delete folder**. **Search articles** looks at article titles only, not their content, and the table shows 10 articles per page.

The table shows one row per article:

| Column | Meaning |
| - | - |
| **Title** | The article title, with where the content came from underneath: **Written** (typed in Popcorn), **Web page** (imported from a link) or **Document** (uploaded file). Untitled drafts show as **Untitled article**. |
| **Folder** | The folder the article lives in. Shown only when you have more than one folder and the picker is on **All folders**. |
| **Status** | **Published** once the article has a published version, otherwise **Draft**. An article with newer unpublished edits still reads **Published** here; open it to see **Unpublished changes**. A published article can show what the nightly check found instead: **Old instructions** (it gives the agent rules rather than facts), **Conflicts** or **Out of date** (a question about it is waiting in **Review**), or **New this week** / **Updated this week** (a fact you added from **Review** wrote it). |
| **Used by agent** | A **Used by agent** badge when the agent has matched the article in a conversation during the last 30 days, otherwise **Not used yet**. |
| **Last updated** | When the article was last saved. |

Click a row to open the article. The **⋯** menu at the end of a row offers **Delete**. On a phone, the status and date sit under the title instead of in their own columns.

When you have no articles yet, the page shows **No articles yet** with **New article** in the middle of the page instead of the header. **New article** opens three choices: **Write from scratch**, **Import from a link** and **Upload a document**.

## Draft and published

Every article page shows a badge next to the title and a line under it that says whether the agent uses what is on screen.

| Badge | Line under the title | What it means |
| - | - | - |
| **Draft** | **Draft. Your agent can't use this article until you publish it.** | The article has never been published. |
| **Published** | **Last published by *name* on *date*** | A published version is live for the agent. |
| **Unpublished changes** | **Unpublished changes. Your agent still uses the version published on *date*.** | You have edits, saved or not, that the agent does not use yet. |
| **Publishing…** | | A new version is being prepared. The agent keeps using the previous one until it is ready. |
| **Publish failed** | | The new version could not be prepared. A banner explains and offers **Publish again**. |

Publishing is the only action that changes what the agent answers; adding a fact from **Review** publishes too. Saving a draft, restoring an old version or previewing never does. Deleting an article removes it from the agent immediately.

## Used by agent

Open an article and look at **Details** to see the numbers behind the badge:

* **Matched *N* times**: a search returned the article in the last 30 days, but the agent did not necessarily use it in a reply.
* **Cited *N* times · last used *time***: the agent used the article when writing a reply.
* **Not used yet**: no search has returned it in the last 30 days.

Click the figure to open **Recent conversations**, a list of the conversations that used the article, each with an **Open conversation** link. Conversations where the article was cited carry a **Cited** tag.

In the Inbox, an AI reply that searched your knowledge has a line under it, **Searched the knowledge base**, with a **Sources (*N*)** button when specific articles were cited. It opens **Message source**, which lists the **Tool used** and, under **Knowledge used**, each article the agent cited with the version that was live at the time. See [Inbox overview](https://docs.trypopcorn.ai/inbox/overview.md).

## Who can do what

Permissions are set per role on **Knowledge base** under **Settings → Roles and permissions**:

* **Owner**, **Admin** and **Manager** have full access: create, edit, publish, restore and delete.
* **Agent** and **Viewer** can read articles but not change them.

Answering the questions in **Review** publishes to your articles, so it needs the same access as publishing; see [Review what your agent learned](https://docs.trypopcorn.ai/knowledge/knowledge-check.md).

Publishing needs permission to publish; without it the **Publish** button is disabled and shows **You don't have permission to publish**. Restoring an earlier version needs permission to edit (**You don't have permission to restore versions**). The role editor has no separate **Publish** column: for a custom role, publishing comes with **Full access** on **Knowledge base**. See [Team and roles](https://docs.trypopcorn.ai/settings/team-and-roles.md).

## Knowledge or a tool?

Knowledge is for facts that stay the same from one conversation to the next: policies, procedures, prices you write down, FAQs. For anything the agent has to look up live in another system, such as a booking, a loyalty balance or a repair status, create a [custom tool](https://docs.trypopcorn.ai/tools/overview.md) instead.

## Next steps

> [card] [Create folders and articles](https://docs.trypopcorn.ai/knowledge/writing-articles.md)
>
> Write, import, preview, publish and manage versions.

> [card] [Connect knowledge to an agent](https://docs.trypopcorn.ai/knowledge/connect-to-agents.md)
>
> Give an agent access to folders and check that articles are used.

> [card] [Review what your agent learned](https://docs.trypopcorn.ai/knowledge/knowledge-check.md)
>
> Answer the questions from the nightly check and undo what it added.

> [card] [Troubleshooting](https://docs.trypopcorn.ai/knowledge/troubleshooting.md)
>
> The agent ignores an article, answers are stale, an import fails.

> [card] [Popcorn's rules and Voice](https://docs.trypopcorn.ai/agents/popcorns-rules.md)
>
> Agent types, and what an agent follows besides its Knowledge.


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