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

# SharePoint

> Connect SharePoint as a datasource for your knowledge base.

# SharePoint Integration

Neural Factory can connect to Microsoft SharePoint to index documents from your organization's SharePoint sites and document libraries. This allows agents to search and reference content stored in SharePoint without manual file uploads.

## Prerequisites

* Your organization must have SharePoint Online access
* An administrator must authorize the SharePoint connection
* The SharePoint site/library must be accessible with the configured credentials

## Connecting SharePoint

<Steps>
  <Step title="Open the knowledge base">
    Navigate to **Knowledge Bases** and open the knowledge base where you want to add SharePoint content.
  </Step>

  <Step title="Add a SharePoint datasource">
    Click **Add Datasource** and select **SharePoint** from the datasource type options.
  </Step>

  <Step title="Authenticate">
    Complete the OAuth authentication flow to grant Neural Factory read access to your SharePoint environment.
  </Step>

  <Step title="Select a site and library">
    Browse your available SharePoint sites and select the document library or folder you want to index.
  </Step>

  <Step title="Configure sync settings">
    Choose how often Neural Factory should check for new or updated documents:

    * **Manual** — Only syncs when you trigger it
    * **Automatic** — Periodically checks for changes and re-indexes
  </Step>

  <Step title="Save and sync">
    Click **Save** to create the datasource. The initial sync will begin, indexing all documents in the selected library.
  </Step>
</Steps>

## Supported content

Neural Factory indexes the following from SharePoint:

* Documents in standard formats (PDF, Word, Excel, PowerPoint, text files)
* Documents in subfolders within the selected library
* Updated documents are re-indexed automatically (if auto-sync is enabled)

## Troubleshooting

* **Authentication failures** — Ensure the SharePoint connection has valid credentials. You may need to re-authorize.
* **Missing documents** — Check that the documents are in the selected library/folder and in a supported format.
* **Sync delays** — Large libraries may take time for the initial sync. Check the indexing status on the knowledge base detail page.
