Create an Agent Without Using Agent Script

This section describes the process of creating agents directly from an agent spec YAML file, rather than creating agents that use Agent Script as their blueprint. We generally don't recommend that you use this workflow anymore to create an agent. Instead, we recommend that you author agents that use the Agent Script language, which is the next-gen way of creating agents. See Author an Agent with Agentforce DX.

Creating an agent directly with Agentforce DX is a two step-process; each step uses a Salesforce CLI command:

  1. agent generate agent-spec: Generate an agent spec file in your Salesforce DX project. An agent spec is a YAML file that contains information about the agent.
  2. agent create: Create the agent in your development org, such as your sandbox. The create command takes the agent spec file as input. The command syncs the metadata back to your DX project.

After running these two commands, the resulting agent is quite basic; it’s more a scaffold of an agent rather than a finished one. As with all software development, you then go through an iterative process to create a complete agent that you can activate for your users. Agentforce DX gets you started on this journey.