AIApplication represents an instance of an AI application, such as Einstein Prediction Builder. It records the application's identity, category, and status.
An AIApplication is separate from its application configuration and prediction definitions. Those components can reference the application, but they are not nested definitions inside it.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
The metadata component name, inherited from the Metadata base type. |
developerName |
Required. Identifies the application uniquely within the org. Must begin with a letter, contain only alphanumeric characters and underscores, contain no spaces or consecutive underscores, and not end with an underscore. |
masterLabel |
The label that identifies the application throughout the Salesforce user interface. |
status |
Required. Accepts Disabled, Draft, Enabled, and Migrated. These values describe application status, not a documented transition sequence. |
type |
The application category. Salesforce documents PredictionBuilder; the exposed enumeration also contains RecommendationBuilder. See Documentation Inconsistencies. |
Behavior and Constraints
Only users with either View DeveloperName or View Setup and Configuration permission can view, group, sort, or filter developerName. If an administrator cannot inspect or locate an application by this field, check these permissions before treating the application as missing.
Do not interpret the status values as an activation or migration procedure. In particular, Migrated alone does not establish which migration actions occurred, and Enabled alone does not establish prediction readiness.
Keep the application identifier and display label distinct: developerName has org-wide uniqueness and naming constraints, while masterLabel supplies the user-interface label.
Deployment and Retrieval
AIApplication components use the .ai file suffix and are stored in the aiApplications folder. The type supports the wildcard * in package.xml, the manifest file that selects metadata components for deployment or retrieval.
When preparing a deployment, check that the required developerName and status elements are present, that the developer name follows its naming rules, and that it is unique in the target org.
References from configuration and prediction-definition components do not establish that those components are automatically included in an AIApplication deployment. Treat them as separate components when determining deployment scope.
When assessing a change to developerName, check incoming aiApplicationDeveloperName references. Do not treat applicationId as another developer-name reference.
Relationships
Application configuration and prediction definitions can point to an AIApplication. These incoming references connect separate metadata components; they do not make those components children contained within the application definition.
Referenced By
-
AIApplicationConfig:aiApplicationDeveloperName,applicationId. -
MLPredictionDefinition:aiApplicationDeveloperName.
Documentation Inconsistencies
Salesforce's AIApplication field documentation lists only PredictionBuilder for type, while the exposed element enumeration includes both PredictionBuilder and RecommendationBuilder. The enumeration is broader than the documented list. Its inclusion of RecommendationBuilder should not, by itself, be treated as confirmation that the category is supported for a deployment.
Common Questions
Where are AIApplication metadata files stored?
They are stored in the aiApplications folder with the .ai suffix. The type supports * in a package.xml manifest.
Why can't I view or filter AIApplication developerName?
Viewing, grouping, sorting, and filtering developerName require either View DeveloperName or View Setup and Configuration permission.
Does deploying AIApplication automatically include its configuration and predictions?
The relationships do not establish automatic inclusion. AIApplicationConfig and MLPredictionDefinition are separate metadata components that can reference the application.
Does an Enabled AIApplication mean predictions are ready?
No. Enabled is an application status value; that value alone does not establish prediction readiness.