Agentforce Metadata Types (v68 and Later)

To manage agents, agent actions, and subagents, use the Metadata API.

Agent metadata changed in v68. To learn more, see Move an Agent to a New Org.

Agent metadata hierarchy

  • AiAuthoringBundle: Represents an AI authoring bundle, which contains the blueprint of an agent. For example, an AI authoring bundle for an Agentforce agent contains:
    • An Agent Script file, stored in <bundle-api-name>.agent
    • A Metadata API XML file, stored in <bundle-api-name>.bundle-meta.xml
  • AiAgentDefinition: Represents the definition of an Agentforce agent, including its type, context variables, and conversation settings.
  • AiAgentDefinitionVersion: Represents a version of an Agentforce agent definition, including its dialogs, conversation variables, planner configuration, and behavior settings.
  • GenAiFunction: Represents an action that you can add to agents.
  • GenAiPlugin: Represents an agent’s subagent.

In v68 and later releases, these metadata types are no longer used to represent Agentforce agents: