Embed widgets
The fastest way to put an Interakt experience in front of users is the embed widget — a single <script> tag plus a <div> you paste into your site. The widget handles the search box (or chat window), the styling, the API calls, and the access token in one drop-in.
Both search experiences and AI/chat experiences have one. The screens are in the experience's detail page.
Where to find it
Sidebar → Experiences → pick any experience → Search Widget card (search experiences) or Chat Widget card (AI experiences).
What you get
Two pieces of code:
<div id="interakt-search"></div>
<script src="https://cdn.interakt.example/widget.js"
data-experience="product-search"
data-token="sk_••••••••"></script>
Paste them into the HTML of any page where you want the search box or chat to appear. The script self-initialises — no further setup.
The widget renders into the <div> you specify (or floats over the page, for chat).
The configuration card
Both widget cards have a live preview and an editor. Changes to the editor update the preview in real time; click Copy to copy the snippet with your current configuration baked in. Click Save to persist the configuration so it loads automatically next time someone embeds the widget.
Common fields (search and chat)
| Field | What it controls |
|---|---|
| Theme | Light, Dark, or Auto (follow visitor's system preference). |
| Primary colour | Hex value used for the action button, focus states, accents. Match your brand. |
| Background colour | The panel background. |
| Surface colour | The card / row background — slightly different from the panel for layering. |
| Border radius | Rounded corners. In pixels. 8 is a soft default; 0 gives sharp corners. |
| Font family | CSS font stack. Default is the system stack. Set to your brand font if it's loaded on the page. |
| Mode | Modal (button opens an overlay) or Inline (renders directly into a container element). |
| Container ID | The id of the <div> you want the widget to render into, for inline mode. |