Setting up an Agentforce-enabled scratch org is the most important step for developers who want to experiment with AI features such as Prompt Builder and Einstein GPT. Whether you’re developing the next generation CRM software or experimenting with how generative AI may improve user experience, a scratch org equipped with Agentforce is your playground.
Follow this step-by-step guide to get started; no fluff, just the necessary steps.
Prerequisites
Before jumping into the setup, make sure you’ve completed the following:
1. Create a Developer Edition Org
2. Enable Dev Hub in it
3. Link the Namespace
4. Authorize the Dev Hub Org
Step 1:- Configure Your Scratch Org Definition File.
To set up a scratch org with Agentforce and Prompt Builder turned on, use the sample project-scratch-def.json file below, or just copy the specific features and settings from it into your current scratch org definition file.
Note: To create a scratch org with the Einstein1AIPlatform feature, the scratch org you create can be a Partner Developer, Partner Enterprise, Developer, or Enterprise edition.
Step 2: Create the Scratch Org using Salesforce CLI Commands.
To create a scratch org for 30 days, run this Salesforce CLI command on the Terminal. Update the definition-file name, alias, and target-dev-hub alias as needed.
Step 3: Generate Scratch Org Password.
You have to generate a password for your scratch org.
After running this command, you will get this type of message.
Successfully set the password (password) for user (username)
That’s it! Your Agentforce-enabled scratch org is now ready for action.
Conclusion
Setting up an Agentforce-enabled scratch org allows you to leverage Einstein GPT and Prompt Builder from the start of the development process. Also, a custom Agentforce Agent is imperative to increase the efficiency and effectiveness of your business operations. So, you can easily create a Custom Agentforce Agent. With just a few steps, you can create, test, and deploy smarter Salesforce apps quicker than ever.