Skip to main content

Creating a missing SLA prediction

5 Tasks

45 mins

Visible to: All users
Beginner Pega Platform '23 English
Verify the version tags to ensure you are consuming the intended content or, complete the latest version.

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
Expert Adjuster ExpertAdjuster 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 configure the training data flow strategy shape to reflect the newly created model with the model ID. Then, run it to train the model.

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 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.4.

 

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. 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. Right-click the Decision strategy component, and then select Open strategy to open the Populate Scorecard results strategy.
    open strategy
  6. In the upper-right corner of the canvas, click Check out.
  7. Right-click the Adaptive Model component, and then select Properties to configure the adaptive model properties.
  8. In the Adaptive model field, select the Model ID of the newly created adaptive model.
  9. In the Name field, enter the Model ID of the newly created adaptive model, and then click Submit to save the configuration.
  10. In the header of the strategy, click Check in to complete your strategy modifications.
  11. Enter the check-in comment, click Check in, and then close the Populate Scorecards results strategy.
  12. In the header of the TrainMissingSLAModel data flow, click Actions > Run to run the data flow.
  13. 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.
    model data
    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.
    decide complexity step click
  5. In the properties pane on the right, in the When list, click the Gear icon to define the condition for the step.
  6. Click the first field, and then select Fields > Predict Missing SLA > Probability of missing SLA.
  7. Configure the new condition to read Probability of missing SLA is greater than 0.4, and then click Submit to close the window.
    configure conditions
  8. In the upper-right corner, click Save to finish the case type configuration.
  9. 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 progress the case.
    5. Click Submit to confirm the accident category assigned to the case.
    6. Expand the pane on the left and click Dashboard.
      dashboard buton
    7. In Cases entered by me section, click Claim-1 to open the case.
      claim-1 access button
      Note: Claim suffix may differ in your exercise environment.
    8. Confirm that the system routes the case for approval.
      get approval
    9. On the right, expand the utility pane.
      expand utility
    10. In the Prediction widget, next to Probability of missing SLA, click the Info icon to get more insight.
      prediction widget shown
      Note: Because the Probability of missing the SLA is above 0.4, the system routes the Case to the Expert Adjuster for further processing.
  1. In the lower-left corner, click the AD user icon, and then select Log off to log out of App Studio.

Confirm your work

  1. Log in to Process AI Example App as Expert Adjuster:
    1. In the User name field, enter ExpertAdjuster.
    2. In the Password field, enter rules.
  2. In the My worklist section, select Expert Adjuster to access the newly created case.
    access expert adjuster worklist
    1. Click CLAIM-1 to open the case.
      Note: The suffix of the claim may vary in your exercise environment.
    2. In the To do section, click Go to progress the workflow.
    3. Approve or reject the claim, and then click Submit to finalize the case.

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