Skip to content

Core Concepts

OwlLayer AI is an Agentic UI SDK. It does not replace your interface or generate a new UI on top of your product. It lets an AI agent act within your existing interface through explicit actions, observable context, and guardrails.


Agentic UI

An agentic interface is one that an agent can drive through explicit entry points.

The agent does not freely manipulate the DOM. It does not guess which buttons to click. It receives a structured context and a list of tools declared by the application, then acts only through those tools.

This distinguishes OwlLayer from two related approaches:

  • A classic chatbot, which mostly responds with text.
  • A Generative UI, which fabricates a new interface rather than driving the existing one.

In OwlLayer, the application remains the owner of its business logic. The agent only calls actions the product explicitly chooses to expose.


Neural-DOM Binding

The Neural-DOM Binding is the central architectural concept of OwlLayer. It describes the controlled link between an existing interface, the context that interface agrees to share, and the reasoning of an AI agent.

The model does not receive free access to the DOM. It receives a contract: a structured Shadow Context, a list of active tools, and an exchange protocol. When it wants to act, it does not click directly in the interface; it requests execution of a tool declared by the application.

The principle reads in three layers:

LayerRoleOwlLayer Rule
Visible DOMWhat the user sees and manipulatesThe agent does not freely browse it
Shadow ContextUseful representation of the screen, visible data, and mounted toolsOnly this context is synchronized with the server
Agentic SessionServer runtime, LLM adapter, and tool call decisionsThe LLM only sees tools present in the current session

The word Binding matters: the link is not static. When a page, product card, modal, or form appears, its tools can enter the Shadow Context. When that UI disappears, its tools must be removed and the server must receive a new CONTEXT_UPDATE. This prevents out-of-context actions.

The word Neural designates the decision-making part: the model reasons on the authorized context, then optionally chooses a tool. But execution stays in application code, with schemas, permissions, HITL validations, and handlers defined by the product.


OwlLayerClient

OwlLayerClient is the front-end core of OwlLayer. The framework SDKs add ergonomics suited to their environment, but they share the same runtime.

SDKPrimary IntegrationRuntime
ReactOwlLayerProvider, hooks, componentsOwlLayerClient
Vueplugin, composables, componentsOwlLayerClient
Sveltestores, actions, componentsOwlLayerClient
Angularprovider, injection, signals, directivesOwlLayerClient
BrowserDirect JavaScript API, HTML auto-discoveryOwlLayerClient

What the client shares across all frameworks:

  • WebSocket AITP connection
  • Local tool registry
  • Context synchronization
  • Tool call execution
  • Tool result emission
  • Session state and runtime events

React, Vue, Svelte, Angular, and Browser change how tools are declared. They do not change the protocol.


AITP (legacy AITP)

AITP stands for Agent-to-Interface Transfer Protocol. AITP is its legacy name and remains a valid compatibility alias.

It is the JSON-over-WebSocket protocol that connects OwlLayerClient to OwlLayerServer.

MessageDirectionRole
HANDSHAKE_INITClient → ServerAnnounces SDK and protocol versions at socket open
HANDSHAKE_ACKServer → ClientConfirms session created after authentication
CONTEXT_UPDATEClient → ServerSynchronizes URL, context, and active tools
USER_INPUTClient → ServerSends a user text or audio message
TOOL_CALLServer → ClientRequests execution of a client tool
TOOL_RESULTClient → ServerReturns the tool's result
AGENT_RESPONSEServer → ClientTransmits the agent's response
SYSTEM_EVENTBidirectionalSignals errors, notifications, or runtime control

The server can only call tools known in the current session context.


Shadow Context

The Shadow Context is the lightweight representation of the interface's useful state.

It does not copy the entire DOM. It contains only the information the application chooses to expose:

  • Current URL and title
  • Active page or view
  • Visible entity
  • Current selection
  • Active filters
  • Cart, folder, workflow step, or other useful business data
  • List of active tools

Passive context helps the model understand the situation. It does not create actions. Actions are carried by tools.


HITL (Human-in-the-Loop)

OwlLayer classifies tools by risk level:

RiskExpected BehaviorExample
noneDirect executionsearch_products
lowDirect execution with optional notificationadd_to_cart
highUser confirmation requiredclear_cart
criticalReinforced user confirmation requiredprocess_payment

Risk should reflect the real user impact, not the technical complexity of the handler.

High and critical tools cannot execute until the user physically clicks "Approve". The confirmation interface is rendered inside a closed Shadow DOM to prevent the AI from attempting to click approval buttons programmatically.

Released under the MIT License.