Skip to main content

Creating a missing SLA prediction

5 Tasks

45 mins

Visible to: All users
Beginner Pega Platform '24.1 English

Scenario

U+ Insurance implements Pega Process AI™ to optimize Case automation. The business wants to predict whether an incoming claim has a high probability of missing the Service-Level Agreement (SLA) for regular processing. These complex claims must escalate to an expert to reduce the average cycle time and improve the customer experience.

A Data Scientist creates a Prediction that predicts the probability of missing SLA in the regular workflow, driven by an adaptive model that learns from previous cases.

The system then implements the Prediction in the Claims Case Case Type. The Prediction identifies the Cases that have a high probability of missing the deadline in the regular claim process, and then assigns them to an expert.

Use the following credentials to log in to the exercise system:

Role User name Password
Data Scientist DataScientist rules
Application Developer ApplicationDeveloper rules

Your assignment consists of the following tasks:

Task 1. Create a boolean outcome field to indicate that the SLA is missed

As an Application Developer, access the provided claims case, click the Data model tab, and create a boolean field named SLAMissed. It serves the adaptive model as the outcome field and enables it to distinguish cases that missed the SLA.

Task 2. Configure the Goal & deadline for the case

Configure the Goal & deadline for the case type to automatically set the outcome SLAMissed when the deadline expires. This allows the models to learn based on future outcomes.

Task 3. Create a Missing SLA Prediction and change the default predictors

As a Data Scientist, log in to Prediction Studio and create a new Missing SLA Prediction. Then, change the default predictors to allow training the model with a provided dataset.

Task 4. Train the Prediction

As an application developer, navigate to Dev Studio and run the training data flow strategy to train the newly created prediction. You use a preconfigured Data Flow with a Data Set that runs 20,000 cases in production and generates synthetic data.

Task 5. Edit the Prediction output label and implement the new Missing SLA Prediction in the case type

Edit the Prediction output label in the Data model tab to see the output name in the Prediction widget. Also, configure the decision step in the Claims case case type to route the cases based also on the Prediction's probability of missing the SLA. Set the condition to route the case to an expert to read Probability is greater than 0.5.

 

You must initiate your own Pega instance to complete this Challenge.

Initialization may take up to 5 minutes so please be patient.

Challenge Walkthrough

Detailed Tasks

1 Create a boolean outcome field to indicate that the SLA is missed

  1. On the exercise system landing page, click Launch Pega Infinity™ to log in to App Studio.
  2. Log in to App Studio as an application developer:
    1. In the User name field, enter ApplicationDeveloper.
    2. In the Password field, enter rules.
  3. On the application overview page, in the Case types section, click Claims case to open the case type.
  4. In the case type, click the Data model tab, and then, Add field.
    add field
  5. In the Add field to Claims Case window, in the Field name field, enter SLAMissed.
  6. In the Type list, select Boolean.
  7. Click Submit to add the field.
    submit field
  8. In the upper-right corner, click Save.

2 Configure the Goal & deadline for the Case

  1. In the Case Type, click the Settings tab, and then click Goal & deadline.
  2. In the Goal & deadline section, click Open SLA in Dev Studio, and then edit the SLA:
    open SLA
    1. In the upper-right, click Check out.
    2. In the Deadline section, click Edit.
    3. In the Perform Action list, select Apply Data Transform.
    4. In the Parameters section, in the Data Transform field, enter SetDeadlineBreachFlag, and then click the Open icon to open the Data Transform Record Configuration.
      open data transform
    5. Optional: In the Context section, in the Development branch list, select [No branch].
    6. In the upper-right corner, click Create and open.
    7. In the Target column, enter or select .SLAMissed.
    8. In the Source column, enter true.
      configure data transform
    9. In the upper-right corner, click Save, and close the Data Transform tab.
    10. In the upper-right corner, click Check in to commit the changes to the Service Level Agreement.
    11. Enter the check-in comment, and then click Check in.
    12. In the lower-left corner, click Back to Pega App Studio.
  3. In the upper-right corner, click Save.
  4. In the lower-left corner, click the AD user icon, and then select Log off to log out of App Studio.

