Question

1
Replies
26
Views
Close popover
Sanat Hazra (SANATHAZRA)
Cognizant
Sr. Consultant
Cognizant
GB
SANATHAZRA Member since 2012 8 posts
Cognizant
Posted: 4 weeks 1 day ago
Last activity: 6 days 21 hours ago

How can we injecting user identity in Web chatbot

Hi All,

We have a B2C application where we need to implement Pega chatbot which will allow the customer to escalate the chat to a live agent. Now in this scenario we would need to send the user's metadata as well (ex: email address/operator Id) which will help to load the customer details in interaction portal after the chat is accepted by a live agent.  

We have downloaded the Webchat zip file which contains the PegaHelper and PegaHelperExtension JS files. We can see the user's details has been taken from cookies which was set using the setCookie function. But all are hardcoded values and we need to know how can we get this from logged in user's session, we need to have a sophisticated way of injecting the user identify (without exposing any security risk). So please let us know if you have done any similar implementation and suggest the best possible option to proceed with. 

Appreciate your help in advance !

Thanks,

Sanat

 

Pega Chat 8.1 Conversational Channels Insurance Lead System Architect