About this sample
Classifies files in a SharePoint document library by reading their content and matching them to known content types: Contracts, Invoices, and Purchase Orders. Classify by document purpose and structure — not keywords alone.
Creates the appropriate metadata columns for each content type (identifier, key party, critical date, financial amount, status), extracts values from each file, and saves them automatically. Also creates a File classification Choice column with a metadata extraction prompt for future autofill.