Good morning:
I am working in a PureCloud web chat solution to offer to our customer a channel throught to interact with our organization. In the chatConfig variable I setted the values for every attibute like orgId, and so on. I use an html form with the purpose to receive the customer identity data (name, lastname, phonenumber and email address). So, I configure the data attribute of chatConfig variables as I show bellow:
var chatConfig = {
"webchatAppUrl": "https://apps.mypurecloud.com/webchat",
"webchatServiceUrl": "https://realtime.mypurecloud.com:443",
"orgId": "1111111",
"orgName": "myorgname",
"queueName": "myqueuename",
"logLevel": "DEBUG",
"locale": "es",
"data": {
"firstName": "",
"lastName": "",
"phoneNumber": "",
"email": ""
}, ..., etc.
In the promise that is received when the webchat object was created (ININ.webchat.create(chatConfig)), we setted again these customer data based on the four parameters that were passed before by a set of validations (not null, not undefined, not empty, etc.) - pUserFirstName, pUserLastName, etc., as I show bellow.
webchat.getConfig().setData({
firstName: pUserFirstName,
lastName: pUserLastName,
phoneNumber: pUserPhonenumber,
email: pUserEmail
});
I tested this configuration during 10-20 chat sessions and it worked, but when I review the chat history of my agent, I saw only the name (firstName+lastName) of the customer that iniciates the chat, but not the phonenumber nor the email.
Where these customer data would be store in? How can the business retrieve these customer data for business processes purposes? Can the business create an PureCloud external contact based on these customer data inputs? If it would be possible, how can we do that?
I appreciate your help.
Thanks a lot.