From Metadata to Machine Learning: Deploying an AI Agent for Smarter PSI Search in SharePoint

In our last post, we explored how facility asset structures can transform SharePoint into a smart, context-aware platform for managing Process Safety Information (PSI). But even with a well-organized hierarchy, there's still a bottleneck: finding the exact documents and/or data required for the project. In this post, we’ll walk through a real-world use case of deploying an AI Agent on top of SharePoint to assist in the PSI search and retrieval.
Deploying an AI Agent for Smarter PSI Search in SharePoint

Use Case: Finding the Right PSI for a Pump in the Area 1 Hydrocracker Unit

Let’s say a reliability engineer needs to prepare for a planned maintenance activity on Pump P-1201, one of several pumps in the Area 1 Hydrocracker Unit

To do the job safely and correctly, the engineer needs:

  • The latest maintenance procedure
  • The OEM datasheet
  • Any MOCs or inspection reports related to this specific pump
  • The P&ID showing the pump, associated piping, valves, instrumentation, and upstream/downstream connectivity
  • PHAs (e.g., HAZOP or What-If analyses) discussing risks, failure modes, and safeguards tied to that pump or system

These documents provide essential context for:

  • Confirming isolation points and pressure boundaries
  • Understanding interlocks and control logic
  • Identifying any previous risk scenarios or mitigation actions associated with the equipment
  • Verifying design assumptions when planning MOC or maintenance

Step 1: Structure the Foundation in SharePoint

Before any AI magic happens, the PSI library needs to be:

Populated with current documents
Tagged with metadata: site, area, unit, system, equipment tag, document type, revision, and effective date
Mapped to a facility asset structure (mirroring the CMMS, like SAP or Maximo)

This creates a structured, machine-readable environment.

Step 2: Train the AI Agent with Domain Context

The AI Agent is then trained to understand:

  • Natural language queries and synonyms (e.g., “pump maintenance” = “standard work instruction”)
  • The plant’s unique asset taxonomy
  • Document types and their functional relevance (e.g., datasheets vs. inspection reports)

Training involves ingesting:

  • Sample PSI documents and metadata schemas
  • Tag registries or functional location codes
  • A glossary of site-specific engineering and safety terms

Bonus tip: Pair this with prior PHA/MOC records to teach the agent how certain risks or equipment types are typically discussed.

Step 3: Deploy the AI Agent Inside SharePoint

The AI Agent can be deployed in several ways:

  • As a search assistant embedded in the SharePoint interface
  • Through Microsoft Teams integration (e.g., via Power Virtual Agents)
  • As a standalone web portal that queries SharePoint APIs behind the scenes

Users can now ask questions like:

“What’s the latest inspection summary for P-1201?”
“Are there any active MOCs involving pumps in Area 1?”
“Show me all procedures tied to hydrocracker pumps from the past 6 months.”

The agent parses the request, navigates the facility hierarchy, filters documents by metadata, and delivers ranked, relevant results—along with context snippets and related files.

How the AI Agent Connects the Dots

Because the AI Agent understands metadata and asset relationships, it can surface related PSI across multiple document types. For example:

Query: “What’s the latest PSI for P-1201 in Area 1?”

The AI Agent may return:

  • Maintenance Procedure (Standard Work Instruction)
  • OEM Datasheet
  • P&ID Sheet U1-451A with tag P-1201 highlighted
  • PHA excerpt: HAZOP node for “Hydrocracker Feed Pump P-1201”
  • MOC Package MOC-2023-0095, which includes modifications to pump controls and bypass piping

By aggregating all this information, the agent provides a complete picture, so decisions are made based on engineering, operational, and risk-based perspectives.

Step 4: Validate and Learn from Feedback

To refine results, the AI Agent tracks:

  • Search terms vs. actual documents accessed
  • User feedback on result quality (thumbs up/down, click-through)
  • Patterns in how different roles search (e.g., operators vs. engineers)

This learning loop improves accuracy and builds trust in the system.

Business Value Delivered

By combining SharePoint’s robust document management with an AI Agent’s contextual intelligence, you achieve:

Faster access to the right PSI
Reduced downtime during turnarounds or maintenance
Improved safety through fewer human errors
Higher productivity for technical teams

Final Thought

When process safety is on the line—especially in high-hazard units like hydrocrackers—context is everything. Procedures, datasheets, drawings, risk assessments, and change records are all parts of the same story.The FACILEX® PSM suite utilizes SharePoint for all aspects of electronic document management. Gateway can assist with an AI-PSM project for integrating an AI Agent.

Share:

More Posts

From Data to Decisions: How AI and FACILEX® Transform SEG Sampling into a Strategic Best Practice

Industrial Hygiene SEG sampling is a proven way to protect workers from daily exposure risks, but its full value emerges when integrated into Process Safety Management (PSM). This post explores how combining AI agents with FACILEX® transforms SEG sampling from routine monitoring into a strategic best practice. By automating assignments, validating data, identifying exposure trends, and linking results directly to PHAs, MOCs, and incident investigations, organizations can move from data to decisions—strengthening compliance, workforce protection, and executive visibility within their PSM programs.

Managing Personnel Changes in MOC Execution

Staying on Track: Managing Personnel Changes in MOC Execution

Even well planned MOC projects can run into delays when key participants become unexpectedly unavailable. Whether it’s due to vacation, illness, a leave of absence, or staff turnover, real-world disruptions to personnel are inevitable. When the individual responsible for a key MOC task becomes unavailable, the process doesn’t stop—but without the right system in place, progress can stall.

industrial hygiene seg sampling

Making Industrial Hygiene SEG Sampling a Best Practice in Process Safety Management

Industrial Hygiene SEG sampling is a critical but often underutilized component of Process Safety Management (PSM). This post positions SEG sampling as a best practice that enhances PHAs, validates controls, supports MOC decisions, and strengthens continuous improvement. By integrating exposure monitoring with OSHA and CCPS frameworks, organizations can elevate PSM programs beyond compliance and demonstrate leadership in worker protection.

Supporting the Way Facilities Really Work

Flexible Assignments and Approvals: Supporting the Way Facilities Really Work

In the previous post we discussed the importance of automated task assignment recommendations. In this follow-up we take a closer look at the best practices for task assignments that include departments, roles or individuals. In addition, we examine the need to support complex business rules for task completion, review and approval.