Drop-in JavaScript Widget

Embed Ejentum Ask on Your Website

Equip your web portal, knowledge base, or customer support desk with an uncompromised, zero-sycophancy intake assistant. Zero dependencies. Shadow-DOM encapsulated to prevent CSS leakage.

Active on this page

Live Widget Demo

Notice the floating launcher at the bottom-right of your screen. Click it or trigger it via the buttons below:

The widget running on this page communicates directly with https://api.ejentum.com/api/chat.

1. One-Line Embed Code

Paste this script tag immediately before the closing </body> tag on any HTML page:

<script 
  src="https://ejentum.com/widget.js" 
  data-api-url="https://api.ejentum.com"
  data-title="Ejentum Ask"
  data-position="bottom-right"
  defer></script>

2. Configuration Options

Customize the appearance and behavior of the widget using HTML data attributes on the script element:

Attribute Default Description
data-api-url https://api.ejentum.com Base URL of your Ejentum API gateway instance.
data-title Ejentum Ask Header title displayed at the top of the chat drawer and launcher button.
data-subtitle Cognitive Invariant Triage Subtitle text rendered underneath the header title.
data-position bottom-right Screen anchoring position: bottom-right or bottom-left.
data-model claude-sonnet-4.5 Target model identifier passed to the gateway synthesis pipeline.
data-primary-color #ff4d6a Hex color string applied to buttons, borders, and active accents.

3. Programmatic JavaScript API

Control the widget from your application buttons, search bars, or navigation triggers via the global window.EjentumWidget object:

// Open the widget drawer
window.EjentumWidget.open();

// Close the widget drawer
window.EjentumWidget.close();

// Toggle drawer open or closed
window.EjentumWidget.toggle();

// Open the drawer and automatically submit a question
window.EjentumWidget.ask("How do I fix a database lock timeout in Postgres?");