AIApplicationConfig defines additional prediction configuration for a parent AIApplication. It controls how frequently prediction scores are written back and whether the predictor values used to produce a prediction are generated. It is not the parent application itself, and its scoring mode describes score writeback, not a model-training schedule.
Key Elements
| Element | What the Element Controls |
|---|---|
aiApplicationDeveloperName |
Required. Identifies the parent AIApplication by developer name. It does not name this configuration. |
applicationId |
Required. Identifies the parent AI application by ID. Do not substitute its developer name for this value. |
developerName |
Names the configuration itself. The name must be unique within the org and follow the developer-name rules below. |
insightReasonEnabled |
Required boolean. When true, generates the predictors, or field values, used to generate the prediction value. |
rank |
Required integer, reserved for future use. It does not define execution priority, display order, or model ranking. |
scoringMode |
Required. Specifies the frequency of prediction-score writeback. Allowed values are Batch, OnDemand, and Streaming. |
Behavior and Constraints
scoringMode and insightReasonEnabled control different aspects of prediction behavior. The first controls score writeback frequency; the second controls generation of the predictor values that explain a prediction. Neither setting should be interpreted as a model-training schedule.
Both aiApplicationDeveloperName and applicationId are required references to the parent application. They identify that parent in different ways and are not interchangeable. By contrast, developerName names the configuration, not the parent.
Both developer-name elements, aiApplicationDeveloperName and developerName, must satisfy these rules:
- Begin with a letter.
- Contain only alphanumeric characters and underscores.
- Contain no spaces or consecutive underscores.
- Do not end with an underscore.
- Be unique within the org.
masterLabel is required and identifies the configuration throughout the Salesforce user interface. The component extends Metadata and inherits its fullName field.
Deployment and Retrieval
AIApplicationConfig components use the .aiapplicationconfig suffix and reside in the aiApplicationConfigs folder. The type supports the * wildcard in the package.xml manifest, the file that selects metadata components for deployment or retrieval.
When assessing a cross-org deployment, distinguish the parent application's ID in applicationId from its developer name in aiApplicationDeveloperName. Do not treat either value as a substitute for the other, or confuse either parent reference with the configuration's own developerName.
The required prediction settings include scoringMode, insightReasonEnabled, and rank. Include rank even though it is reserved for future use; do not use it to encode deployment or execution order. The configuration also requires masterLabel and both parent-reference elements.
Relationships
The parent application is the connection that matters when moving or identifying this configuration. Two elements reference the same parent type: one by developer name and one by ID. The configuration's own developerName is separate from those references.
References
-
AIApplication:aiApplicationDeveloperName,applicationId.
Common Questions
Does AIApplicationConfig scoringMode control model training?
No. scoringMode specifies how frequently prediction scores are written back. Its allowed values are Batch, OnDemand, and Streaming; they should not be read as training schedules.
Are aiApplicationDeveloperName and applicationId interchangeable?
No. Both are required parent references. aiApplicationDeveloperName identifies the parent by developer name, while applicationId identifies it by ID. The configuration's own name is developerName.
Where are AIApplicationConfig files stored, and can I retrieve them with a wildcard?
They are stored in aiApplicationConfigs with the .aiapplicationconfig suffix. The type supports * in package.xml.
What does insightReasonEnabled generate?
When true, it generates the predictors, or field values, used to produce the prediction value. It controls explanatory information rather than score writeback frequency.
Does rank set the prediction execution order?
No. rank is required but reserved for future use. It should not be interpreted as execution priority, display order, or model ranking.