Skip to main content

BEFORE_VIEW_INIT

You can customize the chat window by listening to various events. For example, you can modify the view before it’s initialized. BEFORE_VIEW_INIT is the generic event for all the elements that are going to render in the DOM. The BEFORE_VIEW_INIT event delivers an HTML response and a payload before they’re rendered in the Agent AI widget. This event allows us to customize the data and behavior for each individual event within the widget, enabling tailored content and functionality based on specific needs.

MAIN_CONTAINER

The main container element houses all widget tabs.

RUN_CLICK_EVENT

This event triggers when the Run button is clicked on the dialog.

TAB_CHANGE_EVENT

This event triggers when you click the footer tabs.

THEME_CHANGE_EVENT

This event triggers when you click on the theme button.

SETTINGS_CLICK_EVENT

This event triggers when you click on the Settings icon on header.

SEARCH_EVENT

This event triggers when clicking on Search icon on the header.

HEADER_TEMPLATE

This event allows customization of header elements.
This event allows you to customize (icons, text font, style, and color) the footer elements — Search, Transcript, and Assist.
Note: To hide the footer: