Skip to main content
Bring your team and maximize your impact at Dreamforce. Register three or more to unlock $999 passes.

Build and Test Apps with Confidence

Learning Objectives

After completing this unit, you’ll be able to:

  • Explain how AI coding agents accelerate development.
  • Describe how to build apps with multiple frameworks while maintaining governance.
  • Test your solutions with realistic data and automated validation.

Build with AI Coding Agents

With multiple AI-powered development tools available, how do you know which one to use? The answer depends on what you're building and your preferred approach. Here's your guide.

Setup with Agentforce Is Your Configuration Companion

Use it when you need to troubleshoot configuration issues, set up Salesforce features, or find documentation during development.

It’s perfect for admins that manage org setup, adjust permissions, diagnose why features aren’t working, or discover how to configure a new capability.

Sample prompts you can use:

  • “How do I configure external sharing for account records?”
  • “Why can’t I review cases?”
  • “What permissions are needed to create a custom object?”

Setup with Agentforce acts as your Salesforce configuration expert. It helps you manage user access and permissions, creates objects and fields, builds flows, and troubleshoots configuration issues so you can keep building.

Builder Central Is a No-Code Agent and App Builder

Use it when you want to build complete agents, apps, or automations without writing code.

It’s great for admins and business users that create service agents, build automations across Agentforce Sales and Agentforce Service, or design end-to-end workflows visually.

Sample prompts you can use:

  • “Create a service agent that handles product returns and generates return labels.”
  • “Build an automation that escalates high-priority cases to managers.”
  • “Create a flow that updates opportunity stages based on email responses.”

With Builder Central, currently in beta, you describe what you want to build, and it creates the solution using visual tools and AI assistance. Build service agents that handle customer inquiries, create automated workflows that span multiple apps, or design complete apps—all without writing code.

At Northern Trail Outfitters (NTO), admin Sofia uses Builder Central to build a service agent that handles influencer partnership inquiries. She describes the conversation flow, defines the business rules, and specifies when to escalate to a human all through natural language prompts. Builder Central generates the complete agent, including all the necessary actions and logic.

Agentforce Vibes Is a Pro-Code Development Assistant

Use it when you’re coding and want AI assistance to accelerate development, generate components, or refactor existing code.

It’s a great tool for developers and technical admins that build Lightning Web Components (LWC), create React apps, write Apex, generate test data, or convert designs to code.

Sample prompts you can use:

  • “Generate a LWC that displays account revenue trends with drill-down charts.”
  • “Create an Apex trigger that validates email domains before lead conversion.”
  • “Refactor this Apex class to use bulkified queries and follow best practices.”
  • “Generate test data: 100 accounts with varying industries and revenue levels.”

Vibes understands your Salesforce org—your custom objects, fields, validation rules, and business logic. When it generates code, it's tailored to your specific environment and connected to the Einstein Trust Layer. What makes it powerful is out-of-the-box Salesforce skills. These skills provide expert guidance to build, test, debug, and deploy agents, which only load when relevant. Plus, live preview shows changes instantly as Vibes updates your code, which means there’s no longer a need for manual deployment or refreshes.

You're in control of how you use Vibes. Vibes supports multiple models including Claude Sonnet 4.5 (Premium tier) and GPT-5 (Included tier), so you can choose the right balance of capability and cost for your tasks. Flexible billing options let you pay for usage with Flex Credits or set up unmetered access for your development teams so you can adapt to your organization’s needs.

For example, John, the developer at NTO, uses Vibes to generate a custom dashboard component for the influencer app. He describes the layout, specifies data sources, and outlines its behavior. Vibes generates the complete LWC. With live preview enabled, John reviews each change instantly, which dramatically speeds up iteration.

You'll often use multiple tools in the same project. Sofia might configure permissions to use Setup with Agentforce, build core logic in Builder Central, and then hand off to John, who adds in custom React components in Vibes. They're all working on the same solution, just using the tools that fit their skills and tasks.

Build from Your Favorite IDE

If you work in Claude Code, the Salesforce Development Claude Code Plugin brings full Salesforce platform context directly into your environment. It gives Claude complete understanding of your Salesforce org—your objects, fields, permissions, and governance rules—so it can help you build with full platform context.

Here's what it offers.

  • Prebuilt Salesforce skills: The plugin includes curated expertise that helps Claude scaffold components, write platform-specific code, and validate against governance policies. Claude selects the right skill for each task automatically.
  • Automatic connection: The plugin connects to Salesforce hosted services, so your org's security model and permissions apply automatically. No manual configuration needed.
  • Full platform context: When Claude generates code in your IDE, it understands your specific org just like Agentforce Vibes does in VS Code.

For example, when John needs to work in Claude Code for a complex integration, he installs the plugin with one command. Claude immediately understands the NTO org structure and can scaffold components, validate against governance, and generate code that respects security rules.

Whether you use Agentforce Vibes, the Claude Code Plugin, or any of Salesforce's AI-powered development tools, you get assistance grounded in your org’s context and governance model.

Build Across Frameworks

For years, building on Salesforce meant learning LWC and Apex. These remain powerful options, but they're no longer your only choices. Salesforce Multi-Framework now enables you to use the development libraries and components you already prefer.

Salesforce Multi-Framework Development

With Salesforce Multi-Framework, you build apps using industry-standard frameworks such as React while staying within the secure, governed Salesforce environment.

Why does this matter?

  • Onboard faster: Developers with React or JavaScript skills can contribute immediately without extensive, platform-specific training.
  • Reuse existing code: Bring in existing open-source libraries and components.
  • Ship features faster: With no proprietary framework to learn, you become productive more quickly.
  • Stay secure: Your app respects your org's security and governance rules automatically with the Einstein Trust Layer.

Whether you build with visual tools such as Flow Builder, LWC, or React, everything integrates seamlessly into a unified solution.

How Metadata Grounding Works

With admins using visual tools, developers writing React, and AI agents generating code, how does this app development cycle avoid chaos? The answer is metadata grounding. Metadata grounding means that your organization connects AI-generated code and applications to your Salesforce org’s actual structure and rules. Think of it as giving AI a complete understanding of your Salesforce environment—what objects exist, which fields are available, who has permission to review what, and which validation rules apply.

The Salesforce Catalog understands your entire org’s context, from objects and fields to permissions and validation rules. When an AI agent or framework accesses your data, it’s automatically grounded in this context. It respects field-level security. It follows your business rules. This is how you move quickly without breaking things.

And if you want to see how your metadata is structured, the Metadata Visualizer Extension for VS Code turns complex metadata into real-time diagrams. Instead of manually parsing metadata files, you can visualize objects, fields, and relationships through interactive entity-relationship diagrams. It works with metadata you generate using Agentforce Vibes or from your SFDX project. This helps you understand complex configurations, validate your designs, and communicate structure to your team more effectively. This extension requires VS Code with the Salesforce Extensions pack installed.

Test Your Code with Confidence

Building fast is great, but shipping broken code is a disaster. Testing isn’t optional.

How Agentforce Vibes Helps You Test

Generate Realistic Test Data

Need sample data that mirrors real-world scenarios? Agentforce Vibes can generate test data based on your org's schema. Instead of manually creating dozens of records, describe what you need. “Generate 50 account records with varying industry types and revenue levels.” With prompts like this, Vibes creates the data and saves you hours of manual work.

Write Test Cases Automatically

Writing test cases for your Apex classes used to be tedious. With Vibes, you can generate comprehensive test cases automatically. It understands your code's logic and creates tests that cover various scenarios, including edge cases you might have missed. This ensures your code is thoroughly validated before deployment.

Test in Safe Environments

When Vibes generates code, verify it works in a sandbox, an isolated copy of your Salesforce environment. Developer Sandboxes are perfect for quick iterations, while Full Copy Sandboxes mirror production for final validation. Use Data Mask & Seed to populate sandboxes with realistic data that behaves like real customer records without exposing sensitive information.

How Builder Central, Vibes, and Sandboxes Work Together

Agentic Salesforce development combines speed and safety. AI coding agents accelerate development by handling configuration, generating solutions, and writing code. Multi-Framework support lets developers work with familiar tools. Continuous testing catches issues early.

For example, NTO builds their influencer tracking app using a complete toolkit.

  • Sofia uses Setup with Agentforce to troubleshoot permission issues during development.
  • She builds the core service agent logic in Builder Central using natural language.
  • John uses Agentforce Vibes to generate custom React components for the dashboard.
  • They visualize the metadata structure with Metadata Visualizer Extension.
  • Agentforce Vibes generates test data and tests cases automatically.
  • They test continuously in sandboxes with realistic data from Data Mask & Seed.

The result? They shipped in days instead of months, with higher quality and better security than previous projects.

Teams using this approach consistently deliver features faster while maintaining quality. In the next unit, you learn how to deploy apps across multiple channels and monitor their performance.

Resources

在 Salesforce 帮助中分享 Trailhead 反馈

我们很想听听您使用 Trailhead 的经验——您现在可以随时从 Salesforce 帮助网站访问新的反馈表单。

了解更多 继续分享反馈