This article will contain some common customizations that Carriers may be interested in when implementing the Hi Marley ClaimCenter accelerator. Each section will provide an overview and a high-level guide to start this customization. The actual implementation of the customization will depend on your current ClaimCenter code.
We recommend learning more about what is offered in the OOTB accelerator before deciding on any customizations.
ClaimCenter 10.12 Accelerator OOTB Guide
ClaimCenter 9 Accelerator OOTB Guide
Table of Content
- Automated Messaging
- Current Implementation of Messaging with Send SMS Button
- Potential Customization
- Add Newly Support Translation Language Option to ClaimCenter
Automated Messaging
Current Implementation of Messaging with Send SMS Button
The ClaimCenter Accelerator implements a Send SMS screen that allows ClaimCenter users to type a message from scratch or template and send it to the Hi Marley case.
The OOTB implementation leverages multiple functions to enable the button press, build the JSON Payload for the API call, and trigger the Hi Marley send template message API.
You can learn more about the Send SMS flow for users in the ClaimCenter 10.12 Accelerator OOTB Guide.
This is the flow of the implementation, you can learn more about each function below.
Send SMS Button PCF -> LoadSMSMessage() -> SendSMSFromGW() -> SendSMS()
| Function | Description | Relative Path in Accelerator Codebase |
| Send SMS Button PCF | Button UI that invokes next method below | /config/web/pcf/acc/himarley/cases/HiMarleySendSMS_AccDV.pcf |
| LoadSMSMessage() | Function that filters out null values for empty messages | /gsrc/acc/himarley/integration/HiMarleyUtil.gs |
| sendSMSFromGW() | Function that builds the JSON Payload for the SendSMS Button which requires an active Hi Marley account for the ClaimCenter user that is sending the message before invoking the SendSMS() | /gsrc/acc/himarley/integration/HiMarleyUtil.gs |
| sendSMS() | Function that sends a JSON Payload to a specific Hi Marley Case. | /gsrc/acc/himarley/integration/HiMarleyClient.gs |
Potential Customization
The last function sendSMS() takes Hi Marley case data (hiMarleyCase: HiMarleyCaseData_Acc) from ClaimCenter and the JSON Payload (jsonPayload : String) to trigger the Hi Marley Send Template message API.
For this customization, we recommend using the sendSMS() function wrapped in a new function similar to the SendSMSFromGW() function. In the example function below we build the send message template payload to trigger the Hi Marley API ensuring that the automated message comes from the Marley ai account.
We recommend automated messages come from the Marley account to maintain a clear difference between adjuster interactions and automated notifications. Generally this is helpful in maintaining reasonable customer expectations.
If you would like to customize the automated message further, you can learn more about our Send Template Message API here.
Once you have the automatedSMS function, you will need to decide the following:
- Where do you want to trigger automated SMS message from?
- What events within your organizations Claim Process would see the value of automated messaging?
- What is the content of each automated message per event?
We are not able to decide how to implement this customization since it is highly depend on each Carrier organization and the nuance of their claim process
Sample Function - sendAutomatedSMSFromGW
Note: This is an example function and is not guaranteed to work without alteration.
/**
* Method to send automated SMS from Guidewire to Hi Marley as the Marley ai account
*
* @param hiMarleyCase HiMarleyCaseData_Acc
* @param smsMessage String
* @return String
*/
public static function sendAutomatedSMSFromGW(hiMarleyCase: HiMarleyCaseData_Acc, smsMessage : String): String {
var successMessage: String
//Ensure message is not empty
if (smsMessage.isEmpty()){
successMessage = "Message cannot be empty"
} else {
//Remove any special characters
smsMessage = StringEscapeUtils.escapeHtml(smsMessage)
//Build templateValues nested object with a single variable (message) containing the SMS message
var templateValuesJsonObject = new JSONObject()
templateValuesJsonObject.put("message", smsMessage)
//Build top-level JSON Payload with caseId, source, and templateValues
var messageJsonObject = new JSONObject()
messageJsonObject.put("caseId", hiMarleyCase.CaseID)
messageJsonObject.put("source", "ai")
messageJsonObject.put("templateValues", templateValuesJsonObject)
LOGGER.debug("json payload: " + messageJsonObject.toString())
//Trigger the Hi Marley Send Template message API within the sendSMS() func
var responseCode = HiMarleyClient.sendSMS(hiMarleyCase, messageJsonObject.toString())
if (responseCode == 201 or responseCode == 200) {
successMessage = "Message successfully sent"
}
}
return successMessage
}
Add Newly Support Translation Language Option to ClaimCenter
As Hi Marley adds new language translation options to our platform, new languagePreference options are available via API and integrated with ClaimCenter so that user can leverage them and update the ClaimCenter case details.
With the OOTB accelerator, you can easily modify the accelerator to accept and update cases with the new language option using the following steps to add