The AgentivUse cases

Operations · A project

Every contract clause, searchable in seconds

A pipeline that reads every contract uploaded to SharePoint, including scanned PDFs, pulls out the clauses that matter such as expiry dates, benefits and leave terms into a structured repository, and a Copilot Studio agent that answers the team's questions about any contract consistently, built with Power Automate and AI Builder by the legal team of an aviation services company

The problem

Supplier contracts, leases, union agreements and client terms sit as PDFs in a folder, many of them scanned, and every question about an expiry date or a clause means someone opens the document and reads. Unifi's legal team spent hundreds of hours a year extracting and structuring data from collective bargaining agreements that often run past 100 pages, and earlier AI tools gave two different answers to the same question about the same contract.

Architecture

  1. Channel
    • SharePoint contract library
    • Scanned and digital PDFs
  2. Agent
    • AI Builder text recognition
    • Clause extraction prompts
    • Copilot Studio Q and A agent
  3. Tools
    • Power Automate
    • Dataverse: text and metadata
    • Power BI dashboard
  4. Human
    • Spot check key dates by page
    • Legal keeps the terms list

Where the data stays: Contracts stay in SharePoint and the extracted text, page numbers and fields in Dataverse; only people who may read the contracts can ask the agent.

Design flow

  1. Contract uploaded to SharePoint
  2. Full text read, scanned pages too
  3. Key clauses saved as fields with pages
  4. A person spot checks key dates by pageHuman checkpoint
  5. Team asks the agent, gets clause and source

Setup

Total time: 8 h 45 min our estimate

  1. 45 min

    Done when: A written list of about eight fields the team actually looks up, for leases or supplier agreements first.

  2. 30 min

    Done when: Uploading a test contract starts a flow run that shows in the run history.

  3. 1 h

    Done when: A scanned test contract comes back as full text with page numbers, checked by eye against two pages.

  4. 2 h

    Done when: Each field lands in Dataverse with the exact wording and its page, and the raw text sits in a separate table from the headers and metadata.

  5. 3 h

    Done when: Every field of twenty contracts has been compared with the page it cites, and errors are fixed in the prompt before anyone asks the agent.

  6. 1 h 30 min

    Keep the specialised terms in an Excel sheet the legal team edits, with a flow that updates the agent's knowledge when the sheet changes.

    Done when: Asked the same question twice about the same contract, the agent gives the same clause and page both times, and only people with contract access can open it.

Ticks are saved on this browser.

Download the kit (zip)

Starter prompt

Written from how the use case works and its sources. Replace the parts in square brackets.

You extract key terms from the contract text below for [your company]. Return a table with these fields: counterparty, contract type, start date, end date or expiry, notice period for termination, renewal terms, payment terms, [the two or three clauses your team asks about most, for example rent increase, service levels, liability cap]. For every field give the exact wording from the contract, the page number it appears on, and a one line plain language summary. If a field is not in the contract, write not found; never guess or infer a date. After the table, list any clause that looks unusual or risky with its page number. Contract text: [paste the text, with page markers if you have them].

Risks and data

Data

Union and employment agreements name people and their benefits; supplier contracts carry signatories and bank details. Keep the library, the repository and the agent to the people who may read the contracts, and extract personal data only into the fields you need.

How it goes wrong

A date misread on a poor scan, a wrong clause in a field, or two different answers to the same question, which kept Unifi's earlier tools at proof of concept. Every answer carries its page, a person spot checks each new contract's key dates, and asking the same question twice must give the same answer before the team relies on it.

Data protection. This use case touches personal data, so check the rules where you operate (for example GDPR, PDPA). Employment and union agreements name people and their benefits; supplier contracts carry signatories and bank details. Restrict the repository and the agent to the people who may read the contracts, keep extracted personal data to the fields you need, and check the rules where you operate.

