Reading cookies

I would like to know how I can read cookies from the webpage where my chatbot is installed ?

In our platform, you can store cookies values into variables. But localStorage and Javascript variables as well.

In order to be able to read cookies, you must first follow this guide :

Once it works, go back to the Publish section and enter the name of the cookie and match it with the variable where you want to store it. Here you can also choose from cookie, localStorage or a JS variable (the info has to be in window.VAR_YOU_WANT_TO_READ).

Once the script is installed on the page where the cookie is, you will see the value appears at the start of the conversation in the cockpit :