Create Your Development Environment
Learning Objectives
In this project, you’ll:
- Use Agentforce to repair an Apex controller to meet a requirement.
- Use Agentforce to update a Lightning Web Component (LWC) to consume the repaired Apex method and display results.
Agentforce Vibes: Chat with Agentforce
Meet Agentforce Vibes, your AI-powered extension for Visual Studio Code and Agentforce Vibes IDE (a web-based IDE formerly known as Code Builder). With it, you can generate Apex from natural language, get inline code suggestions in Apex and Lightning Web Components (LWC), and quickly spin up unit tests to hit coverage goals.
Boost your productivity with Agentforce developer tools for code generation and documentation help, inline autocomplete to speed up development, and test case generation to get your code deployment-ready faster. Whether you’re starting with a fresh project or refining complex logic, it makes building on Salesforce easier and smarter.
In this project, you use Agentforce, your intelligent development partner, to help improve Apex code in your org. After that, you take it a step further by updating a Lightning Web Component to align its syntax with current best practices. Along the way, you see how this agentic chat and tool execution streamline development—so you can focus more on building features and less on managing overhead.
Sign Up for a Developer Edition Org with Agentforce Vibes
To complete this project, you need a special Developer Edition org that contains a web-based IDE and our sample app.
Get the free Developer Edition and connect it to Trailhead now so you can complete the challenges in this project. Note that this Developer Edition is designed to work with the challenges in this badge, and may not work for other badges.
Always check that you’re using the Trailhead Playground or special Developer Edition org that we recommend.
- Sign up for a free Developer Edition with Agentforce Vibes on Trailhead
- Fill out the form.
- For Email, enter an active email address.
- For Username, enter a username that looks like an email address and is unique, but it doesn't need to be a valid email account (for example, yourname@example.com).
- For Email, enter an active email address.
- After you fill out the form, click Sign me up. A confirmation message appears.
- When you receive the activation email (this might take a few minutes), open it and click Verify Account.
- Complete your registration by setting your password and challenge question.
- Save your username and password in a secure place, such as a password manager, for easy access later.
- You need these credentials when connecting the IDE to your playground.
- You need these credentials when connecting the IDE to your playground.
- You are logged in to your Developer Edition org.
Now connect your new Developer Edition org to Trailhead.
- Make sure you're logged in to your Trailhead account.
- In the Challenge section at the bottom of this page, click the playground name and then click Connect Org.
- On the login screen, enter the username and password for the Developer Edition you just set up.
- On the Allow Access? screen, click Allow.
- On the Want to connect this org for hands-on challenges? screen, click Yes! Save it. You are redirected back to the challenge page and ready to use your new Developer Edition to earn this badge.
It’s a good idea to rename this org to remind your future self not to use it to complete any other badges. Although this step is optional, we highly recommend it.
- In the Verify Step section at the bottom of this page, click the playground name and then click Manage Orgs.
- In the Hands-On Orgs page, click Rename next to your newly connected org.
- For the Name, enter
Agentforce Vibes Org
and click Save. - Close the Hands-On Orgs page tab or window and return to the badge page.
- Ensure the Agentforce Vibes Org is selected (you might need to refresh the page for the name to update), and click X to close the Choose a hands-on org popup window.