Create an Agent with Agentforce DX

Creating an agent using 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.