MLSolutionFactory scriptable objects enable defining ML functionality. You can use the APIs to compose data-driven functionality, such as subclustering large clusters or clusters with multiple PRBs attached.

You can use scriptable objects in a scripted extension point to modify the Predictive Intelligence REST API method to address unique business use cases.

ServiceNow applications on the NOW platform can call scriptable objects and script includes. External applications can call scripted REST APIs. By default, the Predictive Intelligence REST API - Prediction for multiple solutions (GET) method uses the MLSolutionUtil scripted extension point to take a list of active solution names, run predictions on them given the input, and return results. The MLSolutionUtil extension point enables creating custom implementations for specific usage scenarios, for example, running a second solution prediction only after the condition of a first solution prediction is satisfied.

Here's the high-level process for creating a custom usage scenario.
  1. Developers customize a MLSolutionUtil scripted extension point implementation using the MLSolutionFactory scriptable object.
  2. The MLSolutionUtil scripted extension point implementation uses MLSolutionFactory to get the scriptable object, and invokes prediction methods on that object.
  3. The Predictive Intelligence REST API - Prediction for multiple solutions (GET) method invokes the MLSolutionUtil extension point implementation, depending on the scope of the request.
  4. Applications call the Predictive Intelligence REST API - Prediction for multiple solutions (GET) end point from a script include form.

The basic process the applications can use to invoke prediction APIs using a scripted extension point implementation using MLSolutionFactory scriptable objects.