Skip to main content
The MITHUNAI embeddable website widget supports extensive visual and functional customization through HTML data attributes, CSS custom properties, and JavaScript lifecycle hooks. Organizations can match their exact corporate brand identity—including colors, font families, launcher positioning, and welcome message chips—without forking code or maintaining custom widget builds.

Basic Embed Snippet

To embed the assistant on any web page, paste the script tag before the closing </body> tag:
Standard Embed Snippet

Configuration Attributes


Example: Advanced Custom Branding & Prompts

Customized Widget Embed

Embedding in Modern Frameworks

Next.js (App Router)

In Next.js, load the widget using the next/script component inside your root layout.tsx:
Next.js Root Layout Embed (app/layout.tsx)

React Component Wrapper

React Declarative Component

Programmatic JavaScript API

Control the widget programmatically using the global window.MithunAI interface:
JavaScript Lifecycle Controls
Last modified on September 27, 2026