NeoBramDiscuss a use case
    Industrial AI Architecture

    How to Connect AI with Historian Data: A Guide for OSIsoft PI and AVEVA Users

    Connecting AI to OSIsoft PI and AVEVA historian data is a context, quality and governance problem—not just a model-selection exercise. This practical guide explains how to use PI Data Archive, Asset Framework, event frames, PI Web API and OPC UA Historical Access to build a read-first, evidence-linked integration that keeps the plant and its approval workflows authoritative.

    Published 20 Aug 202617 min read

    Written by NeoBram

    Key takeaways

    • A reliable historian integration preserves asset identity, source timestamps, status, units, sampling method, event context and document revision instead of sending raw tag names to a language model.
    • PI Web API provides a practical HTTPS access layer for PI Data Archive time series plus AF and event-frame data; OPC UA Part 11 offers a vendor-neutral model for historical values, events, timestamps and data-loss status.
    • Use ISA-95 to define the boundary between control, manufacturing operations and enterprise systems, and keep the first AI release read-only and outside the direct control path.
    • A strong pilot starts with one asset family, one decision and one validated evidence contract, then measures source correctness, applicability, citation coverage, abstention quality and workflow time saved.
    • The historian remains authoritative. AI should organize and explain evidence for a qualified human, not silently change control parameters, release procedures or close operational records.

    The integration question is not “Can AI read the historian?”

    Manufacturing teams already have years of valuable operating history in OSIsoft PI—now AVEVA PI System—including temperatures, pressures, flows, alarms, events and calculated indicators. The harder question is whether an AI system can use that history without losing the asset context, timestamp semantics, data quality, permissions and human authority that make the records operationally useful.

    A historian is not a document repository and it is not a generic time-series database. A good integration preserves what the data means: which asset produced it, which operating mode was active, whether the value was recorded or interpolated, whether a gap occurred, and which procedure or event explains the change. The AI layer should then turn that evidence into a reviewable investigation brief, operator question, maintenance signal or engineering explanation—not an untraceable instruction.

    This guide explains a practical, read-first architecture for connecting AI to OSIsoft PI and AVEVA PI environments. It covers PI Data Archive, Asset Framework, event frames, PI Web API, OPC UA Historical Access, security boundaries and the evaluation controls that should be in place before an assistant is allowed to trigger workflow actions.

    The safest design principle: let AI interpret and organize historian evidence, but keep the historian, control system and authorization workflow authoritative.

    What is in an industrial historian?

    The first design mistake is treating every PI object as an interchangeable “tag.” AI needs at least three layers of meaning: the time-series value, the asset and process context around that value, and the event or business record that explains why it matters.

    Historian surfaceWhat it representsWhat an AI integration should preserve
    PI Data ArchiveHigh-volume time-series values, timestamps and status informationTag identity, source timestamp, server timestamp where available, units, compression or sampling assumptions, status and retrieval method
    Asset Framework (AF)Equipment hierarchy, attributes, templates and relationshipsAsset path, site, line, unit, equipment class, attribute meaning, engineering units and template/revision context
    Event FramesTime-bounded operational events such as trips, batches, excursions or maintenance windowsStart and end time, event type, asset scope, event attributes, linked evidence and event status
    PI Analytics and calculationsDerived indicators and rules calculated from one or more signalsFormula or calculation identity, input tags, evaluation window, quality behavior and version
    PI Web API or other access layerProgrammatic read/write access to PI data and AF objects over HTTPSEndpoint identity, authentication method, requested time range, query shape, response status and audit record
    AVEVA CONNECT or other data servicesOptional edge-to-cloud and enterprise data movementData residency, lineage, synchronization delay, cloud permissions and the boundary between operational and analytical copies

    AVEVA describes PI System as a portfolio that collects, cleanses, stores, enriches and visualizes real-time operations data, with access for applications, analytics and AI tools. Its PI Server materials describe Asset Framework as the contextual layer around raw streams and state that one PI Server can manage up to 20 million tags or data streams and billions of data points. That capacity figure is a vendor-reported product claim, not a sizing guarantee; actual throughput depends on version, architecture, retention, connector configuration, query patterns and licensing. [1]

    The practical implication is simple: do not send a folder of tag names to a language model and call it historian integration. Send a bounded, contextual evidence package whose lineage can be checked.

    Choose the access path before choosing the model

    Most OSIsoft PI and AVEVA deployments have more than one possible integration route. The best path depends on where the AI service runs, how much history it needs, whether it must remain on-premises, and whether the use case requires raw values, aggregates, event frames, asset metadata or a combination.

    Access pathBest fitStrengthsImportant constraints
    PI Web APIAn internal service, application or AI gateway that needs PI Archive and AF access over HTTPSRESTful, cross-platform access; supports time-series retrieval plus AF and event-frame data; easy to place behind an API gatewayRequires careful authentication, query limits, server-side filtering and least-privilege permissions; read/write capability must be separated
    OPC UA Historical AccessA vendor-neutral industrial integration layer or an AI gateway already using OPC UAStandardized historical reads, timestamps, status, events and transparent access to underlying or aggregated historiansServer conformance varies; not every deployment supports every history mode, timestamp type, aggregate or event field
    Approved export or cloud data serviceEnterprise analytics, cross-site benchmarking or a cloud-hosted model where the operational copy must remain protectedDecouples AI workloads from the plant system; supports governed analytical copies and broader data productsAdds synchronization delay, duplication, data-residency questions and a new lineage boundary
    Connector or SDK patternA site with an existing supported connector estate or a high-throughput applicationCan reuse established buffering, identity and operational support patternsProduct/version compatibility and entitlement must be verified before implementation

    AVEVA’s PI Web API documentation identifies the interface as a RESTful access layer for retrieving and manipulating PI Data Archive time-series data and PI AF asset and event-frame data. The current official installation page was updated on 16 July 2026, while the API overview page was updated on 27 May 2026. Those pages are useful version-aware references, but they do not establish a universal throughput limit: request size, server configuration, authentication and deployment topology still need to be tested in the target environment. [2]

    For a vendor-neutral route, OPC UA Part 11 defines historical access for time-series and historical event data from process historians, event historians, proprietary stores, databases, buffers or aggregated historians. It also defines the concepts needed for trustworthy retrieval, including source timestamps, status information, data-loss reporting and history-read behavior. The standard describes capabilities and conformance; it does not mean that every server supports every optional feature. [3]

    Use ISA-95 to place the integration boundary

    An AI system should not become an unowned bridge between the plant floor and enterprise systems. Before selecting endpoints, map the flow against the organization’s control and information boundaries.

    ISA-95, also known as ANSI/ISA-95 or IEC 62264, provides a technology-agnostic model for integrating manufacturing-control and business functions. ISA describes Level 0 as the physical process, Levels 1 and 2 as sensing and supervisory control, Level 3 as manufacturing operations management such as MES and SCADA, and Level 4 as business planning and logistics such as ERP. The framework primarily addresses the Level 3–Level 4 interface and gives teams a shared vocabulary for ownership and information exchange. [4]

    A historian-connected AI assistant usually belongs in a read-only analytical or operations-assistance zone. It may consume Level 2/3 evidence through a controlled interface, combine it with maintenance or engineering records, and return a cited answer to a human. It should not create an uncontrolled path from a public model to a PLC, DCS or safety instrumented function.

    BoundaryDesign questionSafe default
    Control and collectionCan the AI request place load on a collector, interface or control server?Use a separate gateway, bounded queries and caching; never allow the model to construct arbitrary historian queries
    Operations contextWhich site, line, unit and operating mode define applicability?Resolve AF paths and aliases before retrieving values; reject ambiguous asset identity
    Enterprise contextWhich CMMS, MES, quality, ERP or engineering records may be joined?Use explicit identifiers, ownership and approved exchange contracts rather than fuzzy joins
    AI serviceWhere are prompts, retrieved values, outputs and logs stored?Choose an approved deployment model, minimize data, encrypt transport and record provenance
    Action workflowWhat happens after the assistant produces an answer?Start read-only; route recommendations to a qualified person and existing authorization workflow

    The value of ISA-95 here is not that it dictates an AI product. It helps the team define where data originates, who controls it, what can cross the boundary and which system remains authoritative.

    Build the minimum viable historian-to-AI pipeline

    A production-grade first version can be organized into seven layers. The model is only one layer, and it should be the last component chosen after the evidence contract is clear.

    1. Start with one decision, not all plant data

    Choose a use case where the delay is measurable and the evidence is bounded. Good candidates include preparing a compressor-trip investigation, explaining the operating context around a quality deviation, finding similar maintenance events, drafting a shift handover or identifying the tags and documents relevant to a recurring alarm.

    Write the decision boundary in one sentence: “For asset family X at site Y, help role Z prepare artifact A from historian window B; do not issue control commands or close the investigation.” Record the current baseline before building. Measure search time, investigation preparation time, omitted evidence, escalation rate and expert correction rate.

    2. Resolve assets and aliases before values

    A user may say “the north compressor,” an AF path may say “Area-3\Compressor-04,” and a legacy tag may contain a vendor or loop identifier. These strings are not safe substitutes for an asset identity. Build a governed mapping of site, area, unit, equipment, tag, attribute, event-frame template and source-system identifier.

    The retrieval sequence should be context-first: resolve the site and asset, confirm the applicable AF element and attribute, determine the operating mode and time window, then retrieve the values. If the system cannot distinguish two possible assets, the assistant should ask for clarification or abstain.

    3. Expose a narrow read contract

    Create a service that accepts a structured request such as asset identifier, attribute list, start time, end time, sampling mode, maximum point count and purpose. Keep the language model away from unrestricted endpoint construction. The service should validate the request, apply allow-lists, enforce rate limits, fetch data, normalize the response and return provenance.

    PI Web API supports time-series retrieval through stream and stream-set patterns, including recorded, interpolated, plot and summary forms. Use the retrieval mode that matches the question. A trend explanation may need a bounded plot or summary, while a precise event investigation may need recorded values and status. Bulk retrieval should be handled by the service rather than by a prompt that asks the model to guess dozens of URLs. [2]

    4. Preserve time and quality semantics

    Historian data is not just a list of numbers. Every value package should carry the source timestamp, units, status and retrieval method. Preserve time zones explicitly, especially when plants operate across regions or daylight-saving boundaries. Keep the requested interval, the actual returned interval and any interpolation or aggregation parameters.

    OPC UA Part 11 states that historical data includes timestamps and should include status information. It also defines a Bad_DataLost indication for collection gaps that result in lost history, and distinguishes source timestamps from server timestamps. If a system cannot prove whether a value is raw, interpolated, aggregated or affected by a gap, the AI response should say so rather than present it as a measured fact. [3]

    Data fieldWhy it matters to AI
    Source timestampAligns signals with the physical process and other records
    Server timestampShows when the historian or gateway received the value, when available
    Status or qualityPrevents bad, uncertain or lost values from being narrated as reliable observations
    Engineering unitStops a numerical comparison from mixing °C with °F, bar with kPa or a rate with a total
    Sampling or aggregation methodDistinguishes recorded, interpolated, plotted, minimum, maximum, average or summary data
    Asset and attribute identityMakes the result auditable and prevents cross-equipment joins
    Query interval and timezoneMakes the evidence reproducible and prevents silent window shifts

    5. Add operational events and documents

    A historian signal rarely explains itself. The same pressure rise can mean a normal batch transition, a valve test, a blocked filter or an instrument problem. Join the time series to event frames, alarms, work orders, batch context, operating-mode changes and approved procedures, but keep each source type distinct.

    A useful evidence object might contain: the asset and AF path; the time window; a compact signal summary; notable transitions; status and gaps; related event frames; linked work orders; relevant document revisions; and the questions an expert still needs to answer. The AI can summarize these objects, but it should not merge a maintenance note into an approved operating instruction or turn correlation into causation.

    6. Ask AI to produce a cited, bounded result

    For a troubleshooting assistant, the output should be an evidence-backed brief rather than an open-ended answer. Require the model to distinguish observed values, source-reported events, calculated features, hypotheses and recommended next checks. Every factual claim should point to a historian query, event frame, work order or document revision.

    A robust response contract includes six fields: scope, observations, evidence, uncertainty, safe next checks and escalation. If two sources conflict, show the conflict. If the time window is incomplete, show the gap. If the proposed next check requires a permit, isolation, authorization or specialist, state that boundary.

    7. Keep actions outside the first release

    Read-only assistance is not a weak version of the product. It is how the team proves identity resolution, evidence quality, access control, latency and user trust before the system can influence work execution.

    The first release may draft a work-order description or prepare a recommended priority, but a person should approve the final CMMS change. If future releases create work orders automatically, use deterministic rules and an explicit approval gate around the model. Never allow generated text to change a control parameter, release a procedure, acknowledge a safety alarm or close a quality record without an authorized workflow.

    A practical implementation pattern for PI and AVEVA users

    For many existing deployments, the following sequence is a sensible starting architecture:

    LayerExample responsibilityFailure it prevents
    User experienceChat, investigation workspace or shift-handover screenHides the evidence behind a generic chatbot response
    AI orchestrationClassifies the request, resolves the use case and requests approved evidenceLets the model invent arbitrary source queries
    Historian gatewayValidates asset IDs, time windows, attributes, sampling and point limitsOverloads PI services or retrieves the wrong tags
    PI/AVEVA adaptersPI Web API, approved SDK/connector or OPC UA Historical AccessCouples the model directly to a particular transport
    Context serviceAF hierarchy, event frames, tag aliases, document and work-order linksProduces numerically correct but operationally irrelevant answers
    Evidence storeCaches normalized, permission-checked evidence with lineage and retentionMakes outputs irreproducible or impossible to audit
    Evaluation and auditGold questions, expert review, access logs, corrections and incidentsTreats chatbot satisfaction as technical validation

    If the model is hosted in the cloud, the gateway should be the point where plant data is minimized, filtered and authorized. If the model must remain on-premises, the same logical separation still applies; only the deployment location changes. AVEVA presents PI Data Infrastructure as a hybrid edge-to-cloud portfolio, but the appropriate topology remains a site-specific security and data-governance decision. [1]

    Security controls before the first pilot

    Historian integrations deserve the same seriousness as other OT-connected systems. NIST SP 800-82 Rev. 3 emphasizes that OT security must preserve performance, reliability and safety requirements, not merely apply enterprise IT controls unchanged. NIST’s AI Risk Management Framework adds a complementary lifecycle for governing, mapping, measuring and managing AI risks. [5]

    At minimum, the pilot should use a dedicated service identity with read-only permissions, a network path that does not bridge directly into control networks, encrypted transport, an allow-list of AF elements and attributes, query and response limits, secret rotation, audit logs, retention rules and a documented incident process. Separate the credentials and code paths for reading data from any future write-back workflow.

    ControlAcceptance test
    Least privilegeThe integration can read only the approved databases, AF paths, attributes and event types
    SegmentationA model prompt cannot create a direct route to PLC, DCS or safety-system endpoints
    Query governanceOversized windows, unknown tags, ambiguous assets and unsupported modes are rejected
    Data qualityBad status, data loss, missing timestamps and unit mismatches are visible in the result
    ProvenanceEvery answer links to the exact source object, query interval and document revision used
    Output safetyRecommendations are clearly separated from observations and routed to an authorized person
    MonitoringLatency, error rate, access anomalies, correction rate and unsafe-output incidents are reviewed

    Common failure modes to avoid

    Dumping raw tags into a vector database. Embeddings do not solve asset identity, units, timestamps, historian quality or revision control. Store contextual metadata and preserve the queryable time-series source.

    Using interpolated values as if they were measurements. Interpolation can be appropriate for a defined analytical purpose, but the output must carry that method and the original observations should remain available for review.

    Joining data on names alone. “Pump 4” and “P-04” may refer to different sites, units or revisions. Use governed identifiers, AF hierarchy and explicit alias rules.

    Letting the language model decide the time window. Convert the user’s question into a validated interval and show the interval in the result. If “during the upset” is ambiguous, resolve it against an event frame or ask.

    Hiding gaps and bad quality. A fluent narrative built from missing data is more dangerous than an explicit refusal. Treat data-loss status and unknown quality as first-class evidence.

    Writing back too early. The first milestone is a trustworthy evidence package, not autonomous control. Automate only after the read path, authorization and exception handling are proven.

    A 90-day pilot that earns trust

    A focused pilot can move from a bounded question to measured evidence in three stages. The timings are planning ranges, not delivery promises; the actual schedule depends on access approvals, data quality, source ownership and review capacity.

    StageWorkExit evidence
    Weeks 1–3: define and mapChoose one asset family and decision; inventory PI tags, AF elements, event frames, documents and work orders; document access and safety boundariesSigned scope, asset map, source register, baseline metrics and gold question set
    Weeks 4–8: retrieve and evaluateBuild the read-only gateway; normalize timestamps, units and status; create cited evidence objects; test normal, ambiguous, missing and conflicting casesExpert evaluation of source correctness, applicability, citation coverage, latency and abstention behavior
    Weeks 9–12: operate and decidePut the assistant into one existing investigation, handover or maintenance workflow; review corrections and incidents weeklyMeasured time saved, correction patterns, unresolved risks, operating owner and scale decision

    The evaluation set should include ordinary questions, wrong-asset traps, obsolete revisions, conflicting instructions, data gaps, unit changes, daylight-saving transitions, missing event context and requests that should be refused. A system that succeeds only on clean demonstrations is not ready for a plant.

    Track at least five outcomes: median time to assemble the evidence, percentage of responses with a correct and applicable source, correction rate by failure mode, abstention quality when evidence is insufficient, and any unauthorized or unsafe recommendation. Add operational measures such as investigation preparation time, handover completeness or maintenance triage time only after the evidence metrics are stable.

    The business case is evidence continuity

    Connecting AI to historian data is not mainly a model-selection exercise. It is a data-contract, context, security and workflow problem. PI Data Archive provides history; AF provides industrial meaning; event frames provide time-bounded context; PI Web API or OPC UA provides a controlled access path; and the AI layer organizes evidence for a human decision.

    AVEVA says PI System is used across complex industrial environments and markets its portfolio as a hybrid foundation for real-time and historical operations data. OPC Foundation standards provide a common vocabulary for historical access, timestamps, status and events. ISA-95 helps teams locate the boundary between operations and enterprise information. NIST provides the risk and OT-security disciplines needed to keep the assistant outside the control path. These sources are design inputs, not proof that a particular implementation is safe or accurate.

    Start with one asset family, one decision and one read-only workflow. If the assistant can consistently identify the right evidence, expose its quality, cite its sources and abstain when the data is insufficient, the organization has a foundation worth scaling. If it cannot, a larger model will not repair the integration.

    Sources

    [1] [AVEVA PI System and PI Server](https://www.aveva.com/en/products/aveva-pi-system/) and [AVEVA PI Server](https://www.aveva.com/en/products/aveva-pi-server/). Product descriptions and vendor-reported capacity or adoption claims should be verified against the target version and commercial entitlement.

    [2] [PI Web API](https://docs.aveva.com/bundle/pi-web-api/page/1023073.html), [Install PI Web API](https://docs.aveva.com/bundle/pi-web-api/page/1023075.html), and [PI Web API reference](https://docs.aveva.com/bundle/pi-web-api-reference/page/help.html). Official AVEVA documentation for programmatic access to PI Data Archive, AF and event frames.

    [3] [OPC UA Part 11: Historical Access](https://reference.opcfoundation.org/specs/OPC-10000-11/4). Official specification for historical time-series and event access, timestamps, status, data loss and history reads.

    [4] [ISA-95 Series of Standards](https://www.isa.org/standards-and-publications/isa-standards/isa-95-standard). Official ISA overview of ANSI/ISA-95 and IEC 62264 levels, models and information exchange.

    [5] [NIST SP 800-82 Rev. 3: Guide to Operational Technology Security](https://csrc.nist.gov/pubs/sp/800/82/r3/final), [NIST AI Risk Management Framework](https://www.nist.gov/itl/ai-risk-management-framework), and [NIST Generative AI Profile](https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.600-1.pdf). Official guidance for OT security and AI risk management.

    *This article is an architecture and implementation guide, not a substitute for site safety procedures, vendor documentation, security review, or qualified engineering approval.*

    References

    Primary sources used in this guide

    1. [1]
      AVEVA PI System and PI Server

      AVEVA

      Official product information on PI System data collection, contextualization, programmatic access, hybrid deployment, Asset Framework and vendor-reported capacity claims.

    2. [2]
      PI Web API

      AVEVA

      Official documentation for the RESTful access layer that retrieves and manipulates PI Data Archive time-series data and PI AF asset and event-frame data.

    3. [3]
      OPC UA Part 11: Historical Access

      OPC Foundation

      Primary specification for historical time-series and event access, source timestamps, quality status, data-loss reporting and HistoryRead behavior.

    4. [4]
      ISA-95 Series of Standards: Enterprise-Control System Integration

      International Society of Automation

      Official overview of the technology-agnostic levels, models and information-exchange boundaries used to place manufacturing and enterprise integrations.

    5. [5]
      Guide to Operational Technology Security, SP 800-82 Rev. 3

      National Institute of Standards and Technology

      Government guidance for securing OT while preserving its performance, reliability and safety requirements.

    6. [6]
      AI Risk Management Framework

      National Institute of Standards and Technology

      Government framework for governing, mapping, measuring and managing AI risk throughout the lifecycle.

    About NeoBram

    AI expertise for teams that know industry

    NeoBram works as an AI engineering and delivery partner for industrial SMEs and customer-facing firms. We help teams choose a useful first workflow, build private production-ready systems and transfer the capability to their people.