Skip to main content

Tempo stimato

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.

Note

Agentforce is powered by AI, and while it can be a powerful ally, it isn’t perfect. Sometimes it may suggest code or steps that aren’t quite right. Always review the output carefully, apply your own judgment, and test the solution before relying on it.

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.

  1. Sign up for a free Developer Edition with Agentforce Vibes on Trailhead
  2. 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).
  3. After you fill out the form, click Sign me up. A confirmation message appears.
  4. When you receive the activation email (this might take a few minutes), open it and click Verify Account.
  5. Complete your registration by setting your password and challenge question.
  6. 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.
  7. You are logged in to your Developer Edition org.

Now connect your new Developer Edition org to Trailhead.

  1. Make sure you're logged in to your Trailhead account.
  2. In the Challenge section at the bottom of this page, click the playground name and then click Connect Org.
  3. On the login screen, enter the username and password for the Developer Edition you just set up.
  4. On the Allow Access? screen, click Allow.
  5. 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.

  1. In the Verify Step section at the bottom of this page, click the playground name and then click Manage Orgs.
  2. In the Hands-On Orgs page, click Rename next to your newly connected org.
  3. For the Name, enter Agentforce Vibes Org and click Save.
  4. Close the Hands-On Orgs page tab or window and return to the badge page.
  5. 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.

Resources

Condividi il tuo feedback su Trailhead dalla Guida di Salesforce.

Conoscere la tua esperienza su Trailhead è importante per noi. Ora puoi accedere al modulo per l'invio di feedback in qualsiasi momento dal sito della Guida di Salesforce.

Scopri di più Continua a condividere il tuo feedback