Salesforce Migrates AI Agents to Agent Script
- •Salesforce mandates new AI agent development move to Agent Script as of July 2026.
- •The new Agentforce Builder uses hybrid reasoning to replace legacy natural-language prompt inconsistency.
- •Datasite reported an 82% case deflection rate after migrating its service agent to the new builder.
Salesforce is transitioning its AI agent infrastructure from the legacy Agentforce Builder to a new version powered by Agent Script. As of July 2026, Salesforce has frozen development on the legacy tool, requiring all new agents to be created in the new builder. This migration aims to address reliability issues by employing hybrid reasoning (a method combining deterministic logic with probabilistic LLM reasoning). By defining structured rules, agents can bypass natural-language misinterpretations, ensuring consistent adherence to business processes.
Performance and operational efficiency are key drivers for the upgrade. Agent Script utilizes structured logic paths to reduce latency and token consumption by avoiding constant re-evaluation of every interaction. For instance, the company Datasite reported that after rebuilding its service agent in the new builder, case deflection rates improved from the low 60s to 82%. Debugging capabilities have also been expanded with purpose-built traces, allowing administrators to view full reasoning summaries, search conversation logs, and inspect variable state changes through both text and code views.
Accessibility and future scalability are central to the new platform. The new Agentforce Studio removes the requirement for admin-level permissions, enabling business analysts to build agents using natural language via a visual Canvas interface, while developers retain options to write directly in Script view or utilize tools like VS Code and the CLI. Future features exclusive to the new architecture include Agentforce Voice enhancements, multi-agent orchestration for complex workflows, subagent-level model selection, and advanced observability tools. Upgrading is included within existing Agentforce purchases, and Salesforce provides a migration guide to handle the transition, noting that activating a rebuilt agent automatically deactivates its legacy counterpart.