3 Create a Missing SLA Prediction and change the default predictors

  1. Log in to Prediction Studio as a data scientist:
    • In the User name field, enter DataScientist.
    • In the Password field, enter rules.
  2. In the header of the Predictions work area, click New to create a new Prediction.
  3. In the Create a Prediction dialog box, select Case management, and then click Next.
    Create prediction
  4. In the Prediction name field, enter Predict Missing SLA.
  5. In the Outcome list, select Missing Service-level agreement (SLA).
  6. In the Outcome field field, enter or select SLAMissed to associate the Prediction outcome with the boolean data field created in the previous task.
  7. Click Create to finish the setup of the Prediction.
    create prediction
  8. In the Prediction, click the Models tab.
  9. In the Predict missing SLA section, in the Name column, click the model name to open the adaptive model.
  10. Click the Predictors tab, and then click Add field > Add multiple fields.
    add multiple fields
  11. In the Add predictors window, expand Current page (InsuranceApp), and then click Page Customer.
  12. Select the Name checkbox to select all fields, and uncheck the following fields to exclude predictors that are irrelevant and do not have any predicting power:
    • ChassisNo
    • CustomerID
    • CustomerPhoto
    • Name
    • PhoneNo
    • PolicyNo
    • RegistrationNo
      predictors list
  13. Click Submit.
  14. In the upper-right corner, click Save.
  15. In the lower-left corner, click the DS user icon, and then select Log off to log out of Prediction Studio.

4 Train the Prediction

Note: This task is only for the exercise purpose. You use a preconfigured Data Flow with a Data Set that runs 20,000 cases in production and generates synthetic data.
  1. Log in to App Studio as an Application Developer:
    1. In the User name field, enter ApplicationDeveloper.
    2. In the Password field, enter rules.
  2. In the header of App Studio, click App Studio > Dev Studio to change workspaces.
  3. In the navigation pane of Dev Studio pane, click Records.
    1. In the records menu, navigate to Data Model > Data Flow.
  4. On the Data flow tab, in the Purpose column, filter for TrainMissingSLAModel, and then open the data flow listed.
  5. In the header of the Train missing SLA model data flow, click Actions > Run to run the data flow.
  6. In the upper-right corner, click Submit to progress through the Data Flow Work Item, and then click Start to run the flow and begin the training.
    Note: The training process may take several minutes to complete.
  1. After the training completes, in the lower-left corner, click the AD user icon, and then select Log off to log out of Prediction Studio.
  2. Log in to Prediction Studio as a Data Scientist:
    1. In the User name field, enter DataScientist.
    2. In the Password field, enter rules.
  3. In the Predict Missing SLA tile, click Open Prediction.
  4. On the Models tab, click Predict Missing SLA to open the adaptive model configuration.
    models tab click
  5. Click Refresh data, and then confirm that an adaptive model exists for each stage in the life cycle that the cases have accessed.
    chart
    Note: The names of the models refer to the primary stages (PRIM) and alternative stages (ALT) and are numbered by their position in the life cycle of the case type.
  1. In the lower-left corner, click the DS user icon, and then select Log off to log out of Prediction Studio.

5 Edit the Prediction output label and implement the new Missing SLA Prediction in the case type

  1. Log in to App Studio as an Application Developer:
    1. In the User name field, enter ApplicationDeveloper.
    2. In the Password field, enter rules.
  2. On the application overview page, in the Case types section, click Claims Case to open the case type.
  3. On the Data model tab of the Case Type, in the Predict missing SLA Prediction row, click the Gear icon, and then edit the field configuration window:
    click gear icon
    1. In the Prediction output fields, in the Probability field, enter Probability of missing SLA.
    2. Click Submit to save the configuration.
      configure field image
  4. On the Workflow tab of the Case Type, in the Claims Processing stage, click the Decide complexity step.
    workflow steps
  5. In the properties pane on the right, in the When list, click the Gear icon to define the condition for the step.
  6. At the end of the first row, click the plus icon to add a new condition.
    add new condition
  7. In the new row, click the first field, and then select Fields > Predict Missing SLA > Probability of missing SLA.
  8. Configure the new condition to read Probability of missing SLA is greater than 0.5.
    configure missingsla threshold to 05
  9. Between the rows, expand the logic string grouping drop-down list and select or.
    change logic string
  10. Click Submit to save the conditions configuration window.
  11. In the upper-right corner, click Save to finish the case type configuration.
  12. In the upper-right corner of App Studio, click Preview to launch the Insurance Application:
    1. Expand the pane on the left and click Create > Claims Case.
      create claims case
    2. Click the Persona icon to select the demo persona.
      click persona
    3. Select Mike Gonzalez, and then click Submit.
    4. Click Submit to confirm the case details.
    5. Click Submit to progress the case.
    6. Confirm that the system routes the case for approval.
      get approval
    7. On the right, expand the utility pane.
      expand utility
    8. In the Prediction widget, next to Probability of missing SLA, click the Info icon to get more insight.
      widget showing the missing sla perentage
      Note: Because the Probability of missing the SLA is above 0.5, the system routes the Case to the Expert Adjuster for further processing.

This Challenge is to practice what you learned in the following Module:


Available in the following mission:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice