GenAiPlanner

Represents a planner for an agent. It’s a container for all the topics and actions used to interact with a large language model (LLM).

Parent Type 

This type extends Metadata and inherits its fields.

File Suffix and Directory Location 

GenAiPlanner components have the suffix .genAiPlanner and are stored in the genAiPlanners folder.

Version 

GenAiPlannerBundle replaces GenAiPlanner in API version 64.0 and later.

GenAiPlanner components are available in API version 60.0 to 63.0.

Special Access Rules 

GenAiPlanner is available only if Agents is enabled in your org.

Fields 

attributeMappings 

botTemplate 

  • Type: string
  • Required: No

capabilities 

  • Type: string
  • Required: No
  • Description: A set of tags associated with the agent.

description 

  • Type: string
  • Required: No
  • Description: A description explaining the general purpose and domain of the agent.

genAiFunctions 

  • Type: GenAiPlannerFunctionDef[]
  • Required: No
  • Description: A list of agent action definitions, such as a knowledge action, that are not contained in a topic.

genAiPlannerRuleExpressions 

genAiPlugins 

masterLabel 

  • Type: string
  • Required: Yes
  • Description: Required. The master label for the planner.

plannerType 

  • Type: PlannerType (enumeration of type string)

  • Required: Yes

  • Description: Required. A particular approach to problem solving that is given as prompt instructions to a large language model (LLM).

    The only supported value is:

  • Possible values:

    • AiCopilot__ReAct — Uses a reactive reasoning strategy to solve problems with the LLM. This strategy consists of prompting the LLM to generate the next step in response to an event and the current context. It differs from a sequential reasoning engine in that it doesn’t plan more than one step ahead of time.

ruleExpressionAssignments 

ruleExpressions 

GenAiLocalPlugin Type 

Represents a custom agent topic.

Fields 

aiPluginUtterances 

  • Type: AiPluginUtteranceDef[]
  • Required: No
  • Description: A list of utterances that can be used to pick a topic during runtime.

canEscalate 

  • Type: boolean
  • Required: No

description 

  • Type: string
  • Required: Yes
  • Description: The description of the topic.

genAiFunctions 

genAiPluginInstructions 

language 

  • Type: string

  • Required: Yes

  • Description: Required.

    The language of the topic.

localDeveloperName 

  • Type: string
  • Required: No

masterLabel 

  • Type: string

  • Required: Yes

  • Description: Required.

    The master label for the topic.

name 

  • Type: string

  • Required: Yes

  • Description: Required.

    Represents the API name of the topic. This name must be unique across all custom and customized topics. Can contain only underscores and alphanumeric characters and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.

pluginType 

  • Type: PluginType (enumeration of type string)

  • Required: Yes

  • Description: Required.

    Values are:

  • Possible values:

    • Topic

scope 

  • Type: string
  • Required: No
  • Description: A specific job description for a topic.

GenAiPlannerAttrMapping Type 

Represents an attribute mapping, which enables you to map the output of one action attribute to the input of another attribute. This mapping enables you to propagate sensitive data safely without relying on untrusted user input.

Fields 

attributeName 

  • Type: string
  • Required: Yes
  • Description: Required. The attribute name in the format: Namespace.TopicName.ActionName.AttributeName.

attributeType 

  • Type: AttributeType (enumeration of type string)
  • Required: Yes
  • Description: Required. The attribute type. Values are:
  • Possible values:
    • CustomPluginFunctionAttribute — Map to a custom action input or output
    • StandardPluginFunctionInput — Map to a standard action input
    • StandardPluginFunctionOutput — Map output to a variable

constantValue 

  • Type: string
  • Required: No
  • Description: Reserved for future use.

mappingTargetName 

  • Type: string
  • Required: No
  • Description: The target name for the attribute mapping.

mappingType 

  • Type: AttributeMappingType (enumeration of type string)
  • Required: Yes
  • Description: Required. The target type. Values are:
  • Possible values:
    • ActionAttribute
    • Constant
    • Variable
    • ContextVariable

GenAiPlannerFunctionDef Type 

Represents an agent topic or action definition.

Fields 

genAiCustomizedPlugin 

  • Type: GenAiLocalPlugin
  • Required: No
  • Description: A list of custom agent topics.

genAiFunctionName 

  • Type: string
  • Required: No
  • Description: The name of the agent action.

genAiPluginName 

  • Type: string
  • Required: No
  • Description: The name of the agent topic.

GenAiPlannerRuleExpr Type 

Fields 

conditions 

expression 

  • Type: string
  • Required: No

expressionLabel 

  • Type: string
  • Required: Yes

expressionName 

  • Type: string
  • Required: Yes

expressionType 

  • Type: ExpressionType (enumeration of type string)
  • Required: No

GenAiPlannerRuleExprAsgn Type 

Represents a rule-expression assignment to either a topic or an action.

Fields 

ruleExpressionName 

  • Type: string
  • Required: Yes
  • Description: Required. The name of the rule expression.

targetName 

  • Type: string
  • Required: Yes
  • Description: Required. The target of the assignment, which is a Namespace.TopicName.ActionName or a TopicName.

targetType 

  • Type: string (enumeration of type string)
  • Required: Yes
  • Description: Required. The type of the target. Values are:
  • Possible values:
    • Function — A knowledge action
    • Plugin — A topic
    • PluginFunction — An action in a topic

GenAiPlannerRuleExprCondition Type 

Represents a condition for a rule expression.

Fields 

leftOperand 

  • Type: string
  • Required: Yes
  • Description: Required. The left operand in the expression.

leftOperandType 

  • Type: GenAiAgentVariableType (enumeration of type string)
  • Required: Yes
  • Description: Required. The type for the left operand. Values are:
  • Possible values:
    • Variable
    • ContextVariable
    • Attribute

operator 

  • Type: GenAiRuleExpressionOperator (enumeration of type string)
  • Required: Yes
  • Description: Required. The operator in the expression. Values are:
  • Possible values:
    • equal
    • greaterThan
    • greaterThanOrEqual
    • lessThan
    • lessThanOrEqual
    • notEqual
    • isEmpty
    • isNotEmpty

rightOperandValue 

  • Type: string
  • Required: No
  • Description: The value for the right operand.

GenAiPlannerRuleExprDef Type 

Represents a rule expression, which conditionally locks or unlocks topics and actions based on defined security criteria.

Fields 

conditions 

expression 

  • Type: string
  • Required: No
  • Description: An expression with the combined conditions.

expressionLabel 

  • Type: string
  • Required: Yes
  • Description: Required. The expression label.

expressionName 

  • Type: string
  • Required: Yes
  • Description: Required. The expression name.

expressionType 

  • Type: ExpressionType (enumeration of type string)
  • Required: No
  • Description: The expression type. Values are:
  • Possible values:
    • handlebars — Reserved for future use
    • sel — Salesforce Expression Language, as used in formula fields

Declarative Metadata Sample Definition 

The following is an example of a GenAiPlanner component.

1<?xml version="1.0" encoding="UTF-8"?>
2<GenAiPlanner xmlns="http://soap.sforce.com/2006/04/metadata">
3    <description>Copilot reasoning engine description</description>
4    <masterLabel>EmployeeCopilotPlanner</masterLabel>
5    <plannerType>AiCopilot__SequentialPlannerIntentClassifier</plannerType>
6</GenAiPlanner>

The following is an example package.xml that references the previous definition.

1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3   <types>
4      <members>*</members>
5      <name>GenAiPlanner</name>
6   </types>
7   <version>60.0</version>
8</Package>

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.