BEFORE_VIEW_INIT
You can customize the chat window by listening to various events. For example, you can modify the view before it is 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 are 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.