> ## 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 troubleshooting

> Fix an agent that ignores articles, outdated answers, failed imports, rejected folder names, publishing problems and answers Review can't apply.

Most knowledge problems come down to one of four things: the article is not published, its folder is not connected to the agent, the agent's change was never published, or the fact is not in a passage the search can find. Work through the checks below in order.

## The agent ignores an article

> [accordion] Is the article published?
>
> Open it from **Knowledge**. If the badge reads **Draft** ("Draft. Your agent can't use this article until you publish it."), click **Publish**. If it reads **Unpublished changes**, the agent still uses the version published on the date shown; only the published version counts, so click **Publish** to send your edits.

> [accordion] Is its folder connected to the right agent?
>
> Click **Agent** in the sidebar, open the agent and check the **Knowledge** tab. The folder that contains the article must be switched on. If several agents handle your channels, check the one connected to the channel the conversation came in on.

> [accordion] Did you publish the agent after connecting the folder?
>
> Connecting a folder is a draft change on the agent. If the header still shows **Publish changes**, live conversations are using the previous setup. Click it and publish. See [Test and publish](https://docs.trypopcorn.ai/agents/test-and-publish.md).

> [accordion] Can the search find the fact?
>
> Click **See what your agent reads** on the article. The agent matches passages, not whole articles. If the sentence you expect it to use sits in a passage full of other topics, give it its own heading or its own article, publish, and test again in **Test your agent**.

> [accordion] Does the folder description point the agent there?
>
> The agent reads each folder's description to decide which folder to search. Pick the folder on **Knowledge**, open the **⋯** menu next to the picker, choose **Rename folder** and write a description that names the topics inside it. The agent takes a folder's name and description when you save the agent, so save and publish the agent afterwards, for example together with your next change on it.

> [accordion] Do the instructions get in the way?
>
> An agent on Popcorn's rules is told to search Knowledge before answering questions about your store, so this applies only to an agent with custom instructions. Instructions that tell it to keep answers short, stay on products, or never discuss a topic can stop it from searching. Review them with [Writing custom instructions](https://docs.trypopcorn.ai/agents/writing-instructions.md).

To see what really happened, open the conversation in the Inbox and look under the AI reply. **Searched the knowledge base** with a **Sources (*N*)** or **Details** button means the agent searched; the button opens **Message source**, where **Knowledge used** lists the articles the agent cited, or links to the folder it searched when it cited none. No such line means the agent did not search knowledge for that reply.

## The agent gives outdated answers

* The agent uses the **last published version**. Open the article and click **History** to see which version is live and when it was published. If your correction is sitting in a draft, click **Publish**.
* Right after publishing, the previous version stays live while the new one is prepared (the badge reads **Publishing…**). Give it a moment and test again. If a **Still publishing** banner appears, click **Check again** in a few minutes.
* Imported pages and documents are a copy taken at import time. When your website changes, the article does not update itself: edit the article and publish, or import the page again and delete the old one.
* Pages captured during onboarding are live from the start with the text your website had at that time. If that page is now wrong, delete the article and import the page again from its link, or write the correct version as a new article and delete the old one.
* Two articles that contradict each other can both be matched. Search **Knowledge** for the topic and delete or merge duplicates.
* Check **Review** on **Knowledge**. When your team has been answering a question differently from your articles, the nightly check asks about it, and the article's status reads **Out of date** or **Conflicts** until you answer. See [Review what your agent learned](https://docs.trypopcorn.ai/knowledge/knowledge-check.md).

## Import from a link fails

A failed import shows **Couldn't import this page** with a reason underneath. When Popcorn has no readable reason, the line reads "Check that the link opens in your browser, then try again."

| Message | What to do |
| - | - |
| **Enter a link to import.** | The address field was empty. |
| **Enter a full URL, starting with https\://** | The address is not a full web address. Paste it from the browser's address bar. |
| *Importing that link is taking too long — please try again* | The page took more than 25 seconds to fetch. Try again; if it keeps happening, copy the text and use **Write from scratch**. |
| **Check that the link opens in your browser, then try again.** | The address could not be opened. Check that it opens in a private browser window without logging in. |
| *The page appears to have no readable content.* | The page loaded but has no text Popcorn can extract, for example a page that is only images or is built entirely after login. Paste the text instead. |
| *URL import is not available right now…* | Importing is unavailable at the moment. Try later or paste the text. |

Popcorn fetches one page per import; links inside the page are not followed. Import each page separately.

## Uploading a document fails

A failed upload shows **Couldn't import this document** with a reason underneath, or "Check that the file opens and isn't password protected, then try again."

* Supported types are PDF, Word (`.doc`, `.docx`), plain text, CSV, JSON and HTML, up to 20 MB. The file picker only offers these types; any other type is refused.
* *The file appears to have no readable text.* means no text could be extracted. Scanned PDFs are images, not text; export the document with text or paste the content.
* *Reading that document is taking too long — please try again* means extraction passed 25 seconds. Split the document or try again.
* A password-protected file cannot be read. Remove the password and upload it again.

## A folder name is rejected

The **Name** field shows **Use English letters and numbers, starting with a letter.** when the name uses non-Latin letters (such as Arabic), is too long once Popcorn converts it, is only a reserved word, or has no letters or numbers. **A folder with this name already exists.** means another folder has the same name, and **Enter a folder name.** means the field was empty. The dialog stays open so you can change the name and try again. The full rules are in [Create folders and articles](https://docs.trypopcorn.ai/knowledge/writing-articles.md). Descriptions have no such rules and can be in any language, including Arabic.

## I cannot publish

* **Publish** is disabled and shows **You don't have permission to publish** when your role cannot publish knowledge. Owners, Admins and Managers can; Agents and Viewers cannot. Ask an Owner or Admin to publish, or to change your role under **Settings → Roles and permissions**; a custom role needs **Full access** on **Knowledge base**. See [Team and roles](https://docs.trypopcorn.ai/settings/team-and-roles.md).
* **Publish** is disabled and shows **Nothing new to publish** when the article is already published and you have not edited it.
* **Restore** is disabled and shows **You don't have permission to restore versions** when your role cannot edit knowledge.
* **Couldn't publish this article** with no further detail: the dialog stays open so you can retry. If it keeps failing, click **Save draft**, reload the page and try again.
* The badge reads **Publish failed** and a banner says "Your agent is still using the previous version.": click **Publish again**.
* **Couldn't save your draft** means the draft was not saved. Keep the page open and click **Save draft** again before you leave.

## Review shows no questions

* No panel above the articles: the check is off for your workspace, or it did not load. **Couldn't load suggestions** with **Try again** means it did not load.
* **Your agent starts learning from your team's chats tonight** stays for days: the check only reads WhatsApp chats of the last 30 days in which someone on your team replied, and only for agents that answer a WhatsApp number. An agent on Website chat alone, or a WhatsApp number your team never replies on, gives it nothing to learn from, unless the agent still has its old instructions article (see [The old instructions article](https://docs.trypopcorn.ai/knowledge/knowledge-check.md#the-old-instructions-article)).
* **Your agent is up to date**: nothing is waiting. **Recently added** shows what was added this week, what you left for later and what the check left alone.
* A question you answered **No** to is not asked again for 90 days, and one you left with **Ask me later** comes back after 14 days only if the check still finds it.

## An answer in Review couldn't be applied

A failed answer shows **Couldn't apply the fix** (or **Couldn't dismiss the fix**, **Couldn't leave it for later**, **Couldn't undo the fix**) with the reason under it.

| Reason | What to do |
| - | - |
| **The article has unpublished edits. Publish or discard them first.** | Adding the fact would publish your draft too. Click **Open article** in the message, publish your edits, then answer again. |
| **The agent has unpublished changes. Publish or discard them first.** | A handover rule publishes the agent. Click **Open agent**, publish or discard your changes, then answer again. |
| **Turn on the Hand over action for this agent first, then apply this again.** | Switch on **Hand over to your team** on the agent's **Handoff** tab and publish. See [Capabilities](https://docs.trypopcorn.ai/agents/capabilities.md). |
| **This agent has no Knowledge collection to add the article to. Connect one in the agent's Knowledge tab.** | Turn on a folder on the agent's **Knowledge** tab and publish. See [Connect knowledge to an agent](https://docs.trypopcorn.ai/knowledge/connect-to-agents.md). |
| **The article changed since this was found. It will be checked again tonight.** | Someone edited the article since, and the lines the fix replaces are gone. The next check works from the new text. |
| **The product's note changed since this fix was found. It will be checked again tonight.** | The same, for a product's note. |
| **The product is no longer in your catalog.** | The fix was for a product that is gone. |
| **Apply or dismiss the fixes that move what this article holds first.** | An old instructions article still has facts waiting. Answer its **Keep this?** questions first. |
| **Another agent still answers from this article, so it stays.** | Another agent uses the old instructions article's folder. Its facts still move out; the article stays. |
| **Leave the price out: the agent reads prices from your catalog.** | Your edited wording for a product fact states a price. Remove it. |
| **Write the wording, within the length allowed.** | The edited wording is empty or too long. |
| **This fix was updated since you opened it. Read it again before applying.** | A newer check redrafted the fix. Read it again and answer. |
| **This suggestion was already applied or dismissed. Refresh the page.** | It was already answered, for example by a teammate. The list reloads. |
| **What this fix changed has been edited since. Change it in place instead.** | **Undo** can't take the fix back once someone edited what it wrote. Edit the article, note or handover topic yourself. |
| **This fix can't be undone any more.** | Nothing is left to undo. |

## Restore replaced my draft

**Restore** in **Version history** creates a new draft from the chosen version and replaces the draft you had. Popcorn warns before doing so when you have unpublished edits. The published version is untouched, so nothing changed for customers; use **Compare** to see what differed and re-apply your edits.

## An article or folder is gone

* Deleting an article or a folder is permanent and removes the content from the agent immediately. There is no trash. If it was imported, import it again; if it was written in Popcorn, rewrite it.
* **Article not found** ("It may have been deleted.") on an article page means it was deleted, or the link belongs to a different workspace.
* An article named **Previous instructions of *agent name*** that disappeared was removed through **Remove the old instructions?** in **Review**. For a week, **Undo** in **Recently added** brings it back; see [The old instructions article](https://docs.trypopcorn.ai/knowledge/knowledge-check.md#the-old-instructions-article).

## Still stuck?

Click **Help** in the sidebar and choose **Ask Nour**, or write to support with the article title, the agent name, and a link to the conversation where the answer went wrong.

## Related

* [Knowledge overview](https://docs.trypopcorn.ai/knowledge/overview.md)
* [Create folders and articles](https://docs.trypopcorn.ai/knowledge/writing-articles.md)
* [Connect knowledge to an agent](https://docs.trypopcorn.ai/knowledge/connect-to-agents.md)
* [Review what your agent learned](https://docs.trypopcorn.ai/knowledge/knowledge-check.md)
* [Agent troubleshooting](https://docs.trypopcorn.ai/agents/troubleshooting.md)


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