useWebchat
hook provides access to the Botpress Webchat integration instance and related state. It allows you to:
useWebchat
is the primary entry point for integrating the Webchat experience into custom UIs or applications.
Events | Description |
---|---|
conversation | Triggered when a new conversation is started. |
message | Triggered when a new message is received. |
messageSent | Triggered when a message is sent. |
error | Triggered when an error occurs. |
webchatVisibility | Triggered when the webchat visibility changes. (‘show’ or ‘hide’ or ‘toggle’) |
webchatConfig | Triggered when the webchat configuration changes. |
customEvent | Triggered when a custom event is received. |
isTyping | Triggered when the bot is typing. |