Store anonymous identities

When an anonymous chatbot user is using your chat widget, the default chat widget behaviour stores an identifier in the browser's local storage so that the chatbot user identity can be retained if the page is reloaded or the browser is restarted.

If you don't want to retain the anonymous user identifier once the browser has closed, set the browserStorage property to sessionStorage.

<script>
const options = {
  integrationId: '<integration Id>',
  browserStorage: 'sessionStorage',
},

ingeniousai.init(options).then();
</script>
Was this article helpful?
0 out of 0 found this helpful