GenAiPlannerBundle defines the planner for an agent or agent template. It contains the topics and actions used to interact with a large language model (LLM), along with the planning strategy, action attribute mappings, and rules that control topic and action availability. Agents must be enabled in the org. If the planner belongs to an agent template, botTemplate identifies that template.
Use this type to retrieve topics and actions created within an agent. Global topics and actions, including those created in the Asset Library, use GenAiPlugin and GenAiFunction instead. An action contained in an agent's planner bundle is not necessarily a separate global GenAiFunction component.
Key Elements
| Element | What the Element Controls |
|---|---|
masterLabel |
Required label for the planner. |
botTemplate |
Identifies the associated agent template when the planner belongs to a template rather than an agent. |
plannerType |
Required problem-solving instructions for the LLM. Documented supported strategies are AiCopilot__ReAct, AiCopilot__AgileAppDev, and Atlas__ConcurrentMultiAgentOrchestration. |
genAiFunctions |
At planner level, defines actions that are not contained in a topic, such as a knowledge action. |
genAiPlugins |
Defines the planner's topics. Entries can identify a topic through genAiPluginName or contain customized topic definitions through genAiCustomizedPlugin. |
localTopics |
Contains local topic definitions, including nested localActions, instructions, utterances, and action links. |
plannerActions |
Contains planner-level action definitions using the same action structure exposed under local topics. |
attributeMappings |
Propagates values between action attributes and variables or other targets. It does not itself lock or unlock a topic. |
ruleExpressions |
Defines security criteria that conditionally lock or unlock topics and actions. |
ruleExpressionAssignments |
Connects a named rule to its target. targetType accepts Function, Plugin, or PluginFunction. |
invocationTarget, invocationTargetType
|
Required fields on local action definitions that identify the underlying implementation. Invocation types include apex, flow, generatePromptResponse, retriever, api, and mcpTool. |
mappingAttributes |
Maps a local action's planner attribute name to an invocation parameterName. parameterType is input or output. |
isConfirmationRequired |
Records whether confirmation is required for an action. |
plannerSurfaces |
Contains channel-specific settings, including call recording and outbound routes. Surface types include Messaging, Slack, Telephony, and ServiceEmail. |
voiceDefinition |
Contains speech-recognition and speech-synthesis configuration, including model-record associations and the voice language. |
Behavior and Constraints
Data mappings and availability rules do different jobs
attributeMappings lets action values flow between attributes and variables without relying on untrusted user input. Each mapping requires attributeName, documented in the format Namespace.TopicName.ActionName.AttributeName, along with attributeType and mappingType.
attributeType distinguishes these cases:
-
CustomPluginFunctionAttribute: a custom action input or output. -
StandardPluginFunctionInput: a standard action input. -
StandardPluginFunctionOutput: a standard action output mapped to a variable.
mappingType accepts ActionAttribute, Constant, Variable, or ContextVariable. mappingTargetName identifies the target. Although Constant is an exposed value, constantValue is reserved for future use; these fields do not establish usable constant-value configuration.
Availability rules require both a definition and an assignment. A rule in ruleExpressions has required expressionName and expressionLabel values. Its conditions evaluate a leftOperand whose leftOperandType is Variable, ContextVariable, or Attribute. The documented operator values are equal, greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual, notEqual, isEmpty, and isNotEmpty. rightOperandValue supplies the right-hand value where applicable.
expression combines the conditions. expressionType supports sel, Salesforce Expression Language as used in formula fields. The exposed handlebars value is reserved for future use.
In ruleExpressionAssignments, ruleExpressionName connects to the rule's expressionName. All three assignment fields are required:
-
ruleExpressionName: the rule to apply. -
targetName: the target, documented asNamespace.TopicName.ActionNameorTopicName, as applicable. -
targetType:Functionfor a knowledge action,Pluginfor a topic, orPluginFunctionfor an action within a topic. This field is a string with documented allowed values.
For example, a verification design can map an action's verified customer identifier into a variable, supply that variable to later action inputs, and assign a verification-flag rule to protected topics. The mappings move the identifier; they do not define the topic gate. The rule defines the gate; without an assignment, it does not identify the topic or action to govern.
These connections depend on names. Renaming a topic, action, attribute, variable, or expression can affect mappings and rule assignments that use the old name.
The planner strategy changes the LLM's instructions
plannerType is not just a classification label. It supplies a particular approach to solving problems:
-
AiCopilot__ReActgenerates the next step from the current event and context without planning more than one step ahead. -
AiCopilot__AgileAppDevuses iterative application-development reasoning, emphasizing modular, testable components and refinement through feedback. -
Atlas__ConcurrentMultiAgentOrchestrationsupports concurrent planning and execution across text and voice interactions, including parallel tool calls and coordination across sub-agents.
The exposed enumeration also contains AiCopilot__SequentialPlannerIntentClassifier, Atlas__VoiceAgent, BYOP__waiiplanner, and SentOS__SearchAgent. These are outside the documented supported-strategy list above. Enumeration membership alone does not establish their availability or behavior.
Topics, contained definitions, and action execution
Planner-level genAiFunctions and genAiPlugins share a definition structure. That structure can identify an action through genAiFunctionName, a topic through genAiPluginName, or customized topics through genAiCustomizedPlugin. The shared structure does not make topics and actions interchangeable.
Within genAiCustomizedPlugin, the GenAiLocalPlugin definition contains topic actions, instructions, and utterances. aiPluginUtterances helps select a topic at runtime. scope describes the topic's specific job, while genAiPluginInstructions supplies its instructions. An instruction's sortOrder determines instruction execution order.
A customized topic requires description, language, masterLabel, name, and pluginType. Its name must be unique across all custom and customized topics in the org, begin with a letter, contain only alphanumeric characters and underscores, and have neither trailing nor consecutive underscores. pluginType accepts Topic or APICustomTopic. canEscalate marks whether the topic is applicable for escalation to a rep.
Utterances and topic instructions are contained definitions, not independently deployed components. Utterances require developerName, language, masterLabel, and utterance. Instructions require description, developerName, language, and masterLabel.
The bundle also exposes localTopics with nested localActions, planner-level plannerActions, and localTopicLinks and localActionLinks structures. Changing an action's invocationTarget or invocationTargetType can change the implementation invoked without changing the topic's wording.
Action-level mappingAttributes connects planner attribute names to invocation parameter names and identifies input versus output parameters. This is separate from planner-level attributeMappings, which propagates values between action attributes and variables.
Channel and voice settings have their own scope
plannerSurfaces holds channel-specific configuration. Fields such as callRecordingAllowed belong to surface entries, not individual topics. Nested outboundRouteConfigs exposes OmniChannelFlow as an outboundRouteType. That outbound route configuration is separate from a topic's canEscalate eligibility flag.
In voiceDefinition, inboundModel identifies the speech-to-text model and outboundModel identifies the text-to-speech model. Both refer to deployed MktMLAIModel records, not metadata component developer names. languageCode uses a BCP 47 language code, the standard format for language identifiers.
Deployment and Retrieval
GenAiPlannerBundle components use the .genAiPlannerBundle suffix and are stored in a subfolder for the agent within genAiPlannerBundles. The type supports * in the members entry of a package.xml manifest. The Salesforce type reference describes the component format and manifest support.
Retrieve agent-created topics and actions through GenAiPlannerBundle. Use GenAiPlugin and GenAiFunction for global or Asset Library topics and actions. Do not assume that retrieving global action components retrieves an agent's contained local actions.
Keep deployed agent versions aligned: each included BotVersion needs its corresponding planner bundle. If the deployment includes only one desired agent version, scope both the bot versions and planner bundles to that version. The reported PlannerId failure concerns the linkage on the BotVersion side, not a missing field to add to this bundle.
For change sets, distinguish a contained local definition from a separately referenced global component. A reported upload failure was resolved by removing a local topic or action that had also been added separately as GenAiPlugin or GenAiFunction. This is not a reason to exclude every global or Asset Library component referenced by a planner.
For Agent Script-backed agents, distinguish the installed execution plan from the authoring source used by Agentforce Studio. A reported org-dependent unlocked-package workflow required a separate Metadata API deployment of AiAuthoringBundle to restore Studio visibility. Feature enablement can also block bundle processing before any component is deployed, as described below.
Relationships
The planner connects named topics and actions, contains supporting utterance and instruction definitions, and participates in an agent's version-specific deployment. A contained definition is not automatically a separate deployment dependency.
References
-
GenAiFunction: action-name references throughgenAiFunctionNameand nestedfunctionName. Local actions can instead be contained in the bundle. -
GenAiPlugin: topic-name references throughgenAiPluginName. Customized topics can instead appear undergenAiCustomizedPlugin. -
AiPluginUtteranceDef: contained definitions throughaiPluginUtterances. -
GenAiPluginInstructionDef: contained definitions throughgenAiPluginInstructions.
Referenced By
-
BotVersion: the reportedPlannerIdlinkage identifies the matching planner for an agent version. This is a BotVersion-side linkage, not an element to add toGenAiPlannerBundle.
Other associations: Bot participates in the agent deployment alongside its versions and planners. AiAuthoringBundle is the reported authoring counterpart for Agent Script-backed agents. AgentPlatformSettings and EinsteinGptSettings control feature enablement implicated in a reported deployment failure. These are deployment and authoring associations, not additional planner reference elements. The voice-model connections to MktMLAIModel are record associations rather than metadata-name references.
Reported Issues
-
A deployment can report "Required fields are missing: [PlannerId]" even when the BotVersion metadata contains the linkage. A November 2025 report traced this to deploying bot versions without all their corresponding
GenAiPlannerBundleversions. Including matching bundles for every deployed version, or reducing both sets to the desired version, resolved the reported condition. The same discussion reports that change-set users must add theBot, choose "View/Add Dependencies", and select its bot versions rather than addingBotVersiondirectly as a change-set type. Planner version mismatch report. -
Duplicate local definitions can prevent a change set from uploading with a generic internal server error. A November 2025 report attributed the failure to including a local topic or action separately as
GenAiPluginorGenAiFunctionwhen the same local definition was already contained in the planner bundle. Removing the duplicate resolved the failure. The report concerns duplicate local definitions, not all separately referenced global components. Duplicate local definition report. -
A CMS-workspace error can indicate disabled agent features rather than a CMS dependency. In September 2026, a deployment and package installation containing Agent Script content failed before processing any components with "Your org doesn't have access to this type of CMS workspace." The target had
AgentPlatformSettings.enableAgentPlatformset to false; enabling it removed the error. A scratch-org reproduction also requiredEinsteinGptSettings.enableEinsteinGptPlatform. The reporter deployed the settings before installation or metadata deployment, found that the source org shape had not carried those settings, and reported that assigning permission set licenses did not fix the condition. No CMS workspace component was being deployed. Agent Script feature-enablement report. -
An installed, active agent can be absent from Agentforce Studio's agent list. A September 2026 report reproduced this after installing an org-dependent unlocked package containing
Bot,BotVersion, andGenAiPlannerBundle. Classic Setup showed the agent as active. For Agent Script-backed agents, the report distinguished the planner's execution plan, generated at commit time, from theAiAuthoringBundleauthoring source. Separately deploying the authoring bundle through Metadata API restored Studio visibility, including for an Inactive/Draft version. The reporter also encountered rejection ofAiAuthoringBundlein first- and second-generation packaging, leading to that separate deployment. This was an authoring-visibility problem, not proof that the installed planner was missing or inactive. Studio visibility and authoring bundle report. -
Retrieving global action metadata may not return the actions created within an agent. In a March 2026 discussion, a user received "No components retrieved" after adding
GenAiFunctionto a retrieval manifest. A respondent reported successful retrieval and deployment of the agent's topics and actions usingGenAiPlannerBundle, consistent with the distinction between agent-local content and global components. Agent-local action retrieval discussion.
Common Questions
How do I retrieve topics and actions created inside an agent?
Retrieve GenAiPlannerBundle. Use GenAiPlugin and GenAiFunction for global topics and actions, including Asset Library content. Local actions are not necessarily separate global components.
Why does deploying my agent say PlannerId is missing?
A reported cause is a mismatch between the included BotVersion versions and planner bundles. Include the corresponding bundle for every deployed bot version, or narrow both sets to the desired version. Do not add PlannerId to the planner bundle.
Do attribute mappings restrict access to topics?
No. attributeMappings propagates values. ruleExpressions defines availability criteria, and ruleExpressionAssignments connects each rule to the topic or action it governs.
Why does an Agent Script deployment mention a CMS workspace?
A reported case was caused by disabled AgentPlatformSettings.enableAgentPlatform. The scratch-org reproduction also required EinsteinGptSettings.enableEinsteinGptPlatform. Permission set license assignments did not resolve that reported condition.
Why is my packaged agent active in Setup but missing from Agentforce Studio?
A reported Agent Script-backed deployment had the runtime components but lacked the authoring counterpart needed for Studio visibility. Separately deploying AiAuthoringBundle through Metadata API restored the agent's appearance in Studio.