Predictive Intelligence API
-
- UpdatedJan 30, 2025
- 4 minutes to read
- Yokohama
- API reference
The Predictive Intelligence API provides endpoints that predict a field value based on one or more input fields and a trained solution.
You can only use this API when the Predictive Intelligence (com.glide.platform_ml) plugin is activated.
Predictive Intelligence - GET /agent_intelligence/solution/{solution_name}/prediction
Predicts an output field value using a specific solution.
URL format
Default URL: /api/now/agent_intelligence/solution/{solution_name}/prediction
Supported request parameters
Name | Description |
---|---|
solution_name | Name of solution to use for predictions. For example,
ml_incident_categorization. Data type: String |
Name | Description |
---|---|
Solution definition input field key-value pair | Name-value pair of the solution input field. For example, enter the name:
short_description and the value: Unable to
connect to VPN. Data type: String |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully processed. |
401 | Unauthorized. The user credentials are incorrect or have not been passed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters (JSON or XML)
Example: Sample cURL request
Predictive Intelligence - GET /agent_intelligence/solution/prediction
Returns predictions for multiple solutions.
result.<solutionname>.<sys_id>.[{ <result1> },{
<result2>}]
.For customization information, see MLSolutionFactory scriptable objects.
URL format
Versioned URL: /now/{api_version}/agent_intelligence/solution/prediction
Default URL: /now/agent_intelligence/solution/prediction
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.