Agentforce Development Lifecycle: Before vs After

Table of Content

Author

Sonali Chauhan
Sonali Chauhan

Date

Sonali Chauhan
Nov 30, 2026

Agentforce Development Lifecycle: Before vs After

Building an Agentforce agent once meant configuring topics, writing instructions, testing a few conversations, and hitting activate. That is no longer how Salesforce approaches agent development.

Since the week of July 13, 2026, every new agent starts in the new Agentforce Builder and is defined in Agent Script. But the change goes well beyond the builder itself.

Agents now live in source control, undergo batch testing, move through deployment pipelines, and are continuously refined using production session traces.

So, what does this mean for teams building, deploying, and managing Agentforce agents?

In this blog, we break down how the Agentforce development lifecycle has evolved across each phase and what this shift means for teams managing legacy agents.

The Short Answer: Agents Moved From Prompt Configuration to Versioned Code

The old Agentforce development lifecycle was UI-only. An admin configured topics and natural-language instructions in Setup, previewed a conversation, and activated the agent.

The new lifecycle treats an agent as source code. Its behaviour is now:

  • Defined in an Agent Script file.
  • Built in Agentforce Builder or VS Code.
  • Tested in batches.
  • Deployed through a pipeline.
  • Tuned using production traces.

‍

Salesforce formalises this as the Agent Development Lifecycle (ADLC). The Salesforce Architects guide describes five phases:

  1. Ideation and Design
  1. Development
  1. Testing and Validation
  1. Deployment
  1. Monitoring and Tuning

‍

Development and testing form an inner loop, while monitoring and tuning after go-live form an outer loop that feeds changes back into the agent.

The guide positions the ADLC as an extension of Application Lifecycle Management (ALM). Your existing release discipline still applies. However, since agent inputs are free-form language, testing, data, and post-launch tuning carry more weight than they do in a standard SDLC.

‍

New Agentforce Lifecycle

Unlike the legacy flow, which ran in a straight line from configuration to activation, the ADLC introduces batch testing, a source-controlled pipeline, and a continuous feedback mechanism.

Through the outer loop, teams inspect session trace data captured in Data 360 to observe, monitor, and troubleshoot agent behaviour and feed updates back into authoring.

Before vs After at a Glance

Lifecycle areaBefore: legacy Agentforce BuilderAfter: new Agentforce Builder with Agent Script
Where you buildSetup UI only, across several tabs, with admin-level permissionsAgentforce Studio (Canvas view or Script view), VS Code, Salesforce CLI, and AI coding tools
How behaviour is definedTopic instructions and action descriptions written in natural languageAn Agent Script file that mixes deterministic logic with LLM reasoning
Reasoning controlThe LLM interprets prompts to decide every stepFixed rules handle steps that must always happen; the LLM handles the rest
TestingConversation preview and basic diagnosticsTests tab in Agentforce Studio: batch tests, scorers, and multi-turn and voice simulation
DebuggingPreview transcripts without span-level detailPer-message reasoning summaries and detailed session traces
DeploymentMetadata moved between orgs, then activatedVersioned authoring bundles in Git, promoted through CI/CD, then activated
Multi-agent setupsNo agent-to-agent orchestrationA Superagent that routes requests to Connected Subagents, each a separate agent with its own subagents and actions
Model choiceOne model for the agentLLM selectable per subagent
Future featuresNone plannedAll new Agentforce features ship here first

The rest of this post walks through each lifecycle phase and what changed in it.

Design Now Starts With Utterances and Success Metrics

In the legacy builder, the natural first step was to open Setup and start writing topic instructions.

The ADLC moves that work later. The Architects guide asks teams to define the agent's goal and measurable success metrics, its persona and guardrails, its data and memory needs, the tools it calls, and the points where it hands off to a human.

It also asks for a representative set of real user utterances before any configuration begins.

That utterance set does double duty.

  • It shapes the subagent boundaries during design, and it becomes the seed of your test suite in the testing phase.
  • Teams that skip it end up writing tests from memory after the agent is built, which tends to test what the builder expected rather than what customers actually say.
    ‍

