Documentation
Everything you need to integrate html.ai.
Introduction
html.ai provides AI-powered UI personalization for websites. The SDK tracks user behavior, identifies behavioral patterns, and dynamically optimizes content to match each user's intent.
This documentation is organized into four sections:
- Getting Started — Installation, setup, and configuration
- Core Concepts — How components, attributes, and tracking work
- API Reference — SDK methods and events (REST API docs available on the server)
- Architecture — System design, services, and Docker deployment
Quick Start
<!-- 1. Add SDK -->
<script type="module" src="./sdk/src/AiOptimizeElement_v2.js"></script>
<!-- 2. Wrap components -->
<ai-opt experiment="hero">
<h1>Welcome</h1>
<button>Shop Now</button>
</ai-opt>