Skip to main content
Folio3 Azure

Agentic Document Compliance Automation

Agentic Document Knowledge, Workflow, and Compliance Automation Solution

Agentic document knowledge, workflow, and compliance automation
Home»Case Studies»Agentic Document Compliance Automation

Saudi Arabia

Petrochemicals & Refining

4,000+ Controlled Documents

About The Client

Petrochemical Company

The client is a leading Saudi Arabian petrochemical company that operates one of the largest integrated refining and petrochemical complexes in the Middle East. It produces a wide range of refined hydrocarbons and petrochemical products used globally across plastics, fuels, packaging, detergents, automotive components, and more.

Quantified Business Outcomes

60% – 80%Reduction

in document search time

70% – 90%Less

report preparation effort

40% – 60%Fewer

avoidable document rework and rejection cycles

Key Business Areas Impacted Included:

  • Document search, retrieval, and navigation time
  • Workflow status queries and report preparation
  • Document preparation cycle time, first-time compliance, and rework rate
  • Overall user productivity

The Customer

The company manages its approved policies, procedures, charters, manuals, and standard operating procedures through an electronic document management system built on Power Apps and SharePoint sites, lists, and document libraries. The system holds more than 4,000 controlled documents spread across complex libraries and nested organizational structures.

Finding the right document meant knowing its exact file name, document identifier, department, or function. Users often remembered what a document was about, but not what it was called or where it lived.

  • 1Keyword-based search was slow and depended on exact information.
  • 2When search failed, users had to navigate nested document structures manually.
  • 3There was no simple way to ask for a document using natural language.
  • 4Checking workflow progress, approval status, and assigned items meant moving between different areas of the system.
  • 5Reports on due, overdue, pending, and expired documents required extra manual effort.

Document creation added a second layer of friction. The company enforces strict templates and filling guidelines for each document category, but these were documented in a user manual that users did not always read or follow consistently.

  • 1Documents were submitted with incorrect fonts, sizes, margins, tables, sections, or images.
  • 2Users frequently downloaded existing templates and copied content from older revisions.
  • 3Copying and pasting damaged template structure and removed or corrupted Word content controls.
  • 4Non-compliant documents were rejected and returned, and repeated corrections increased preparation and approval time.

The Problem

What The Company Needed

The company aimed to implement an intelligent, guided solution that could:

Request a call
  1. 1

    Enable natural language discovery across thousands of approved documents

  2. 2

    Provide instant visibility into document workflow, approval status, and assigned items

  3. 3

    Automate reporting for due, overdue, pending, and expired documents

  4. 4

    Guide users through document creation without manual template formatting

  5. 5

    Validate documents against compliance rules before submission

Folio3 Solution

Folio3 delivered an AI-powered, SharePoint-grounded document knowledge and workflow agent, combined with a custom document generation and compliance validation platform on Microsoft Azure.

A multi-agent orchestrated solution where a parent agent acts as the primary conversational assistant, triage agent, and router for specialized tasks. SharePoint serves as the knowledge source and system of record for approved documents. Agentic RAG runs under the hood through Copilot Studio's built-in ingestion and vectorization pipelines. Users reach the agent through a direct 1:1 chat in Microsoft Teams, or through Copilot Chat embedded in the existing Power Apps application. Answers are strictly grounded in the company's document libraries, with citations to the approved sources.

Copilot Studio

Parent agent handles conversation, triage, and routing.

Agentic RAG

Agentic RAG with vector and semantic search finds documents by meaning and context.

WorkIQ

WorkIQ (formerly Tenant Graph Grounding) improves SharePoint retrieval quality and organizational context.

Copilot Studio

Workflow Tracker Agent (child agent) answers document status, approval progress, and assigned item queries.

Excel

Report Generation Agent (child agent) exports due, overdue, pending, and expired document reports to Excel.

Technologies used:

  • Microsoft Copilot Studio
  • SharePoint
  • Agentic RAG
  • WorkIQ
  • Power Apps
  • Microsoft Teams
  • Azure Functions
  • .NET / C#
  • Open XML SDK
  • HtmlToOpenXml
  • WeCantSpell Hunspell
  • React
  • TypeScript
  • Vite
  • Application Insights

