We are trying to configure Pre-Chat authentication in Pega Digital Messaging.
In the customer website we are going to log in and then start the Pega Digital Messaging Chatbot. Our requirement is that Chatbot can recognize the customer by having the customer data.
Attached is an example of the code which needs to be implemented on the client side. The following configuration steps should be taken to implement this feature:
Navigate to the Digital Messaging manager, Channels and Interfaces > Digital Messaging > Connection > Manage Connections
Within the Digital Messaging Manager, navigate to the active Web Messaging connection and head to the security tab. In the security tab, enable the configuration ‘Control chat session initialization’ seen in the screenshot
c. Finally, call the Private Data API and send over the Session ID and customer identifier, which will be exchanged into the Pega Appliction alongside the incoming messages. The customer identifier will be seen in the messaging interaction under ‘pyCustomerPrivateData’