You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate an authoring bundle from an agent specification.
3
+
Generate a local authoring bundle from an existing agent spec YAML file.
4
4
5
5
# description
6
6
7
-
Generates an authoring bundle containing Agent and its meta.xml file from an agent specification file.
7
+
Authoring bundles are metadata types that represent the next-gen Salesforce agents. Their exact metadata name is AiAuthoringBundle and they consist of a standard "\*-meta.xml" metadata file and an agent file (with extension ".agent") that fully describes the next-gen agent. Use this command to generate an authoring bundle based on an agent spec YAML file, which you create with the "agent create agent-spec" command.
8
+
9
+
By default, authoring bundles are generated in the force-app/main/default/aiAuthoringBundles/<api-name> directory. Use the --output-dir to generate them elsewhere.
8
10
9
11
# flags.spec.summary
10
12
11
-
Path to the agent specification file.
13
+
Path to the agent spec YAML file.
12
14
13
15
# flags.output-dir.summary
14
16
15
-
Directory where the authoring bundle files will be generated.
17
+
Directory where the authoring bundle files are generated.
16
18
17
19
# flags.name.summary
18
20
19
21
Name (label) of the authoring bundle.
20
22
21
23
# flags.api-name.summary
22
24
23
-
API name of the new authoring bundle; if not specified, the API name is derived from the authoring bundle name (label); the API name must not exist in the org.
25
+
API name of the new authoring bundle; if not specified, the API name is derived from the authoring bundle name (label); the API name can't exist in the org.
24
26
25
27
# flags.api-name.prompt
26
28
27
29
API name of the new authoring bundle
28
30
29
31
# examples
30
32
31
-
- Generate an authoring bundle from a specification file:
Copy file name to clipboardExpand all lines: messages/agent.preview.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,19 @@ When the session concludes, the command asks if you want to save the API respons
12
12
13
13
Find the agent's API name in its Agent Details page of your org's Agentforce Studio UI in Setup. If your agent is currently deactivated, use the "agent activate" CLI command to activate it.
14
14
15
-
IMPORTANT: Before you use this command, you must complete a number of configuration steps in your org and your DX project. The examples in this help assume you've completed the steps. See "Preview an Agent" in the "Agentforce Developer Guide" for complete documentation: https://developer.salesforce.com/docs/einstein/genai/guide/agent-dx-preview.html.
15
+
IMPORTANT: Before you use this command, you must complete a number of configuration steps in your org and your DX project. For example, you must first create the link to a client connected app using the "org login web --client-app" CLI command to then get the value of the --client-app flag of this command. The examples in this help assume you've completed the steps. See "Preview an Agent" in the "Agentforce Developer Guide" for complete documentation: https://developer.salesforce.com/docs/einstein/genai/guide/agent-dx-preview.html.
16
16
17
17
# flags.api-name.summary
18
18
19
19
API name of the agent you want to interact with.
20
20
21
21
# flags.authoring-bundle.summary
22
22
23
-
Preview an ephemeral agent by specifying the API name of the Authoring Bundle metadata
23
+
Preview a next-gen agent by specifying the API name of the authoring bundle metadata component that implements it.
24
24
25
25
# flags.client-app.summary
26
26
27
-
Name of the linked client app to use for the agent connection. You must have previously created this link with "org login web --client-app". Run "org display" to see the available linked client apps.
27
+
Name of the linked client app to use for the agent connection.
Publish an authoring bundle to your org, which results in a new next-gen agent.
4
4
5
5
# description
6
6
7
-
Publishes an Agent Authoring Bundle by compiling the .agent file and creating a new agent in your org.
7
+
When you publish an authoring bundle to your org, a number of things happen. First, this command validates that the agent file (with extension ".agent") successfully compiles. Then the authoring bundle metadata component is deployed to the org, and all associated metadata components, such as the Bot, BotVersion, and GenAiXXX components, are either created or updated. The org then creates a new next-gen agent based on the deployed authoring bundle and associated metadata. Finally, all the metadata associated with the new agent is retrieved back to your local DX project.
8
+
9
+
Authoring bundles are metadata types that represent the next-gen Salesforce agents. Their exact metadata name is AiAuthoringBundle and they consist of a standard "\*-meta.xml" metadata file and an agent file (with extension ".agent") that fully describes the next-gen agent.
10
+
11
+
This command requires the API name of the authoring bundle; if you don't provide it with the --api-name flag, the command prompts you for it.
8
12
9
13
# examples
10
14
11
-
- Publish an Agent Authoring Bundle:
12
-
<%= config.bin %> <%= command.id %> --api-name path/to/bundle --agent-name "My New Agent" --target-org myorg@example.com
15
+
- Publish an authoring bundle with API name MyAuthoringBundle to the org with alias "my-org", resulting in a new agent named "My Fab Agent"::
16
+
17
+
<%= config.bin %> <%= command.id %> --api-name MyAuthoringbundle --agent-name "My Fab Agent" --target-org my-org
13
18
14
19
# flags.api-name.summary
15
20
16
-
API name of the Agent Authoring Bundle to publish.
21
+
API name of the authoring bundle you want to publish.
17
22
18
23
# flags.api-name.prompt
19
24
20
25
API name of the authoring bundle to publish
21
26
22
27
# flags.agent-name.summary
23
28
24
-
Name for the new agent to be created
29
+
Name for the new agent that is created from the published authoring bundle.
25
30
26
31
# error.missingRequiredFlags
27
32
28
-
Required flag(s) missing: %s
33
+
Required flag(s) missing: %s.
29
34
30
35
# error.invalidBundlePath
31
36
32
-
Invalid bundle path. Please provide a valid path to an Agent Authoring Bundle.
37
+
Invalid bundle path. Provide a valid directory path to an authoring bundle.
33
38
34
39
# error.publishFailed
35
40
@@ -42,4 +47,4 @@ Could not find a .bundle-meta.xml file with API name '%s' in the project.
42
47
43
48
# error.agentNotFoundAction
44
49
45
-
Please check that the API name is correct and that the .agent file exists in your project directory.
50
+
Check that the API name is correct and that the .agent file exists in your project directory.
Validate a local authoring bundle to ensure it compiles successfully and can be used to create a next-gen agent.
4
4
5
5
# description
6
6
7
-
Validates an Agent Authoring Bundle by compiling the .agent file and checking for errors.
7
+
Authoring bundles are metadata types that represent the next-gen Salesforce agents. Their exact metadata name is AiAuthoringBundle and they consist of a standard "\*-meta.xml" metadata file and an agent file (with extension ".agent") that fully describes the next-gen agent. Generate a local authoring bundle with the "agent generate authoring-bundle" command.
8
+
9
+
This command validates that the agent file (with extension ".agent") that's part of the authoring bundle compiles without errors and can later be used to successfully create a next-gen agent.
10
+
11
+
This command requires the API name of the authoring bundle; if you don't provide it with the --api-name flag, the command prompts you for it.
0 commit comments