How the agent works

  1. It starts

    The trigger is a contract uploaded to a SharePoint library.

  2. The agent works

    A Power Automate flow runs AI Builder models over it: text recognition reads the full document including scanned pages, custom prompts identify the clauses the team cares about (expiry dates, health insurance terms, paid vacation and so on), write a summary and turn the findings into structured fields. A second prompt step adds deterministic details, for example the airport code next to each service location, so the data is precise and consistent. Everything lands in Dataverse in two tables: the raw text with page numbers, and the headers and metadata, which keeps the answers traceable to a page. The legal team keeps a list of specialised terms in an Excel sheet, and a flow pushes any change into the knowledge the agent uses. Staff then ask a Copilot Studio agent, running inside Microsoft 365 Copilot, questions in plain language and get the clause with its source; a Power BI dashboard shows active contracts by value and expiry.

  3. The result

    The story describes no review step for the extracted fields, so add one: a person spot checks each new contract's key dates against the page reference before the team relies on them.

Worked example

Unifi, a US aviation services company with more than 45,000 employees at over 240 locations, in its Microsoft customer story of 24 March 2026. The system handles contracts up to 200 pages and 50 MB, went live in under two months, and the team found the OCR model matched manual extraction with 100 percent accuracy on its checks. TK Dunlap, Director, Asset Management and Infrastructure, says it delivers the same performance as off the shelf products costing 30 times more, and that earlier tools never got past proof of concept because of accuracy. Unifi is now building the same system for customer contracts. The story gives no figure for hours saved.

Unifi built the extraction in Power Automate with AI Builder and the answers in Copilot Studio. The extraction half works as a Make, n8n or Zapier scenario on a new file in your drive with one AI step that returns the clauses as fields into a sheet or database; what you lose is the question answering agent over that data inside Microsoft 365, which you would stand up separately, and the page level traceability you get by keeping raw text and page numbers side by side.

Join the Agent OS Club

Get hours back with a team of AI agents for every department, set up step by step for the tools you use, with a person answering your questions. Founding member price: USD 14.95 a month or USD 150 a year, locked for as long as you stay. Cancel any time.

Founding offer, ends 31 December 2026 or at member 100

Join the Agent OS Club

Building this for an organization? Learn more at theagentiv.com

Sources

Published: 2026-11-05

Related use cases

Part numbers for 1,000 products, one afternoon

ChatGPT builds the part numbering system for an 86 year old salvage yard's more than 1,000 products in one afternoon, exports it to Excel as part number and category ID per row, and answers specification and material questions while the customer waits at the counter

OperationsEffort: An afternoon
ChatGPTExcelAlso works with:ClaudeGemini

A yard, a workshop or a shop that grew over decades has more than a thousand items that everyone knows by sight and nobody can find on paper. A proper numbering system has been on the list for years and keeps being postponed, because it looks like weeks of work, so quotes, stock counts and reorders all run on memory.

Every crop since 1971, searchable

ChatGPT as the farm's field notebook: a handwritten crop ledger kept since 1971 digitized and made searchable, loads logged by voice from the combine, a stressed plant diagnosed from a photo, and the owner confirming anything that matters with her father

OperationsEffort: An afternoon
ChatGPTAlso works with:Claude

In a family business the operating record lives in the founder's handwriting: a ledger of every crop, field and season, and a lifetime of judgment about what went wrong and why. The next generation taking over cannot search it, and the day to day log of loads, repairs and water use is kept on scraps or not at all, because hands are on a steering wheel.

Your whole day in one morning report

A ChatGPT report template employees run first thing in the morning that pulls their day from Gmail, Google Calendar, Sheets, Drive, Asana, Slack and QuickBooks

OperationsEffort: An afternoon
ChatGPTGmailGoogle Calendar+3Also works with:Claude

A small team starts every day by opening the inbox, the calendar, the task board, Slack and the accounting app, and stitching the picture together by hand. The gathering takes the first hour, the picture is never complete, and the thing that mattered most is often in the one tool nobody opened.