Agent Script Separates What Must Happen From What the LLM Decides

Agent Script is the language behind every agent in the new Agentforce Builder. It allows teams to define conditionals, guards, and transitions for steps that must run consistently, such as identity verification or eligibility checks, while leaving open-ended conversations to the LLM.

Salesforce calls this hybrid reasoning. Previously, teams relied entirely on instruction wording, and the LLM decided whether to follow those instructions.

The new builder offers two views of the same agent:

  • Canvas View: Presents the script as readable blocks for admins who prefer a visual editor.
  • Script View: Provides direct access to the underlying code.

Developers can also work outside the org using Agentforce DX, where each agent is stored as a metadata component called an authoring bundle (AiAuthoringBundle) containing its .agent file.

Teams can generate this bundle locally or retrieve one created in Agentforce Builder, then edit, validate, and preview it in VS Code.

At TDX 2026, Salesforce open-sourced the Agent Script spec, grammar, parser, and compiler on GitHub. For a deeper look at the language itself, read our explainer on Salesforce Agent Script, or follow the worked example in how to build a campaign agent using Agent Script.

Agent Tests Now Score Behaviour Across a Range of Acceptable Outcomes

Traditional software tests check for one expected output. The Architects guide makes the point that agent tests check whether behaviour fits the agent's purpose across a range of acceptable responses. It recommends layered testing:

  • Unit tests for deterministic components such as Apex and Flows
  • End-to-end tests that measure task completion instead of exact wording
  • Adversarial and robustness testing
  • Human review of tone and conversational flow
  • Performance and scale testing

Previously, most teams tested one conversation at a time in the builder preview. With the new Agentforce Builder, tests now live in the Tests tab in Agentforce Studio. Test suites are stored as AiTestingDefinition metadata and graded by scorers, replacing the AiEvaluationDefinition format used for legacy agents.

The Testing Center enhancements that reached general availability in May 2026 introduced:

  • Custom scoring evals.
  • Multi-turn conversation testing with voice simulation.
  • Run history for comparing results across iterations.

Dreamforce 2026 expanded these capabilities further:

  • Voice and Conversation Testing (beta): Grades entire multi-turn exchanges across text and voice, rather than individual turns.
  • Custom Scorers: Grade both tests and production sessions. The Scorers API is generally available, while the scorer UI is in beta.

Agentforce DX also provides a CLI-based test suite, allowing agent tests to run in the same pipeline as Apex tests.

Source Control Becomes the Source of Truth, and Activation Stays Separate

In the new lifecycle, the agent is stored as versioned metadata in Git and promoted through CI/CD, the same way you ship Apex or Lightning components. The Architects guide also recommends phased rollouts, such as canary releases, and agent versioning so you can roll back to the last known good version.

One rule carries over and matters more now: deployment and activation are separate steps. A new agent version does not go live until an administrator activates it. Pipelines move the code; a named person decides when customers see it.

Salesforce also supports controlled experiments in production. A/B Experimentation, announced at Dreamforce 2026, splits traffic between agent versions and compares them on an analytics scorecard, with setup built into Agentforce Builder. It entered beta in October 2026, so check your org's release notes before building a rollout plan around it.

Production Traces Now Feed Back Into Authoring

The outer loop is the largest addition to the Agentforce development lifecycle. The Architects guide identifies latency, token cost, API errors, completion rates, dead ends, and escalations as key signals to monitor after go-live.

These signals come together in Agentforce Observability, covering agent analytics, session-level optimization, and health monitoring. The Session Tracing Data Model (STDM) in Data 360 stores every session and interaction for root-cause analysis.

Two tools turn this data into action:

  • Agent Health Monitoring: Tracks error rates, latency, and other reliability measures, triggering alerts when they drift.
  • Agent Optimizer (beta): Since Dreamforce 2026, it reads production sessions, groups recurring failures, ranks them by impact, and can propose and test fixes in Agentforce Builder.

