Site Application AI Capability Architecture
1. Purpose
This documentation defines how AI and GenAI capabilities are represented, configured, integrated, executed, governed, and exposed inside the Site Application.
It defines a vendor-neutral platform model and uses current official specifications and product documentation for technology-specific terminology.
The architecture treats the following as separate concerns:
- Capability classification: Assistant, Agent, Automation, Autonomous.
- Model access: direct provider APIs and client SDKs.
- Agent runtime: agent SDKs and orchestrators.
- Knowledge: documents, chunks, embeddings, vector stores, retrieval, and reranking.
- Memory and state: conversation/session state and execution state.
- Tools and connectivity: APIs, OpenAPI, MCP, connectors, functions, jobs, and events.
- Identity: Site identity, SSO, delegated identity, service identity, and permissions.
- User experience: native Site UI, embedded components, browser/iframe components, and redirects.
- Registration and configuration: Standard Packages, Data Packages, capability registry, and business-object assignment.
2. Core Architecture Principle
The Site Platform should not be tied to one AI vendor, one agent framework, or one low-code product.
flowchart TD
S(["Site Application"]):::actor --> U(["User Experience"]):::actor
S --> E(["System Events"]):::actor
U --> R[("AI Capability Registry")]:::store
E --> R
R --> A[["Assistant"]]:::model
R --> G[["Agent"]]:::model
R --> W[["Automation"]]:::process
A --> P["Execution Policy"]:::govern
G --> P
W --> P
P --> AU[["Autonomous Mode"]]:::model
AU --> M["Model Layer<br/>Provider APIs / SDKs"]:::model
AU --> K["Knowledge Layer<br/>RAG / Memory / Vector"]:::store
AU --> T["Tool Layer<br/>API / MCP / Jobs"]:::process
M --> X["Enterprise / Site Systems"]:::external
K --> X
T --> X
classDef actor fill:#DBEAFE,stroke:#1D4ED8,stroke-width:1px,color:#0B1220
classDef process fill:#EEF2F7,stroke:#475569,stroke-width:1px,color:#0B1220
classDef model fill:#EDE9FE,stroke:#6D28D9,stroke-width:1px,color:#0B1220
classDef store fill:#CCFBF1,stroke:#0F766E,stroke-width:1px,color:#0B1220
classDef govern fill:#FFE4E6,stroke:#BE123C,stroke-width:1px,color:#0B1220
classDef external fill:#F1F5F9,stroke:#64748B,stroke-width:1px,color:#0B1220,stroke-dasharray:4 3
3. The 4 A's
| Capability | Working Definition | Primary Role | Typical Human Involvement |
|---|---|---|---|
| Assistant | User-facing AI capability that understands, retrieves, generates, explains, or helps complete a task. | User assistance | High |
| Agent | Goal-oriented AI runtime that can reason, select tools, execute actions, observe results, and continue across multiple steps. | Goal execution | Medium |
| Automation | Predefined process that executes configured steps, rules, workflows, events, or integrations. AI reasoning is optional. | Deterministic process execution | Low |
| Autonomous | Operating mode in which the system can continue toward an objective, re-plan, decide, and act within defined policy boundaries with limited human intervention. | Independent operation | Very low / exception-based |
The 4 A's are a Site Platform taxonomy, not an external industry standard.
Automation is intentionally orthogonal to the Assistant -> Agent -> Autonomous progression. An agent can invoke automation, and an autonomous capability can coordinate agents and automations.
See 4 A Capability Model.
4. Technology Roles
| Technology Type | Platform Role | Examples |
|---|---|---|
| Model / inference provider | Generates or reasons over model input | OpenAI, Gemini, Claude, local model runtimes |
| Model client SDK | Low-level application access to model/provider APIs | Provider SDKs, HTTP clients |
| Agent SDK | Manages agent loops, tools, state, handoffs, guardrails, tracing, or multichannel behavior | OpenAI Agents SDK, Microsoft 365 Agents SDK |
| Low-code AI orchestrator | Visual construction of assistants, chat flows, agent flows, RAG, and tool orchestration | Flowise |
| Workflow automation engine | Deterministic workflow, trigger, schedule, integration, and business automation | n8n |
| AI interaction UI | User-facing chat/model/knowledge interface | Open WebUI |
| Knowledge/retrieval layer | Stores and retrieves grounded context | Vector databases, document stores, retrieval services |
| Tool protocol | Standardized model-to-tool/context integration | MCP |
| API description | Standard description of HTTP APIs | OpenAPI |
| Identity provider | SSO, identity federation, tokens, roles | Keycloak, Microsoft Entra ID |
5. Implementation Modes
The same Site capability may be implemented in multiple ways.
| Mode | Use When | Site Representation |
|---|---|---|
| Direct API | Small, controlled model call or tool call | Standard Package connector |
| Client SDK | Application needs provider-native SDK features | Component / server module |
| Agent SDK | Tool loops, sessions, handoffs, guardrails, or multistep reasoning are required | Agent runtime implementation |
| Low-code flow | Visual flow authoring and fast orchestration are valuable | Flow reference in registry |
| Automation workflow | Process sequence is predefined | Automation/workflow reference |
| Embedded application | External application's own UI is required inside Site | iframe/browser component |
| Redirected web application | Embedding is not supported or not appropriate | Browser/URL component |
The Site capability definition should remain stable even when its implementation mode changes.
6. Platform Requirements
The Site AI architecture requires the following capabilities:
- Support both direct code/SDK integration and low-code integration.
- Separate general model/client SDK access from agent-oriented runtime behavior.
- Store reusable configuration through Standard Package settings rather than hard-coding provider credentials.
- Allow custom URL/API connectors in addition to built-in connectors.
- Maintain knowledge sources from text and uploaded files.
- Support document splitting, embeddings, vector storage, similarity retrieval, metadata, and reranking.
- Support API connectivity through direct APIs and MCP where appropriate.
- Register assistants/agents and associate them with flows, users, business objects, and permissions.
- Support SSO and external identity integration for embedded AI applications.
- Support Microsoft 365 access through Microsoft Graph where a process needs mail, Teams, files, users, or other Microsoft 365 data.
- Support embedded components, connector components, custom URL components, and iframe-based UI integration.
- Support prompt templates with variable inputs and task-specific instructions.
- Prefer a common capability model where practical instead of unrelated data models for every AI implementation.
7. Canonical Technical Rules
The following rules are normative for the Site AI architecture:
- Embeddings are floating-point vectors, not binary
0/1representations. - Chunk sizes are configuration, not fixed at 1000-1500 characters. Token-based and semantic chunking are preferable where supported.
- Vector stores do not place documents "inside the LLM". They store searchable chunks/embeddings and return relevant context to the model.
- Session memory is not the same as knowledge storage. Conversation state and persistent knowledge need separate lifecycle and access rules.
- MCP is a protocol, not simply an API response schema. MCP uses JSON-RPC and exposes primitives such as tools, resources, and prompts.
- OpenAPI and MCP solve different problems. OpenAPI describes HTTP APIs; MCP standardizes how AI hosts connect to tool/context servers.
- Sandbox execution is capability-specific, not mandatory for every agent. Use isolation when tools need files, code execution, browser/computer control, or an untrusted workspace.
- Microsoft Graph SDK, Microsoft 365 Agents SDK, and Microsoft Agent 365 SDK are different products. Graph SDK is for Microsoft Graph API access; Microsoft 365 Agents SDK builds agent applications; Agent 365 SDK adds governed enterprise capabilities to agents built with supported frameworks.
8. Documentation Map
- Architecture
- AI and Generative AI Foundations
- 4 A Capability Model
- Assistant
- Agent
- Automation
- Autonomous
- SDK and Runtime Integration
- Knowledge, Memory, and RAG
- MCP and API Connectivity
- Prompt Templates