This article outlines an intelligent document‑classification solution that automatically distinguishes Invoice and Non‑Invoice documents using Microsoft AI Builder integrated with Power Automate. The goal is to streamline document routing, reduce manual review, and enable downstream automation for finance operations.
System Overview
| Component | Role | Key Features |
|---|
| AI Builder Document Classification Model | Core Intelligence | Trained on labeled invoice/non‑invoice samples; returns prediction and confidence score |
|---|
| Power Automate Flow | Orchestration layer | Triggers on document upload; invokes AI Builder; applies conditional logic |
|---|
| SharePoint / Dataverse | Storage and metadata | Stores documents, classification results, and audit trail |
|---|
| Power BI Dashboard | Monitoring | Tracks classification accuracy, confidence trends, and workflow performance |
|---|
![Copilot_20260707_210452]()
Implementation Steps
1. AI Builder Model
2. Dataverse / SharePoint Storage
3. Power Automate Flow
Trigger Options:
Flow Steps
Input Document
Call AI Builder Model
Process Output
Conditional Logic
If Invoice:
Move to "Invoices" folder or update Dataverse record.
Trigger downstream workflows (e.g., extract invoice data, send to Finance).
If Non‑Invoice:
Notifications
Example Flow (Step-by-Step)
Trigger: File uploaded to SharePoint → "Invoices-Processing" library.
Action: AI Builder → Classify document.
Condition:
Update Metadata: Add classification result + confidence score.
Notify: Email Finance team with document details.
Benefits
Eliminates manual sorting.
Improves accuracy and auditability.
Enables end‑to‑end automation for finance workflows.
Provides real‑time insights via Power BI.
Future Enhancements
Add multi‑class classification (e.g., Purchase Orders, Receipts).
Integrate with Dynamics 365 Finance for automated posting.
Extend to multilingual document support.