Custom scorers measure test and production session quality on the same scale. Winter '27 also added a Sessions and Intents view, voice latency, and speech metrics in Session Trace.

For external monitoring, the Session Trace OTel API (beta) returns full session traces as OpenTelemetry spans for Splunk, Datadog, or New Relic. It handles one session per request, covering the previous 72 hours.

ADLC skills for AI coding tools can also read production traces and feed them directly back into authoring, allowing teams to address failed conversations using the traces that revealed those failures.

What Happens to Agents Built in the Legacy Builder

Agents built in the legacy builder keep running and remain editable. Salesforce is not shutting them down. Since the week of July 13, 2026, you can no longer create new agents there, and no new features are planned for it. Agent Script, new Agentforce Voice capabilities, per-subagent model selection, and multi-agent orchestration are available only in the new builder.

Plan your migration now if:

  • The agent has steps that must happen in a fixed order, and you rely on instruction wording to enforce them
  • You need new voice features, multi-agent orchestration, or a different model per subagent
  • Several people change the agent and you have no record of who changed what

You can wait if:

  • The agent is stable, low-risk, and rarely changed
  • It already passes your regression utterances and nobody plans to extend it this year.

Is Your Agentforce Strategy Keeping Up With Its Evolution?

The way businesses build Agentforce agents has changed. The bigger question is whether their teams, processes, and development practices have evolved with it.

At MIDCAI, we help businesses bridge this gap. Our expertise spans Agentforce architecture, legacy agent migration, testing, deployment, and continuous optimisation.

Whether you're building your first Agentforce agent or rethinking your existing agent ecosystem, now is a good time to evaluate your development approach.

Connect with our Agentforce experts to discuss what your next phase of agent development should look like.

‍

No items found.

About the Author

Sonali Chauhan

As a Salesforce Consultant, I build AI-driven solutions and automation experiences that make technology feel simpler, smarter, and more human. Passionate about continuous learning, I enjoy turning complex ideas into systems that create real impact for users and businesses.

NEED HELP

FAQ

Got questions? We’ve got answers. Explore common queries to understand how we work and what to expect.

Will agents built in the legacy Agentforce Builder stop working?

No. Salesforce has confirmed that legacy agents continue to run and remain editable. What ended in July 2026 is the ability to create new agents in the legacy builder. No new features are planned for it, so any agent that needs Agent Script, new voice capabilities, or multi-agent orchestration has to be rebuilt in the new Agentforce Builder.

Do admins need to write code to use Agent Script?

No. Every new agent is defined in Agent Script, but the new Agentforce Builder's Canvas view presents that script as readable blocks, and Agent Optimizer (beta), the builder's built-in assistant, can turn natural-language requests into subagents, actions, and script. Developers who want direct control can use Script view or edit the .agent file in VS Code.

How is the Agent Development Lifecycle different from the SDLC?

The ADLC extends the SDLC rather than replacing it. It differs in four main ways: inputs are free-form language, tests score behaviour across acceptable outcomes instead of one expected output, data plays a more central role, and the lifecycle continues after deployment through monitoring and tuning. Deployment and activation are also separate steps.

Do I need Agentforce DX to build agents?

No, you can build entirely in Agentforce Builder. Agentforce DX becomes important when you want agents in version control, automated tests in a CI/CD pipeline, or development in VS Code and AI coding tools. You can start in the builder and retrieve the authoring bundle into a DX project later.

Similar Blogs

Ready to future-proof your business?

Get in touch with us for any enquiries and questions

Get in touch

Define your goals and identify areas where technology can add value to your business

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Join minds that move technology

We are looking for passionate people to join us on our mission.

Let’s build what’s next

where your skills fuel innovation and your growth powers ours

Braze Consultant
AI Forward Deployed Engineer
Claude Engineer
Salesforce & AI Developer
Salesforce & AI Technical Lead
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Let’s work through it together.

CRM services that bring your data, teams, and

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.