---
title: "Assist Watches SharePoint for New Files"
slug: sharepoint-file-watcher
url: https://invertbio.com/docs/assist-use-cases/sharepoint-file-watcher
keywords: ["assist","use case","automation","sharepoint","microsoft 365","mcp","file watcher","schedule","import preview"]
---

# Assist Watches SharePoint for New Files

New batch records land in a SharePoint folder, and nobody has to watch it. An Automation checks the folder for you on a schedule, prepares every new file for your approval and skips the files it has already covered.

> Assist does recurring work on its own: on a schedule, or when something happens, such as a new file upload.

## The problem

Partners and colleagues save their files in SharePoint, but Invert only gets the data when someone remembers to check the folder and import the new file. Files are found late, or imported twice.

## How it works

This example combines an Automation with the SharePoint connection from [Data Import from SharePoint](/docs/assist-use-cases/sharepoint-batch-record-import). The Automation runs on a schedule. Its Skill tells Assist to check SharePoint for newly uploaded files, to prepare an import for your approval if there is a new file, and to ignore the files that earlier runs of the Automation already covered.

The Skill also tells Assist how to import each file. What works best depends on your files:

-   **Point Assist to a mapping.** If the files have the same layout every time, name the [reusable mapping](/docs/assist-use-cases/file-mapping-partner-batch-record) that Assist should use. Every file then imports the same way.
-   **Teach Assist how to import the file.** If no mapping fits (the format is not supported, or the layout changes from file to file), write in the Skill what to extract and where it goes. Assist reads each file and follows those instructions.

On every run Assist:

1.  Looks in SharePoint for files that were uploaded since the last run.
2.  **New file found:** imports it as the Skill says, with the mapping or with your instructions, and prepares the import. It waits in the Import Preview for your approval.
3.  **No new file:** imports nothing. Files that an earlier run already covered are ignored, so nothing is imported twice.
4.  Writes a summary in the Automation's Assist session: which files it found, which it skipped and why.

Three runs in a row show the behavior:

-   **Run 1:** a new file is found, the CHO batch record. Assist prepares the import for your approval.
-   **Run 2:** no new files. The CHO batch record is ignored, because Run 1 already covered it.
-   **Run 3:** a new file was uploaded. Assist prepares its Import Preview for your approval.

## Setting it up

1.  **Connect SharePoint.** Your administrator enables the Microsoft 365 connection for your workspace, and the Automation's user connects their Microsoft account under Settings, Preferences. Assist sees only the files that account can open, and it only reads them. See [Data Import from SharePoint](/docs/assist-use-cases/sharepoint-batch-record-import).
2.  **Write the Skill.** On the **Skills** page, describe where to look and what to do, or ask Assist to draft it:

    ```text
    Check SharePoint for newly uploaded files.
    If a new file exists, import it with the mapping
    "CDMO Production Batch Record v1.6" and prepare the import preview for your approval.
    Ignore files covered in previous runs of this automation,
    so that no file is imported twice.
    ```

    If no mapping fits, replace the mapping line with what to extract from the file and where it goes.

3.  **Create the Automation.** On the **Automations** page, select the Skill, set **Outputs** to **Import Preview** and set a schedule as the **Trigger**.
4.  **Approve the imports.** When a run finds a new file, review its Import Preview and click **Complete import**.

## Why it matters

-   **Nothing is missed.** Every new file in SharePoint is picked up on the next run.
-   **Nothing is imported twice.** Files from earlier runs are skipped.
-   **You stay in control.** Each import waits in the preview for your approval.

## Example prompts

-   _"Which SharePoint files did the File Watcher import this week?"_
-   _"Only watch the CHO batch records folder from now on."_
-   _"Run the File Watcher now and tell me if there are new files."_

## Related guides

-   [Assist](/docs/user-guides/assist)
-   [Automations](/docs/user-guides/automations)
-   [Skills](/docs/user-guides/skills)
-   [Import](/docs/user-guides/import)