End-to-End Agentic Workflow

Step 01

Natural Language Document Search

Users ask the agent for:

  • Policies, procedures, charters, manuals, or SOPs in plain language
  • Documents by context or purpose, without exact names, IDs, departments, or locations

The agent:

  • Searches SharePoint knowledge sources using Agentic RAG with vector and semantic search
  • Uses WorkIQ to improve retrieval quality and organizational context
  • Returns grounded answers with citations and links to the source documents

Value Delivered

Faster discovery across 4,000+ documents with no dependency on exact file names or folder structures.

Natural Language Document Search

Step 02

Workflow Status and Assigned Items

The parent agent routes workflow queries to the Workflow Tracker Agent, which answers:

  • Where a document sits in the approval process
  • Which stages it has completed and whether it is approved
  • Which documents are currently assigned to the user

Value Delivered

Instant visibility into document ownership and approval progress, read directly from the SharePoint lists behind the existing workflow.

Workflow Status and Assigned Items

Step 03

On-Demand Document Reports

The Report Generation Agent:

  • Generates reports for due, overdue, pending, and expired documents
  • Exports results directly to Excel

Value Delivered

Faster operational reporting with minimal manual data collection.

On-Demand Document Reports

Step 04

Guided Document Creation

Users:

  • Select a document category such as policy, procedure, charter, manual, or SOP
  • Follow the correct structure, loaded section by section
  • Add paragraphs, headings, bullets, and images through a drag-and-drop editor

Value Delivered

Users focus on content, not formatting, and no longer need to memorize template guidelines.

Guided Document Creation

Step 05

Compliant Word Document Generation

The Azure Functions Generation Service:

  • Converts structured editor content into Word XML
  • Inserts it into the correct sections of the approved template
  • Preserves template structure and protects Word content controls

Value Delivered

Standardized documents with less manual formatting and lower risk of template corruption.

Compliant Word Document Generation

Step 06

Pre-Submission Compliance Validation

Before upload, the Validation Service checks:

  • Font styles and sizes
  • Page margins
  • Required sections and template structure
  • Completed tables
  • Required images (when applicable)
  • Word content controls
  • File size limits

Value Delivered

Compliance issues are caught early, so documents enter the existing approval process submission-ready.

Pre-Submission Compliance Validation

Impact & Outcomes

The combination of a Copilot Studio multi-agent assistant and Azure-powered document validation transformed the company's document management system from manual navigation and template preparation into an intelligent, conversational, guided, and compliant experience, accessible through Microsoft Teams and the existing Power Apps application.

  • 60% – 80% reduction in document search time by replacing manual navigation of complex SharePoint hierarchies with natural language search
  • 50% – 70% faster access to workflow information on document status, completed approval stages, pending actions, and assigned items
  • 70% – 90% reduction in report preparation effort through on-demand Excel reports for due, overdue, pending, and expired documents
  • 30% – 50% reduction in document preparation time through guided, section-based content entry and automated template population
  • 40% – 60% fewer avoidable rework and rejection cycles by validating formatting, sections, tables, images, and content controls before initiation
  • 2x – 3x faster creation of submission-ready documents by eliminating manual formatting, copy-pasting, and guideline checking
  • 100% of documents processed through the platform checked against the same defined compliance rules before upload
  • 4,000+ approved documents accessible through natural language, with existing initiation governance and approval processes fully preserved

Outcomes are estimated based on the manual process steps replaced or automated by the solution.

Ready to transform controlled document management with agentic AI?

Talk to our experts to see how Microsoft Copilot Studio and Azure-powered solutions can simplify document discovery, workflow tracking, and compliance.

TALK TO OUR EXPERTS

Talk to an Azure engineer

Let's talk about your Azure project.

5,000+
Projects Deilvered
700+
Global Employees
1,000+
Companies Served
20+
Global Awards won

Schedule a 1:1 Call Today

Get in touch with our team to solve your Azure queries.

By submitting, you agree to our privacy policy.