Loops AI Docs

Overview

Put the Loops AI assistant on your website — install the snippet, pass context, and control the widget from your own code.

The web widget puts the assistant on your site with one script tag. Your page supplies identity (agentId), page context (which product the shopper is looking at, who they are), and user actions (open the chat, Ask AI, size guide). Everything visual comes from the configurator.

<script>
  window.LoopsAI = { q: [] };
  window.LoopsAI.q.push(["init", { agentId: "YOUR_AGENT_ID" }]);
</script>
<script src="https://chat.loopsai.com/embed.js" async></script>

Start here

Common setups

You wantWhere to go
The assistant on every pageConfiguration
A sidebar on product pages that knows the productHost Integration API
Your own Ask AI search buttonCustom Ask AI Search Button
A Size guide or Find my size buttonBody-Type Size Guide · Size Suggestion
The widget hidden on checkoutConfiguration
Context updates in a single-page appProduct & User Context

Building a mobile app?

The same runtime powers mobile. Use the iOS or Android SDK, or host it yourself in a WebView with Mobile WebView (No SDK).

On this page