Chabot Embed Event Example

This example show the bot Brain Bot embedded into this page. Click on the button in the bottom right corner to chat.

Bot message response events can be used to parse the bot's message and add your own browser client JavaScript code to enhance the result. This can be used to integrate with your own or 3rd party components in the page, or provide an advance user interface. Normally your bot's message with use a CSS class attirubte to indicate to your client code that it should do something special. Note because the bot chat use a shadow DOM to isolate itself from the page, you need to use "web.baseRoot" not "document" to access it elements.

Say "buttons" to trigger the button demo.