![]() isChatWindowHidden - returns true if the chat window is hidden,.isChatWindowClosed - returns true if the chat window is closed,.isChatWindowOpened - returns true if the chat window is open,.hideChatWindow - hides the Chat Widget,.closeChatWindow - closes the Chat Widget,.openChatWindow - opens the Chat Widget,.resetSession - resets current session and recreates Chat Widget,.isInitialized - returns true if the chat is initialized,.destroy - destroys Chat Widget if it exist,.create - creates Chat Widget if it does not exist,.onConversationEnd - invoked after the conversation ends.onConversationStart - invoked after the conversation starts,.onMessage - invoked after query result,.onChatWindowHide - invoked when the chat window is hidden,.onChatWindowClose - invoked when the chat window is closed,.onChatWindowOpen - invoked when the chat window is opened,.onSessionReset - invoked after resetSession() API method call,.onDestroy - invoked after destroy() API method call,.onLoad - invoked when widget code is loaded and chat window is rendered,.onBeforeLoad - invoked when widget code is loaded but chat window is not rendered yet,.For example, you can send Google Analytics event whenever the chat window is opened ( onChatWindowOpen), or use logged in user data and pass it to your bot story, so you won’t have to ask for their email addess again during the chat ( setUserAttributes). You can use both Hooks and Methods along with other methods available in your code. Methods - can be triggered in any part of your code, can also be combined with hooks (for example, when chat widget is opened, send specific message).Hooks - are triggered when the specific action occurs (for example, when chat widget is opened or closed).There are two types of methods that can be used to control the chat window: ![]() Below you will find a complete list of all methods available in ChatBot. Thanks to the ChatBot API you can control the chat window, change the default chat bubble to custom image and much more. Chat Widget API allows you to manipulate the chat widget displayed on your website.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |