AiAgentDefinition
Represents the definition of an Agentforce agent, including its type, context variables, and conversation settings.
Parent Type
This type extends the Metadata metadata type and inherits its
fullName field.
File Suffix and Directory Location
AiAgentDefinition components have the suffix .AiAgentDefinition and are stored in a subfolder for the agent in the AiAgentDefinition folder.
Version
AiAgentDefinition components are available in API version 68.0 and later.
Special Access Rules
AiAgentDefinition is available only if Agents is enabled in your org.
Fields
| Field Name | Description |
|---|---|
| agentDescription |
|
| agentDSLEnabled |
|
| agentType |
|
| botUser |
|
| contextVariables |
|
| logPrivateConversationData |
|
| richContentEnabled |
|
| type |
|
ConversationContextVariable
Represents the context variable that stores data available to the agent during a conversation.
| Field Name | Description |
|---|---|
| contextVariableMappings |
|
| dataType |
|
| description |
|
| developerName |
|
| includeInPrompt |
|
| label |
|
| SObjectType |
|
ConversationContextVariableMapping
Represents the variable that associates the context variable with a source field.
| Field Name | Description |
|---|---|
| fieldName |
|
| messageType |
|
| SObjectType |
|