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

# Teach your agent: files, websites and documents

> Your agent answers callers from its knowledge library. Add your price list, policies, FAQs or website, connect them to the agent, and it answers from them on calls.

Your agent answers callers from its knowledge library. Add your price list, policies,
FAQs or website, connect them to the agent, and it answers from them on calls.

## Open the knowledge library

1. In the sidebar, click **Agent Settings**.
2. Click **Knowledge**. The **Library** tab is what the agent reads.

The **Documents** and **Links** tabs hold things the agent can send to a customer. They
are not covered here.

If no agent is selected you see "Select or create an agent first, then scan a website to
teach it." See [Set up your first voice agent](https://docs.getsmartalex.com/how-to/first-voice-agent.md).

## 1. Upload files

1. Click **Upload files**.
2. Drop your files in ("Drop files here, or browse"). You can add PDF, Word, text, CSV
   and Markdown files, up to 10 files at a time, 20 MB each.
3. Each file shows "Uploading and saving…", then "Uploaded. Preparing for answers."

"This agent answers from each file once it shows as Ready in the library."

## 2. Add your website

Click **Add website** and choose one:

| Option | What it does |
| - | - |
| **A web page** | One URL. "Only this page will be read." |
| **A whole website** | "Scan the sitemap, pick pages." |

**One page:** type the address into **Page URL** and click **Add page**. You see "Page
saved and connected. Preparing it for answers."

**A whole website:**

1. Type the address and click **Find pages**.
2. Under **Choose pages to read**, "Start with the recommended pages, or select the
   whole site." Filter by **Recommended**, **Selected**, **Not selected** or **Already
   added**. Each page is marked **New** or **Added**.
3. Select up to 500 pages per import, then click **Read N pages**.

The import shows **Read pages**, then **Save to knowledge**. You can close the window:
the knowledge pane says "Website import in progress", with **View progress**. To stop
it, click **Stop import**.

For more than 500 pages, import the first 500, then run another import for the rest.

## 3. Write a document

For answers that are not in a file or on your website, such as FAQs:

1. Click **Write document**: "Add policies, answers, or instructions your agent should
   know."
2. Fill in **Document title** (for example, Returns and refunds) and **Content**.
   **Preview** shows how it reads.
3. Click **Save document**. You see "Document saved. Preparing it for answers."

## 4. Check what the agent knows

The library lists every item with its **Source**, **Status** and whether it is
connected to **This agent**.

| Status | What it means |
| - | - |
| **Ready** | The agent can answer from it. |
| **Preparing** | Still being prepared. Give it a moment. |
| **Updating** | A newer copy is being read. |
| **Failed** | It could not be read. |
| **Update failed** | The latest copy could not be read, so the agent keeps the last saved one. |

The line under the list counts how many items are connected to this agent. An item that is not
connected is in your library, but this agent does not answer from it. Open the item's
menu and click **Connect to this agent**, or click **Connect all** when nothing is
connected yet.

To test it, start a test call from **Home** (**Test** with your agent's name) and ask a
question the new content answers.

## Keep your website up to date

Once you have added a website, the **Auto-sync** button sits above the library:

* **Sync now**: "Re-check your websites for new content". You see "Sync complete: N
  updated, M already current".
* **Automatic sync**: **Off**, **Every day**, **Every week** or **Every month**.

## Delete something

Open the item's menu and click **Delete from library**. "This permanently deletes ... and
everything your agents learned from it." For a website: "Scan the site again to add them
back."

## How much you can add

Click the usage line above the library ("used / allowance content pages") to see
**Knowledge usage**. "One content page is about 1,000 words. This usage is separate from
the number of website URLs imported."

Each paid plan includes 1,000 content pages, and a trial includes 50. For the price of
more, see [Pricing explained](https://docs.getsmartalex.com/pricing.md).

## Who can do what

| Role | Can |
| - | - |
| Owner and Admin | Add, edit, sync and delete. |
| Member | Add, edit and sync, but not delete. |
| Viewer | Only look. |

See [Team members and roles](https://docs.getsmartalex.com/how-to/team-members-and-roles.md).

## If it does not work

| What you see | What to do |
| - | - |
| "This file type isn't supported. Try PDF, DOC, DOCX, TXT, CSV, or MD." | Save the file as one of those types and upload it again. |
| "Please use a file smaller than 20MB." | Split the file into smaller ones. |
| "You can upload up to 10 files at a time." | Upload the rest in another batch. |
| "Could not upload this file. Try again." | Click **Retry**. |
| "That page has no readable content, so nothing was added." | The page has no text to read. Try another page, or write a document. |
| "We couldn't find a sitemap or extract pages from this website." | Add the pages one at a time with **A web page**. |
| "Access to this website is restricted or requires login." | The agent can only read public pages. Upload the content as a file instead. |
| "A scrape is already running for this workspace. Cancel it first, or wait for it to finish." | Wait, or click **Stop existing & read pages**. |
| "None of your N documents are connected to ..., so it cannot answer from them." | Click **Connect all**. |
| "Your trial allowance is used up. Upgrade to add more." | Upgrade to a paid plan, or delete content you no longer need. Deleting does not reset a trial allowance. |
| The agent does not use new content | Check it shows **Ready** and is connected to **This agent**. |


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