Chat launcher script Link

<script src=""></script>

Changes summary

In this version, we changed how conversation history works. We moved session-id management to backend, and backend via header (set-cookie) is managing the cookie's session of the conversation. Those changes are breaking, you need to update your configuration object to have properly working webchat.

New fields in configuration object

Field name (* - required)TypeDescriptionExample
appearance.outerStylesobjectObject to setup mostly position of webchat on host page. These styles will be injected to the host page
appearance.outerStyles.urlstringUrl to custom stylesheet
appearance.outerStyles.customCssstringCustom css rules
appearance.endOfConversationLabelstringUser will see this label as end of conversation message
appearance.startNewConversationButtonLabelstringUser will see this label in button to start new conversation
appearance.conversationWindowWidthstringField to set up width of the conversation window{conversationWindowWidth: '300px'}
appearance.conversationWindowHeightstringField to set up height of the converstion window{conversationWindowHeight: '300px'}
everyMessage.extraDataobjectField to pass extraData object with every message from user to bot. If extraData from silenceMessage or initialMessage is used, object will be merged, and more specific (silenceMessage and initialMessage) will overwrite the same keys in object

Removed fields in configuration object

Field name (* - required)Description
disableConversationHistoryThere is no longer 'frontend' conversation history
conversationSessionIdCookieNameThere is no longer 'frontend' conversation history
onSessionIdChangedThere is no longer 'frontend' conversation history
sessionIdThere is no longer 'frontend' conversation history

Changes in window.sentiOneChat object

Method nameArgumentReturn typeDescription
open()voidMethod to open (show) chat conversation window.
close()voidMethod to close conversation window and reset current conversation (it will also turn off silence Message functionality)
minimize()voidMethod to close conversation window but without closing/resting current conversation (if silence message functionality is turned on, after receive new message from bot, conversation window will open automatically)
destroy()voidMethod to remove webchat from page and reset current conversation
onDestroyedChat()voidCallback method. Method is called after the webchat has been removed from a web page. This method can be used to perform any cleanup tasks that may be necessary after the webchat has been removed.

Live example