# Connect a Sharepoint Site as Knowledge Base

## 1. Connect a new Sharepoint Site as Database

1. Go to the **`Knowledge Management`** tab and click the **`Connect Sharepoint`** button.&#x20;

<figure><img src="/files/woWzSq57ZDUNDgzMtVU0" alt=""><figcaption></figcaption></figure>

## 2. Select the Sites or Folders

1. Connect the relevant Sites, Folders and even Events you want to index and click the **`Continue`** button.

<figure><img src="/files/CYqEo5fbwV8udZOkOse6" alt=""><figcaption></figcaption></figure>

## 3. Create the database

1. Provide a reasonable **`Name`** and **`Description`** for your database and click the **`Create`** button to \`finalize.&#x20;

<figure><img src="/files/GMEo1cyxfqUKrAt5uREH" alt=""><figcaption></figcaption></figure>

## 4. Use the Sharepoint Database

1. Once fully indexed and vectorized, the database can be used just like a regular database.&#x20;

<figure><img src="/files/gpp5BwhLR0XBB1PRl424" alt=""><figcaption></figcaption></figure>

2. Select the database in your bot to use it for RAG.

<figure><img src="/files/257IbAUwz9kSe9XSGSaA" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.blockbrain.ai/for-admins/classic-microsoft-integrations/create-a-sharepoint-connection/connect-a-sharepoint-site-as-knowledge-base.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
