---
title: "Add documents and websites"
description: Upload a file or import pages from a website, and review the text before your agent uses it.
---

Before a file or a web page is used, TukiAssistant shows you the text it extracted. You can correct it, remove what doesn't belong, and confirm it: your agent only uses the text you approve.

:::note[Before you start]
You need the editor or admin role in the workspace.
:::

## How the review works

When you choose a file or a page, TukiAssistant extracts its text and keeps it as a draft. A draft is not knowledge yet: no agent uses it until you confirm it.

The same review appears when you create an agent: in the **Knowledge base** step, every file or page you add is reviewed before the agent uses it.

- A draft lasts about 15 minutes. If you don't confirm it in time, it expires and you need to prepare it again.
- If you discard it, nothing is added.
- Preparing a page from a website can use part of your plan, even if you discard it afterwards.

## Upload a document to the Library

1. **Open the Library**

    In the side menu, open **Knowledge** and then **Documents**. You'll see the workspace **Library**.

2. **Create a document**

    Click **New document**, at the top right.

3. **Choose the file**

    In **File**, select the document. If you want, add a **Description (optional)**.

4. **Prepare the document**

    Click **Prepare document**. TukiAssistant uploads the file and extracts its text.

    :::note
    If the file is a spreadsheet, you first pick the destination in **Choose destination**: **Knowledge: semantic search** or **Queryable database**. The review applies to the text that goes to **Knowledge**.
    :::

5. **Review the text**

    **Review the document text** opens. In **Preview** you see the text as it will be used. To correct it, click **Edit text**.

6. **Save the document**

    Click **Save to the library**. The document stays unassigned: no agent uses it until you assign it. When the analysis finishes, click **Confirm**.

## Upload a document to an agent

1. **Open the agent's knowledge**

    In **Agents**, open the agent and go to the **Knowledge** tab. Find the **Documents** card.

2. **Choose the file**

    Drag the file onto **Drag and drop your documents here** or click to choose it. It appears in the list as **Pending save**, and when it finishes preparing you see **Review text**.

3. **Review the text**

    Click **Review text**. **Review what your assistant will use** opens: look at the **Preview** or click **Edit text** to correct it. When you're done, click **Done**.

4. **Save the changes**

    Click **Save**. You'll see **Documents added to the knowledge base**.

5. **Resolve contradictions**

    If the text contradicts what your agent already knows, the review opens again with the notice **This text contradicts what your assistant already knows**. Correct the text or click **Add anyway**.

## Import pages from a website

1. **Find the pages**

    In the agent's **Documents** card, under **Import pages from a website**, type the **Website URL** and click **Find pages**.

2. **Choose the pages**

    Tick up to five pages from **Pages found**.

3. **Prepare the review**

    Click **Review** followed by the number of pages, for example **Review 2 pages**.

4. **Review each page**

    **Review the site pages** opens. On the left you see the list with the status of each page; on the right, its text. You can use **Preview** or **Edit text**, and **Exclude this page** so it isn't added.

5. **Add the pages**

    Click **Add** followed by the number of pages, for example **Add 2 pages**.

6. **Check the result**

    In **Import result** you see each page as **Added**, **Excluded**, or with the reason it couldn't be added.

:::tip
If a page shows as **Unavailable**, it couldn't be read and won't be added. You can continue with the others.
:::

## What gets cleaned up automatically

Before showing you the text, TukiAssistant normalizes line breaks and removes blank space at the start and end. On web pages it also removes the **Skip to content** link and the cookie notice at the end of the page. It never summarizes, translates, or rewrites anything.

To see what was removed, open **See what was removed**. If you disagree, click **Restore original text** and keep editing from there.

## If something fails

| Message | What to do |
| --- | --- |
| The draft expired. Upload the file again. | Choose the file again and review the text once more. |
| The page preparation expired. Select the pages again to review them. | Select the website pages again and review them once more. |
| This document is already being prepared in another session. Wait for it to finish (15 minutes at most) and try again. | Another tab or another person is already reviewing this document. Wait and prepare it again; if it still fails, it unlocks by itself after 15 minutes. |
| Write something before confirming this content. | The text is empty. Write something or exclude that page. |
| The text is too long. Shorten it to add it. | Reduce the text before adding it. |
| We saved the text but could not finish adding it. Try again. | Confirm again: the extraction doesn't need to be repeated. |

## Next steps

**[Create an FAQ](/en/knowledge/create-faq)**

Add a question with its answer for your agents to use.

**[Review the status of your agents](/en/agents/agents-overview)**

See which agents are published and which questions they can't answer yet.
