Sub topic 2
Getting a Developer Edition org with Agentforce
This chapter covers how to get a Developer Edition org that includes Agentforce, how to log in to it, and how to confirm it is the right kind of org before you build anything.
It assumes you know what an org is, can move around Setup in Lightning Experience, and have an email address you can read. The optional CLI steps assume the Salesforce CLI (sf) is installed. The previous chapter described the parts of Agentforce. This one gets you an environment to put them in.
Why a special Developer Edition org
Salesforce has several free or low-cost org types, and they are not interchangeable for Agentforce work.
| Org type | Lifetime | Agentforce | Typical use |
|---|---|---|---|
| Developer Edition (Agentforce sign-up) | Long-lived while you keep using it | Included and ready to enable | Learning, prototypes, demos |
| Classic Developer Edition sign-up | Long-lived while you keep using it | Often not provisioned | General Apex and Lightning practice |
| Trial org | Fixed period, then expires | Depends on the trial | Evaluating a product |
| Scratch org | Up to 30 days | Needs a definition file with features | Source-driven development |
| Sandbox | Tied to a production org | Depends on the parent org's licenses | Testing changes before production |
An older Developer Edition org you already have may not include the Agentforce and Data Cloud licenses. Adding them later is not something you can do yourself. The simplest path is to sign up for a new org through the sign-up form that is specific to Agentforce.
What the sign-up gives you
The Agentforce sign-up creates an org with these features:
- Generative AI and Agentforce features that you still have to switch on in Setup.
- A Data Cloud provisioning option, which a later chapter covers.
- Access to Agentforce Builder and Prompt Builder after you assign the right permission sets.
- A System Administrator user, which is the account you sign up with.
Nothing is switched on automatically. After sign-up you have an org that is capable of running agents, but no agent exists and the features are still off. The next chapter turns them on.
Step 1: Fill in the sign-up form
Find the Developer Edition sign-up page from developer.salesforce.com. Choose the option that mentions Agentforce rather than the generic Developer Edition form. The form asks for these fields:
- First name, last name, and email. Salesforce sends the verification message to this address, so use one you can open right now.
- Role, company, and country. These are free text or pick lists and do not have to describe a real employer. The country matters a little because feature availability can differ by region.
- Postal code. Required for some countries.
- Username. This must look like an email address and must be unique across all of Salesforce. It does not have to be a working mailbox.
The username is the field that causes most sign-up failures. Salesforce rejects any username that already exists in any org, so a common one such as [email protected] will almost certainly fail. A reliable pattern is your name plus something descriptive and a year:
[email protected]You will type this username every time you log in. It is also a convenient identity for the CLI, so pick something you can remember.
Step 2: Verify and set a password
After you submit the form, Salesforce sends a message with a verification link. The message can take a few minutes, and sometimes it lands in a spam folder.
- Open the message and select Verify Account.
- Enter a new password and a security question answer.
- Salesforce signs you in and opens Lightning Experience.
Note the URL in the browser's address bar after you sign in. It has the form https://<name>.my.salesforce.com or https://<name>.lightning.force.com. The <name> portion is your My Domain. This is the address you will use to log in later and the value the CLI can use as an instance URL. Bookmark it.
Step 3: Confirm the org is what you expect
Do not assume the org is ready. Spend two minutes checking before you build on it.
- Select the gear icon, then Setup.
- In Quick Find, type
Company Information. Confirm that the edition reads Developer Edition and note the Instance and Org ID. You will need the org ID if you ever contact Salesforce Support. - In Quick Find, type
Agentforce. You should see entries such as Agentforce Agents or Agentforce Studio, depending on the release. - In Quick Find, type
Einstein Setup, or look for the generative AI settings. The page should load without an error saying the feature is unavailable. - In Quick Find, type
Data Cloud. Entries such as Data Cloud Setup Home indicate that Data Cloud licensing is present.
Menu names change between Salesforce releases, so treat these labels as hints. What matters is that the Agentforce and Data Cloud pages exist. If the Agentforce search returns nothing at all, you are most likely in an org created from a generic sign-up form. Sign up again with the Agentforce form and use a different username.
Step 4: Log in with the Salesforce CLI (optional)
The CLI is not needed to create an agent in the builder. It is needed when you deploy Apex, such as the custom action in a later chapter. Authorize the org once, and give it an alias so you do not have to type the username each time.
sf org login web --alias agentforce-devThis opens a browser. Sign in with the Developer Edition username and password, then approve the CLI. When it finishes, the terminal prints the username it authorized.
Check that the CLI stored the org:
sf org list
sf org display --target-org agentforce-devThe display command prints the org ID, username, and instance URL. Compare the org ID with the value in Company Information. If they match, the CLI is pointing at the correct org.
Later you will deploy local source, for example an Apex class under force-app, from inside a Salesforce DX project folder:
sf project deploy start --source-dir force-app --target-org agentforce-devThat command only works in a folder that contains an sfdx-project.json file. If you do not have a project yet, create one with sf project generate --name agentforce-project. You do not need to deploy anything at this stage. The point now is that the alias exists and resolves to the right org.
Common sign-up problems
| Symptom | Likely cause | Fix |
|---|---|---|
| "Username already in use" | Another org uses it | Add a distinctive word and the year to the username |
| No verification email | Spam filter, typo in email, or delay | Check spam, wait a few minutes, then sign up again with a correct address |
| Verification link says it has expired | Link opened too late | Use **Forgot Your Password** on the login page with your username |
| `sf org login web` fails to open a browser | Headless terminal or remote shell | Run `sf org login web --alias agentforce-dev --no-prompt` with a local browser, or use `sf org login device` where available |
| Login works in the browser but the CLI picks the wrong org | Several orgs authorized, no default set | Run `sf org list`, then pass `--target-org` explicitly |
| Agentforce missing in Setup | Org came from the generic form | Sign up again using the Agentforce form |
Keeping the org alive
Developer Edition orgs are free, but Salesforce can delete them after a long period without logins. The exact period can change, so check the current policy in Salesforce documentation. Log in occasionally, and keep any important source in version control instead of only in the org. If an org is deleted, the quickest recovery is a new sign-up and a redeploy from your project.
What you have now
You have a Developer Edition org with Agentforce capabilities, a verified login, and optionally a CLI alias that points at the org. Agentforce is still off. The next chapter enables it in Setup.
Exercise
You sign up through the generic Developer Edition form and later find no Agentforce entries when you search Setup. What is the most likely cause, and what should you do?
Show answer
The org was provisioned without Agentforce and Data Cloud licenses, because the generic form does not include them. Sign up again using the Agentforce-specific Developer Edition form, with a new unique username, and repeat the Setup checks.
Exercise
You ran sf org login web --alias agentforce-dev. Which command shows the org ID the alias points at, and what do you compare it with to be sure the CLI is using the org you just created?
Show answer
Run sf org display --target-org agentforce-dev. Compare the org ID it prints with the Org ID shown in Setup under Company Information.