Custom data for Legacy Webchat
When a customer opens the bot, the bot captures the necessary details to identify the customers and associate the conversation with the corresponding account.
Pega Customer Service
Implementation Guide
The
PegaHelperExtension.js
file
captures the following information from the website to pass on to the Pega Customer
Service application by default:- pegaAParamObj.ContactId
- pegaAParamObj.AccountNumber
- pegaAParamObj.username
- pegaAParamObj.CustomerURL
- pegaAParamObj.Language
- In the downloaded self-service configuration folder of your bot channel, open
the
PegaHelperExtension.JS file
. - In the preparePegaAParams function, add the new key-value pairs.
- In the Work-Channel-Chat class, create a new property to hold that value.
- In the Work-Channel-Chat class of your self-service application, update the pyDefault data transform to set .myServer to param.myParam.
- Copy the value set in the SetContactContextWebChatBot data
transform to copy to the pyInteractionCase page.pyInteractionCase page is the context of the bot interaction.
- To set the properties from pyInteractionCase to the chatinteraction page, which is used while routing the request, use the cyInvokeRoutingExtn data transform.
Previous topic Context data for Web Messaging Next topic Channel switching