Skip to main content
Enrich at the source. This cookbook connects a SharePoint document library, tags its documents with AI-extracted metadata, and writes the results back to the same library as native SharePoint columns. Users keep working where they always have, but now they can filter, sort, and search by contract type, dates, and value. A scheduled workflow keeps the columns current as documents change.

What You’ll Build

Prerequisites

  • A SharePoint site with a documents library and an Azure app registration (client ID, client secret, tenant ID)
  • Python 3.9+

Step 1. Connect the SharePoint Source

Step 2. Ingest the Library

Ingestion runs as a background job and automatically captures source metadata (Last Modified, File Type, Created By, Folder Structure) on every document.

Step 3. Define the Columns You Want

Each tag becomes a SharePoint column. Classification extracts the values with evidence and confidence.

Step 4. Write the Columns Back

The destination points at the same site. column_store creates one SharePoint column per exported tag.

What Users See in SharePoint

Users can filter and sort by any column, build views like “Expiring This Quarter”, set alerts, and use SharePoint’s native search with metadata facets.

Step 5. Maintain It Over Time

New and changed documents should get columns without anyone re-running the flow. Schedule ingest and classify on a nightly cadence, the same shape the app’s predefined workflows use, then re-export on your own trigger or a second workflow stage.

Next Steps

Clean Up a RAG Index

Make an existing vector index AI-ready.

Prepare an AI-Ready Dataset

Gate what gets exported with quality signals.

Protect Sensitive Data

Detect PII before enriching shared libraries.

Workflows

Everything about scheduled maintenance.