Sending parameters to TWC

I would like to share user information with teneo web chat.
When the user is logged in the webpage, I would like to send user information (name, cart information, etc) to the bot to customize the greeting message and/or bot behavior.
¿What is the best way of doing this?
Thanks a lot.

Hi,

Teneo Web Chat doesn’t have this functionality natively, but you can implement it in an extension using the TWC JavaScript API:

A proper production-ready implementation should also process correctly different edge cases like the user refreshing the page, entering the same page several times, closing and opening Teneo Web Chat etc.

Alexander