Agentforce DX for Visual Studio CodeAgentforce DX is a suite of tools to build, preview, and test agents. This extension provides integrated VS Code commands to easily open an agent in your org's Agent Builder UI, run the tests associated with an agent in the Agent Testing Panel, and have a preview conversation with an active agent. Prerequisites
How to Use this ExtensionHere are the high-level features of this extension.
Test AgentsRun agent tests by viewing them in the Agent Testing Panel. Click on either a test definition or test case to get more information about it. Preview An Agent and Debug the ConversationPreview an agent by chatting with it to to see how it responds to your statements, questions, and commands (also known as utterances). These conversation previews serve as interactive tests to make sure the agent behaves as expected. If an agent action that's implemented with an Apex class doesn't seem to be working correctly, you can chat in Debug Mode, which enables easy integration with the Apex Replay Debugger. Here's an overview of the steps.
Open an Agent in Agent Builder and Easily (De)Activate ItOpen an agent in the Agent Builder UI of your org by running the SFDX: Open Agent in Default Org command from the command palette. You can also run the same command by right-clicking any of these metadata components in your DX project package directory:
Similarly, activate or deactivate an agent in your org by running the SFDX: Activate Agent or SFDX: Deactivate Agent commands from the command palette or by right-clicking the agent's metadata files. DocumentationFor details about the features in this VS Code extension, and generally more information about Agentforce DX, see the Build Agents with Agentforce DX section of the Agentforce Developer Guide. Bugs and FeedbackTo report issues with this Agentforce DX extension, open a bug on GitHub. To suggest a new feature, start a GitHub discussion. |