@mintlify/assistant-widget package to add your Mintlify assistant to any website or web application. The hosted package owns its trigger and renders inside a closed Shadow DOM, which prevents your application styles from affecting the widget.
The only required browser option is the public widget ID. Manage the enabled state, allowed origins, attachments, and bot protection in your dashboard. Set embed-specific starter questions and a support email in the browser configuration.
Prerequisites
- A Pro or Enterprise plan. The widget uses the same credits as the assistant.
Enable the widget
- Navigate to your deployment’s Widget page.
- Enable the widget.
- Add allowed origins where you embed the widget.
- Copy the widget ID.
Install and configure
Use the playground to configure the presentation, visual options, and observer hooks for your widget. The installation code block updates as you change each option.Replace
YOUR_WIDGET_ID in the generated code with the widget ID from the Widget page of your dashboard.