Skip to main content
How to deploy Agentforce (GenAi) metadata types

A walkthrough on how to deploy Agentforce (GenAi) metadata types, such as Prompt Template, Agent Action, Topic and AI Agent.

Gareth Hefferon avatar
Written by Gareth Hefferon
Updated over 3 weeks ago

Agentforce metadata overview

Gearset’s Agentforce metadata deployment solution streamlines the process of deploying AI-powered configurations within Salesforce.

Agentforce is an AI-powered suite of virtual agents that make life easier for all teams using and building on Salesforce.

This guide will explain how you can successfully deploy these GenAi metadata types using Gearset:

License requirements

Please, ensure that you have the necessary permission set licenses to retrieve Agentforce metadata types.

The required licenses include:

  • Agentforce (Default)

  • Agentforce Service Agent Builder

  • Einstein Prompt Templates

  • Prompt Template Manager

Supported metadata types

This table shows the Agentforce metadata types that Gearset supports.

Note: the metadata names in Salesforce differ slightly to the naming convention used in Gearset.

For easy comparisons and deployments, Agentforce metadata types are a part of our Default Agentforce comparison metadata filter.

Salesforce metadata type

Agentforce term

Gearset metadata filter term

Gearset's how to deploy guides

Prompt Template

Prompt template

Agent Action

Agent action

Topic

Agent topic

AI Agent

Agent

Prerequisites

The Agentforce (GenAi) metadata types were introduced in the Salesforce metadata API version 60.

This means that when running a comparison in Gearset you must use the API version 60 or higher for these GenAi metadata types to be retrieved in the comparison.

The default comparison API version for most customers is Default (highest common version) which will take the version from your SFDX project JSON file from both source and target and will use the lower of the two.

If you're using a VCS branch as the source or target then updating your SFDX project JSON file in your VCS branch to use at least API version 60 (or higher) will allow the comparison without manually changing the API version on your filter.

{
"packageDirectories": [
{
"path": "force-app",
"default": true
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "60.0"
}


You can manually change the API version by editing your filter settings.

Read this article for guidelines on how to amend the API version for either manual source > target comparisons via Compare & Deploy, or in your CI jobs:

Did this answer your question?