Best way of getting session id on front-end side

Hi

You can obtain the session ID of the Teneo dialog session with the following TWC extension:

window.TeneoWebChat.on('engine_response', ({responseDetails}) => {
    const sessionId = responseDetails.sessionId;
     // Use sessionId here:
     ...
});

You can see more on our TWC API here:

Alexander