--- title: "Create a Knowledge Base for AI Agents" slug: "create-a-knowledge-base-for-ai-agents" description: "Covers creating a Knowledge Base for AI Agents: adding sources via website crawling or document upload, crawl rules, and managing statuses." updated: 2026-11-13T11:03:59Z published: 2026-11-13T11:03:59Z canonical: "academy.insiderone.com/create-a-knowledge-base-for-ai-agents" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # Create a Knowledge Base for AI Agents The Knowledge Base (KB) is the primary source of information for your AI Agents. Agents use it to answer with accurate, up-to-date content taken directly from your website and documents. AI Agents don't use static or hardcoded answers. They generate each reply from the content in your KB, so they can respond to a wide range of questions. You can fill a Knowledge Base with content in two ways: - [**Website Crawling**](/docs/create-a-knowledge-base-for-ai-agents#crawl-website): Enter a website URL, and Insider One scans the site and extracts the relevant content. You can set the crawl depth, target pages, and filters to control which information the KB includes. - [**Document Upload**](/docs/create-a-knowledge-base-for-ai-agents#upload-documents): Upload supported file formats directly, and Insider One processes and structures the content. This method works well for internal documentation, guides, and other resources that aren't on a public website. > [!NOTE] > Insider One manages the language and embedding models that your AI Agents use. You cannot select a model in the InOne panel. This article covers the following topics: - [Create a Knowledge Base](/docs/create-a-knowledge-base-for-ai-agents#create-a-knowledge-base) - [Add a source](/docs/create-a-knowledge-base-for-ai-agents#add-a-source) - [Crawl website](/docs/create-a-knowledge-base-for-ai-agents#crawl-website) - [Upload documents](/docs/create-a-knowledge-base-for-ai-agents#upload-documents) - [Knowledge Base statuses](/docs/create-a-knowledge-base-for-ai-agents#knowledge-base-statuses) - [Delete a Knowledge Base](/docs/create-a-knowledge-base-for-ai-agents#delete-a-knowledge-base) > [!NOTE] > You can create up to four Knowledge Bases in a single InOne panel. ## Create a Knowledge Base 1. Navigate to **InOne** > **Agent One** > **Knowledge Bases**. ![The Knowledge Bases page under Agent One in the InOne panel](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-2NZ6GIVB.png) 2. Click **Create**. ![The Create button on the Knowledge Bases page](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-52AZ2TFG.png) 3. Enter a name for your Knowledge Base and click **Create**. ![The Knowledge Base name field](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-VYC3Y9HP.png) 4. In the **Description** field, describe the purpose and content of your Knowledge Base. A clear description helps your agents understand when to use it. ![The Description field of a Knowledge Base](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-7CP8Q2OQ.png) Your Knowledge Base now exists, but it stays empty until you add a source. Continue with [Add a source](/docs/create-a-knowledge-base-for-ai-agents#add-a-source) to fill it with content. ![A newly created Knowledge Base without sources](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-YUQFUMD8.png) ## Add a source Sources are the content inputs that feed a Knowledge Base. When you add a source, your agents can pull information from it and answer with up-to-date content. 1. In the **Sources** section, click **+Add Source**. ![The Add Source button in the Sources section](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-AMDY6M3N.png) 2. Enter a name for your source, select a **source type**, and click **Next**. > [!NOTE] > Choose [Crawl Website](/docs/create-a-knowledge-base-for-ai-agents#crawl-website) or [Upload Documents](/docs/create-a-knowledge-base-for-ai-agents#upload-documents) as your source type. ![The source name field and source type options](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-OMOGOT4W.png) > [!NOTE] > Keep the following in mind when you work with sources: > > - Each Knowledge Base can contain up to five sources. All of them appear in the Knowledge Base view. > - You can edit a Crawl Website source to view its crawled pages and turn on Auto Crawl. For more information, see [Manage a Crawl Website source](/docs/create-a-knowledge-base-for-ai-agents#manage-a-crawl-website-source). > - For any other change, delete the source and create a new one with the revised settings. The source name is fixed and can't be edited. > - Deleting a source can immediately change the behavior of any live agent that uses it. ### Crawl website The **Crawl Website** option extracts content from a website for your AI Agent. Enter the website URL and set the crawl depth in [**Crawl Source**](/docs/create-a-knowledge-base-for-ai-agents#crawl-source). Choose which pages to include or exclude in [**Crawl Rules**](/docs/create-a-knowledge-base-for-ai-agents#crawl-rules), and fine-tune the crawler in [**Crawl Settings**](/docs/create-a-knowledge-base-for-ai-agents#crawl-settings). If your pages need extra request information, such as a token or a language, add [**Headers**](/docs/create-a-knowledge-base-for-ai-agents#headers). #### Crawl source Enter the **website URL** you want to crawl. You can also set the **proximity level**, which defines how deep the crawl goes. Use a lower value to stay close to the starting URL, or a higher value to reach pages that are further away. The proximity must be a whole number between 0 and 10. If you don't change it, Insider One uses the default of 2. ![The Crawl Source section with the website URL and proximity level](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/crawlsa.png) > [!NOTE] > **Proximity** is the number of internal link layers (click depths) that the crawler follows from the starting URL. For example, if you enter `https://example.com` and set the proximity to 2, the crawler scans the starting URL and the pages it links to, such as: > > - `https://example.com/about` > - `https://example.com/products/product-a` > - `https://example.com/blog/post-1` > > The crawler does **not** visit pages that are linked only from these pages. #### Crawl rules Use crawl rules to control exactly which pages the crawler includes or excludes. You can define rules with **Contains** or **Not Contains**, and organize them into groups. This gives you precise control over the scope of the crawl. To create crawl rules: 1. Click **Add Rule**. ![The Add Rule button in the Crawl Rules section](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-E4JYEI2E.png) 2. Choose a rule parameter and enter the expression: ![The rule parameter options Contains and Not Contains](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/crawlrules.png) - **Contains**: The URL must include the expression. - **Not Contains**: The URL must not include the expression. When you add the first rule, Insider One creates Rule Group 1 automatically. > [!NOTE] > Keep the following limits in mind when you create rules: > > - You can use only **Contains** and **Not Contains** as conditions. > - Each rule must use valid URL characters. > - You can create up to five rules per group and up to ten groups in total. > - Each group combines its rules with a single logic type (AND or OR). All groups are also combined with a single logic type (AND or OR). The following use cases show how you can combine rules. **Use case 1: Focus the crawl with AND conditions** This setup narrows the crawl to pages that match both groups: - **Group 1**: contains `faq` **OR** contains `flight` - **Group 2**: contains `promotion` **AND** contains `deals` As a result, the crawler visits only pages that match both groups. For example: - `/faq/flight/deals` meets all conditions. - `/faq/promotion` doesn't meet them, because the URL is missing “deals.” **Use case 2: Skip specific pages with exclusions** This setup includes a page if its URL contains a keyword or if it doesn't contain another one. The groups are combined with OR: - **Group 1**: contains `help` - **Group 2**: not contains `promotions` As a result, the crawler includes pages that have “help” in the URL **or** don't have “promotions” in the URL. It skips only the URLs that contain “promotions” and don't contain “help.” For example: - `/help` matches Group 1. - `/prod/docs` matches Group 2, because the URL has no “promotions.” #### Crawl settings Use crawl settings to fine-tune how the crawler behaves. These options give you more control over what the crawler collects or skips. ![The Crawl Settings section](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-5YYFN6ML.png) - **CSS Selectors to Wait to Load**: Tell the crawler to wait for specific elements before it collects content. This helps with pages that load content after the initial render. For example: `.product-description`, `#faq-section` - **CSS Selectors to Exclude**: Tell the crawler to skip parts of a page, such as footers or banners. For example: `.footer`, `.cookie-banner` - **File Extensions to Exclude**: Prevent the crawler from downloading or indexing specific file types. For example: `.pdf`, `.jpg`, `.zip` #### Headers Headers let you send additional information with your crawl request, such as authentication tokens or language preferences. To add custom HTTP headers: 1. Click **Add Header**. ![The Add Header button](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-4IGJHRIL.png) 2. Enter a key and value pair. ![The key and value fields for a header](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-HY4R7KXS.png) ![A header with a key and value pair added](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-3AELETPM.png) You can add common headers such as the following: - **Authentication**: Pass a token in a header to crawl pages as a logged-in user. For example: `Authorization: Bearer YOUR_TOKEN` - **Language preference**: Request content in a specific language. For example: - `Accept-Language: en-US` (English, US) - `Accept-Language: tr-TR` (Turkish) #### Manage a Crawl Website source To manage a Crawl Website source, navigate to **InOne** > **Agent One** > **Knowledge Bases**, select your Knowledge Base, and click **Edit** for the source you want to manage. ##### View crawled pages The **Edit Source** panel lists the pages the crawler collected from the source. Each page shows its status (**Successful**, **Failed**, or **Crawling**) and the date it was last updated. - To find specific pages, use **Select Statuses** to filter by status, or use **Search**. - To crawl a page again, click the **Recrawl** icon. - To remove a crawled page, click the **Delete** icon. - To save your changes, click **Update**. ![The Edit Source panel with the list of crawled pages](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-WAIRCEC6.png) > [!NOTE] > Before you delete a source and create a new one, review its crawled pages so you don't duplicate content across your sources. ##### Enable Auto Crawl To keep the content in your Crawl Website source up to date automatically, turn on **Enable Auto Crawl**. Insider One then checks the pages in the source every week and recrawls only the pages that changed. You can also turn it on when you create the source. ![The Enable Auto Crawl toggle in the Edit Source panel](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-LBFCDA2A.png) > [!NOTE] > Auto Crawl is available only for Crawl Website sources. ### Upload documents In addition to website crawling, you can upload documents as sources for your Knowledge Base. > [!NOTE] > **Supported file formats** > > - .txt (plain text, ASCII only) > - .md (Markdown) > - .html (HTML) > - .doc, .docx (Microsoft Word) > - .csv (comma-separated values) > - .xls, .xlsx (Microsoft Excel) > - .pdf (Portable Document Format) > > The maximum file size is 20 MB per file. To upload documents as a source: 1. In the **Sources** section, click **+Add Source**, select **Upload Documents**, and click **Next**. ![The Upload Documents source type selected](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-VQM3C6KU.png) 2. Upload your files one by one. Wait for each file to finish uploading before you continue, and stay on the page until all uploads are complete. ![Files uploading in the Upload Documents drawer](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-KPL9X9JD.png) 3. When all uploads are complete, click **Save** to add the documents to the Knowledge Base. ![The Save button after files finish uploading](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-ZW7XWVSJ.png) 4. Your files appear in the source list with the status “Learning.” ![An uploaded file with the Learning status](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-Q5MVSV1B.png) 5. When processing is complete, the status changes to “Ready.” ![An uploaded file with the Ready status](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-P3EEACGN.png) 6. Click **Save** to save your changes. ## Knowledge Base statuses The Knowledge Bases page lists all your existing Knowledge Bases with their statuses. Each Knowledge Base also shows its sources and the agents linked to it, if any. - **Active**: The Knowledge Base is ready to link to your AI Agents. - **Processing**: Insider One is creating or updating the Knowledge Base through a crawl. - **Errored**: The Knowledge Base could not be created because of an issue during the crawl. ![The list of Knowledge Bases with their statuses, sources, and linked agents](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-QSUYZL2E.png) ## Delete a Knowledge Base To remove a Knowledge Base, click **Delete** for that Knowledge Base on the Knowledge Bases page. ![The Delete button for a Knowledge Base](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-JTMN1KME.png) > [!NOTE] > You can't delete a Knowledge Base while AI Agents are actively using it. ## Next steps After your sources finish processing, your Knowledge Base is ready to link to an AI Agent. Make sure its status is **Active** first. To link it, see Step 4 in [Create and Configure the Support Agent](/v1/docs/create-and-configure-the-support-agent#step-4-link-the-knowledge-base) or [Create and Configure the Shopping Agent](/v1/docs/create-and-configure-the-shopping-agent#step-4-link-the-knowledge-base). ## Related - [Create and Configure the Support Agent](/create-and-configure-the-support-agent.md) - [Create and Configure the Shopping Agent](/create-and-configure-the-shopping-agent.md)