Manifest Defining All Agents

This example manifest file specifies the metadata for all agents, including legacy agents The file also specifies the metadata for all an org’s flows, prompt templates, and Apex classes.

To prevent very large retrievals from large orgs, list specific metadata types rather than using the “*” wildcard.

Note

1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3    <types>
4        <members>*</members>
5    <!-- Top-level representation of an agent. -->
6        <name>Bot</name>
7    </types>
8    <types>
9        <members>*</members>
10    <!-- Top-level representation of an agent version. Recommended if you want to retrieve all versions of the same agent.-->
11        <name>BotVersion</name>
12    </types>
13    <types>
14    <!-- Represents the agent's reasoning engine metadata. Maps subagents to actions.  -->
15        <members>*</members>
16        <name>GenAiPlannerBundle</name>
17    </types>
18    <!-- Contains an Agent Script file and the associated metadata content. Doesn't apply to legacy agents, but you can leave it in.-->
19    <types>
20        <members>*</members>
21        <name>AiAuthoringBundle</name>
22    </types>
23
24    <!-- Represents a subagent-->
25    <types>
26        <members>*</members>
27        <name>GenAiPlugin</name>
28    </types>
29    <!-- Represents an agent action-->
30    <types>
31        <members>*</members>
32        <name>GenAiFunction</name>
33    </types>
34    <!-- Represents prompt templates  that are used by the agent -->
35    <types>
36        <members>*</members>
37        <name>GenAiPromptTemplate</name>
38    </types>
39    <!-- Represents Apex classes that are used by an agent -->
40    <types>
41        <members>*</members>
42        <name>ApexClass</name>
43    </types>
44
45    <!-- Represents Flows that are used by an agent -->
46    <types>
47        <members>*</members>
48        <name>Flow</name>
49    </types>
50    <!-- The version of metadata to extract -->
51    <version>66.0</version>
52</Package>