Skip to main content
The AI chatbar is an inline assistant that lets visitors ask questions on any page. It appears automatically once the SDK is initialized. AI chatbar

Gleap.showAiChatbar()

Show the chatbar.

Gleap.hideAiChatbar()

Hide the chatbar.

Gleap.setAiChatbarQuickActions(quickActions)

Set the suggested action buttons shown above the input.

Gleap.setAiChatbarPlaceholder(placeholder)

Override the input placeholder text.

Customizing the appearance

The chatbar renders inside a Shadow DOM for style isolation. Override styles from outside using CSS ::part(). The host element has class gleap-ai-ui-widget.