Hybrid reasoning, Agent Script and the Agentforce Builder
Why pure LLM reasoning isn't enough for enterprise processes, how Agent Script mixes deterministic logic with LLM steps, Canvas and Script views in the new Agentforce Builder, the reasoning engine, and when to use deterministic vs generative control.
Simple explanation
The problem: LLMs are flexible but probabilistic. Enterprise processes need some steps to happen every time, in order (verify identity before refunds, check eligibility before offers).
Hybrid reasoning combines:
- Deterministic logic: conditions, sequences, required steps, variable checks, written in Agent Script.
- LLM reasoning: understanding intent, choosing among options, writing responses, handling ambiguity.
Agentforce Builder (generally available since February 2026)
- Canvas view: visual editing.
- Script view: edit the Agent Script directly.
- Agent Script organises subagents, instructions and actions as modular components; Salesforce open-sourced Agent Script authoring at TDX 2026.
- The older Setup-based builder is now called legacy.
When to make it deterministic
| Make deterministic | Leave to the LLM |
|---|---|
| Identity verification before account actions | Understanding how the customer phrased it |
| Eligibility and policy checks | Summarising and explaining |
| Required order of steps | Choosing which question to ask next |
| Compliance wording | Tone and empathy |
Real-world analogy
Hybrid reasoning is a pilot with a checklist: the pilot uses judgement in flight, but the pre-take-off checklist is followed in order every single time.
Worked example
A refund subagent's Agent Script requires: verified identity variable is true β order is within the return window (action) β amount below the auto-approve threshold. Only then may the LLM confirm the refund and explain next steps; otherwise the script routes to a human with a summary.
Diagram
Key points
- Hybrid reasoning = deterministic control + LLM flexibility.
- Agent Script defines subagents, instructions, actions and logic as code.
- Canvas and Script views in the new Agentforce Builder.
- Make verification, eligibility and required steps deterministic.
- Keep language understanding and explanation with the LLM.
Limits and gotchas
- Over-scripting turns the agent into a rigid bot; keep deterministic logic for steps that truly must be fixed.
- Legacy-builder agents need migration planning to the new builder β verify migration tooling.
- Agent Script syntax and capabilities evolve; follow current docs β verify.
π€ How to say this in an interview
Explain why hybrid reasoning exists and give specific examples of what you'd make deterministic. Mention Canvas and Script views and source control of Agent Script.
Common follow-ups
Why not just write stronger instructions like 'always verify identity first'?
Instructions are interpreted probabilistically and can be skipped or manipulated; deterministic script steps are enforced every time.
How does Agent Script help DevOps?
It's text, so it can be versioned, reviewed, diffed and deployed like code.