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)
Type
Description
Example
appearance.outerStyles
object
Object to setup mostly position of webchat on host page. These styles will be injected to the host page
appearance.outerStyles.url
string
Url to custom stylesheet
appearance.outerStyles.customCss
string
Custom css rules
appearance.endOfConversationLabel
string
User will see this label as end of conversation message
appearance.startNewConversationButtonLabel
string
User will see this label in button to start new conversation
appearance.conversationWindowWidth
string
Field to set up width of the conversation window
{conversationWindowWidth: '300px'}
appearance.conversationWindowHeight
string
Field to set up height of the converstion window
{conversationWindowHeight: '300px'}
everyMessage
object
everyMessage.extraData
object
Field 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
disableConversationHistory
There is no longer 'frontend' conversation history
conversationSessionIdCookieName
There is no longer 'frontend' conversation history
onSessionIdChanged
There is no longer 'frontend' conversation history
sessionId
There is no longer 'frontend' conversation history
Changes in window.sentiOneChat object
Method name
Argument
Return type
Description
open()
void
Method to open (show) chat conversation window.
close()
void
Method to close conversation window and reset current conversation (it will also turn off silence Message functionality)
minimize()
void
Method 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()
void
Method to remove webchat from page and reset current conversation
onDestroyedChat()
void
Callback 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.