ServiceAISetupDefinition represents configuration settings for an Einstein for Service application. It identifies the application, records the configuration's state, and, for Einstein Article Recommendations, records selected and supported language codes. A configuration's presence does not mean that it is serving recommendations, and assigning a status value does not by itself establish that training or activation occurs.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
The metadata identity inherited from the base Metadata type. Do not automatically treat it as interchangeable with name. |
appSourceType |
Required. Selects the application. Values include ARTICLE_RECOMMENDATION for Einstein Article Recommendations, REPLY_RECOMMENDATION for Einstein Reply Recommendations, UTTERANCE_RECOMMENDATION for Einstein Bot utterances, and FAQ for Einstein Bot frequently asked questions. These are not the complete exposed enumeration. |
name |
Required string described as a reference to the configuration. It is distinct from the inherited metadata identity, fullName. |
setupStatus |
Required. Records the configuration state. Exposed values are FIELDS_SELECTED, TRAINING, READY_FOR_REVIEW, READY_TO_ACTIVATE, SERVING, RETIRED, ARCHIVED, INVALID_TRAINING_FIELDS, and TRAINING_FAILURE. |
supportedLanguages |
Required when appSourceType is ARTICLE_RECOMMENDATION. Stores selected and supported language codes as a string. For example, en,de,fr is a comma-separated value, not a default language selection. |
Behavior and Constraints
Availability depends on the org being configured to access the application selected by appSourceType. For ARTICLE_RECOMMENDATION, Einstein Article Recommendations must be enabled and the Main Services Agreement must be accepted. An exposed enumeration value does not establish that the destination org can access that application.
setupStatus distinguishes several states that should not be treated as equivalent:
-
FIELDS_SELECTEDandTRAININGdistinguish field selection from training. -
READY_FOR_REVIEWandREADY_TO_ACTIVATEare readiness states, distinct fromSERVING. -
RETIREDandARCHIVEDare separate lifecycle states. -
INVALID_TRAINING_FIELDSandTRAINING_FAILUREare relevant when diagnosing configuration or training problems, but a status value alone is not enough to determine the cause.
These values describe configuration state; they do not define a deployment-driven transition sequence. Do not interpret a deployment that assigns TRAINING or SERVING as proof that it performs training or activates the application.
Deployment and Retrieval
ServiceAISetupDefinition components use the file suffix .serviceAISetupDescription and reside in the serviceAISetupDescriptions folder. The file suffix and folder use "Description" even though the metadata type name uses "Definition".
In package.xml, use ServiceAISetupDefinition as the type name. The type supports the wildcard * in the manifest's members element.
The destination org must meet the access requirements for the selected application. For an article recommendation configuration, also supply supportedLanguages; it is conditionally required, not an optional detail of the sample configuration.
When replacing or removing a definition, account for associated ServiceAISetupField components that can reference it through setupDefinition. That reference does not establish ownership, cascading deletion, or a required deployment order.
Relationships
The connection that matters when changing this configuration is the incoming reference from field-setup metadata. Keep that reference separate from the definition's own name and inherited fullName; the required name field should not automatically be interpreted as the metadata identity.
Referenced By
-
ServiceAISetupField:setupDefinition.
Documentation Inconsistencies
The official field table lists a narrower set of application and status values than the exposed enumerations. Its four listed appSourceType values are the four examples described above. Additional exposed values are AGENTFORCE_INTERACTION_EXPLORER_CLUSTERING, AGENTFORCE_INTERACTION_EXPLORER_MOMENT_GENERATION, COPILOT_UTTERANCE_ANALYSIS, COPILOT_UTTERANCE_ANALYSIS_AGGREGATION, COPILOT_UTTERANCE_ANALYSIS_PROCESSING, EAR_FOR_CONVERSATION, EAR_FOR_VOICE, and USE_CASE_EXPLORER. Their presence does not establish application access in a particular org.
The official setupStatus table also omits the exposed values INVALID_TRAINING_FIELDS and TRAINING_FAILURE. Include these values when interpreting a configuration's status rather than treating the shorter table as exhaustive.
Common Questions
Why is ServiceAISetupDefinition unavailable in my destination org?
The org must be configured to access the application selected by appSourceType. For ARTICLE_RECOMMENDATION, Einstein Article Recommendations must be enabled and the Main Services Agreement accepted. A value appearing in the enumeration does not establish that the org can access the application.
Does deploying setupStatus as SERVING activate recommendations?
The status values do not establish deployment-driven training or activation behavior. setupStatus records configuration state, and merely having a definition does not mean it is serving recommendations.
When is supportedLanguages required?
It is required when appSourceType is ARTICLE_RECOMMENDATION. It stores language codes in a string, such as en,de,fr. That example is not a default selection.
Which file extension and manifest type should I use?
Use the suffix .serviceAISetupDescription in the serviceAISetupDescriptions folder. The manifest type name remains ServiceAISetupDefinition, and wildcard * members are supported.
What references should I check before removing a definition?
ServiceAISetupField components can reference the definition through setupDefinition. This relationship does not imply that removing the definition cascades to those components or establish a required deployment order.