Chat launcher script Link

<script src="https://cdn.sentione.com/chat-ui-launcher/chat.1.13.1.js"></script>

Changes

In this version, we changed how conversation history works.

We also add few option to pass functions which webchat will call in specific situation (for example "end of conversation).

New fields in configuration object

Field name (* - required)TypeDescriptionExample value
conversationSessionIdCookieNamestringField to customize name of Cookie for conversation history. The cookie is saved on the host domain.
Field is optional, default name of the cookie is: conversation-session-id
new option
onSessionIdChangedfunction (newSessionId: string)Callback function - Webchat can change conversation session id (after click X button from header of the webchat). In this case, webchat will generate new sessionId and call this callback to pass new session id to host page.onSessionIdChanged: (newSessionId) => { console.log('New session id: ', newSessionId); }``` new option

Live example