Javascript API to interact with the Laiye Chatbot widget from the hosting page.

To use the Widget Javascript API, once the widget is loaded, you can listen to the event destygo_widget_loaded on document. You will have available as a global variable of window a DestygoChat object.

To use the API, use the DestygoChat.apiMethod().