diff --git a/messages/agent.create.md b/messages/agent.create.md index c3eb956..923002e 100644 --- a/messages/agent.create.md +++ b/messages/agent.create.md @@ -1,25 +1,25 @@ # summary -Create an Agent from an agent spec. +Create an agent in your org from a local agent spec file. # description -Create an Agent from an agent spec. Agent metadata is created in the target org and retrieved to the local project. +To generate an agent spec file, run the "agent generate spec" CLI command, which outputs a JSON file with the list of jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --job-spec flag of this command, along with the name of the new agent. -# flags.job-spec.summary +When this command finishes, your org contains the new agent, which you can then edit in the Agent Builder UI. The new agent already has a list of topics and actions that were automatically created from the list of jobs in the provided agent spec file. This command also retrieves all the metadata files associated with the new agent to your local DX project. -The path to an agent spec file. +To open the new agent in your org's Agent Builder UI, run this command: "sf org open agent --name ". -# flags.job-spec.description +# flags.job-spec.summary -The agent spec file defines job titles and descriptions for the agent and can be created using the `sf agent create spec` command. +Path to an agent spec file. # flags.name.summary -The name of the agent. +API name of the new agent. # examples -- Create an Agent: +- Create an agent called "CustomerSupportAgent" in an org with alias "my-org" using the specified agent spec file: - <%= config.bin %> <%= command.id %> --spec ./agent-spec.json + <%= config.bin %> <%= command.id %> --name CustomerSupportAgent --job-spec ./config/agentSpec.json --target-org my-org diff --git a/messages/agent.generate.spec.md b/messages/agent.generate.spec.md index 91e4867..b5e2442 100644 --- a/messages/agent.generate.spec.md +++ b/messages/agent.generate.spec.md @@ -1,41 +1,49 @@ # summary -Create an Agent spec. +Generate an agent spec, which is the list of jobs that the agent performs. # description -Create an Agent spec, which is a list of job titles and descriptions that the agent performs. +When using Salesforce CLI to create an agent in your org, the first step is to generate the local JSON-formatted agent spec file with this command. + +An agent spec is a list of jobs and descriptions that capture what the agent can do. Use flags such as --role and --company-description to provide details about your company and the role that the agent plays in your company; you can also enter the information interactively if you prefer. When you then execute this command, the large language model (LLM) associated with your org uses the information to generate the list of jobs that the agent most likely performs. We recommend that you provide good details for --role, --company-description, etc, so that the LLM can generate the best and most relevant list of jobs and descriptions. Once generated, you can edit the spec file; for example, you can remove jobs that don't apply to your agent. + +When your agent spec is ready, you then create the agent in your org by specifying the agent spec file to the --job-spec flag of the "agent create" CLI command. # flags.type.summary -The type of agent to create. +Type of agent to create. # flags.role.summary -The role of the agent. +Role of the agent. # flags.company-name.summary -The name of the company. +Name of your company. # flags.company-description.summary -The description of the company, containing details to be used when generating agent job descriptions. +Description of your company. # flags.company-website.summary -The website URL for the company. +Website URL of your company. # flags.output-dir.summary -The location within the project where the agent spec will be written. +Directory where the agent spec file is written; can be an absolute or relative path. # flags.file-name.summary -The name of the file to write the agent spec to. +Name of the generated agent spec file. # examples -- Create an Agent spec in the default location: +- Create an agent spec for your default org in the default location and use flags to specify the agent's role and your company details: + + <%= config.bin %> <%= command.id %> --type customer --role "Assist users in navigating and managing bookings" --company-name "Coral Cloud" --company-description "Resort that manages guests and their reservations and experiences" + +- Create an agent spec by being prompted for role and company details interactively; write the generated file to the "specs" directory and use the org with alias "my-org": - <%= config.bin %> <%= command.id %> --type customer_facing --role Support --company-name "Coral Cloud" --company-description "A meaningful description" + <%= config.bin %> <%= command.id %> --output-dir specs --target-org my-org diff --git a/src/commands/agent/create.ts b/src/commands/agent/create.ts index b050266..847edb6 100644 --- a/src/commands/agent/create.ts +++ b/src/commands/agent/create.ts @@ -34,7 +34,6 @@ export default class AgentCreate extends SfCommand { char: 'f', required: true, summary: messages.getMessage('flags.job-spec.summary'), - description: messages.getMessage('flags.job-spec.description'), }), name: Flags.string({ char: 'n',