Parent Type
The fullName is the agent's API name, for example, MyAgent. Each version of the agent is an AiAgentDefinitionVersion component named with a version number, for example MyAgent#1 or MyAgent#2.
File Suffix and Directory Location
- plannerActions/
- localActions/
- agentGraph/
- agentScript/—contains a compiled copy of the script, not the Agent Script source
Version
AiAgentDefinitionVersion components are available in API version 68.0 and later.
Special Access Rules
AiAgentDefinitionVersion is available only if Agents is enabled in your org.
Usage
Fields
| Field Name | Description |
|---|---|
| aiAgentFieldLevelRecordAccesses |
|
| articleAnswersGPTEnabled |
|
| billingMode |
|
| botDialogs |
|
| citationsEnabled |
|
| company |
|
| conversationVariables |
|
| copilotPrimaryLanguage |
|
| copilotSecondaryLanguages |
|
| entryDialog |
|
| errorMessage |
|
| escalationMessage |
|
| genAiPlannerName |
|
| isScriptCompatibleAgent |
|
| knowledgeActionEnabled |
|
| knowledgeFallbackEnabled |
|
| mainMenuDialog |
|
| planner |
|
| role |
|
| smallTalkEnabled |
|
| staticPromptsEnabled |
|
| status |
|
| stopRecPrompts |
|
| surfacesEnabled |
|
| toneType |
|
| version |
|
| welcomeMessage |
|
AiAgentDefinitionFieldLevelRecordAccess
Represents the field-level record access settings that define which object fields the agent can read or write.
| Field Name | Description |
|---|---|
| accessLevel |
|
| field |
|
| object |
|
AiAgentDefinitionPlanner
Represents the planner configuration that defines how the agent selects and runs actions.
| Field Name | Description |
|---|---|
| attributeMappings |
|
| botTemplate |
|
| capabilities |
|
| description |
|
| genAiFunctions |
|
| genAiPlugins |
|
| masterLabel |
|
| plannerSurfaces |
|
| plannerType |
|
| ruleExpressionAssignments |
|
| ruleExpressions |
|
BotDialog
Represents the dialogs in this agent version. This metadata type isn’t returned during a retrieve operation. You can't deploy both dialogs and the messages (welcomeMessage, errorMessage, or escalationMessage) in the same deploy. We recommend using messages instead of dialogs.
| Field Name | Description |
|---|---|
| botDialogGroup |
|
| botSteps |
|
| description |
|
| developerName |
|
| isPlaceholderDialog |
|
| label |
|
| mlIntent |
|
| mlIntentTrainingEnabled |
|
| showInFooterMenu |
|
ConversationVariable
Represents a specific piece of data collected from the customer. You can use variables within dialog actions as both inputs and outputs.
| Field Name | Description |
|---|---|
| SObjectType |
|
| collectionType |
|
| dataType |
|
| description |
|
| developerName |
|
| includeInPrompt |
|
| label |
|
| visibility |
|
Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.