Cert++
Close

Agent Script as the Agentforce Builder language

Key Takeaway

Every agent in Agentforce Builder is defined in Agent Script, whether you build it by chat, in Canvas view, or in Script view. Agent Script mixes deterministic logic for business rules with natural language instructions that the LLM interprets. This mix is called hybrid reasoning.

Agent Script is the language behind every agent you build in Agentforce Builder. You can chat with Agentforce, use Canvas view, or type in Script view, and the result is Agent Script either way. A script mixes natural language instructions, which the LLM interprets, with programmatic logic that runs the same way every time. You decide which parts of the agent follow fixed business rules and which parts the LLM reasons through on its own.

What Agent Script is

Agent Script is the language for building agents in Agentforce Builder. Salesforce designed it specifically for Agentforce agents. With Agent Script, you build predictable, context-aware workflows that don't rely only on LLM interpretation.

Agent Script agents use hybrid reasoning. The LLM interprets the natural language instructions for conversational tasks. The programmatic expressions for business rules run deterministically.

Agent Script is a compiled language. When you save a version of the agent, the script compiles into lower-level metadata that the reasoning engine uses.

Agent Script is designed to be human-readable, so non-developers can understand how an agent works. Reading the script lets you know exactly what the agent will do. You can also review what a teammate or AI tool wrote, and you can reach features that Canvas view doesn't surface.

Agent Script can help manage instruction overload and reduce latency. It can also help improve agent accuracy, instruction adherence, and response quality.

Agent Script is available in Lightning Experience in Enterprise, Performance, Unlimited, and Developer Editions. The required add-on licenses vary by agent type.

Agentforce Specialist Study Guide

Checklist progress

0/204Learned

Explain how an agent works and its basic building blocks of agent script

0/8

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other Agentforce Specialist studiers.