---
sourceDocument: Xanadu Enable AI
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/intelligent-experiences

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Enable AI

ft:clusterId :

    - platai

bundleId :

    - platai

workflow :

    - Platform


---

# Using MLSolutionFactory scriptable objects

# Using MLSolutionFactory scriptable objects {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

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 ServiceNow AI 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.
   * Listed as global.MLSolutionUtil in the Extension Point \[sys_extension_point\] table
   * See Register a custom script include
   {#using-ml-apis-mlsolutionfactory__ul_yx2_dm3_3kb}
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.
{#using-ml-apis-mlsolutionfactory__ol_umw_5bv_rjb}

For more information, see

* Predictive Intelligence REST API
* MLSolutionFactory - Global
{#using-ml-apis-mlsolutionfactory__ul_md5_1yk_ckb}

