Skip to main content
How to deploy Agentforce AI Agent (GenAiPlanner) metadata

A walkthrough on how to deploy Agentforce AI Agent (GenAiPlanner) metadata

Gareth Hefferon avatar
Written by Gareth Hefferon
Updated over a week ago

Gearset's Agentforce metadata deployment solution streamlines the process of deploying AI-powered configurations in Salesforce, including the AI Agent metadata (GenAiPlanner). Agentforce AI Agents engage customers autonomously across channels in natural language.

This guide will explain how to successfully deploy the AI Agent (GenAiPlanner) metadata with Gearset.

Prerequisites

Make sure to use at least API version 60 for the comparison. Read the prerequisite section of the How to deploy GenAi metadata guide to find out how to do this.

The Einstein bot and botVersion associated to the Agent that you want to deploy must exist on the target org β€” otherwise the agent will not be visible.

What metadata is needed in the filter?

You'll need to include Einstein bot, botVersion & GenAiPlanner in your metadata comparison filter.
​

How to deploy GenAiPlanner metadata with Gearset

To deploy the GenAiPlanner metadata type, you need to make sure that all the GenAiFunction and GenAiPlugin dependencies exist on the target environment. If they don't, then you'll need to deploy them alongside the GenAiPlanner for the validation/deployment to be successful.

Note:

If the GenAiPlanner is New then the associated Einstein bot and botVersion will also need to be deployed to the target org otherwise the deployed GenAiPlanner will not be visible on the target org. It's recommended to always deploy any changes to the Einstein bot and botVersion alongside the GenAiPlanner.

Example:

This GenAiPlanner is dependent on the following GenAiFunction:

  • EmployeeCopilot_AnswerQuestionsWithKnowledge

It's also dependent on the following GenAiPlugins:

  • EmployeeCopilot_GeneralCRM

  • SvcCopilotTmpl_OrderInquiries

  • SvcCopilotTmpl_GeneralFAQ

  • Customer_Service_Assistant

If any of these GenAiFunctions or GenAiPlugins aren't already in the org, or being deployed to the org alongsidethe GenAiPlanner, then the validation/deployment will fail.
​
We will be adding more problem analyzers over time to help highlight any missing GenAiFunction or GenAiPlugin dependencies before you validate or deploy your Agentforce agents.

Did this answer your question?