Agent Script in Script View
Key Takeaway
Canvas view and Script view edit the same Agent Script file. Canvas view underlines validation errors, while Script view gives more detail about them. If changes in Script view make Canvas view unavailable, fix the errors in Script view before you switch back.
Agent Script is the language behind every agent built in Agentforce Builder. It mixes natural-language prompts that an LLM interprets with programmatic logic that runs the same way every time. Script view lets you read and edit that language directly as code. Canvas view shows the same agent as visual blocks.
Agent Script and hybrid reasoning
You write Agent Script whether you work in Canvas view, in Script view, or by chatting with the Agentforce assistant. Agentforce stores the whole agent as Agent Script in a single text file.
Agent Script blends two things that usually live in separate tools: the flexibility of natural-language prompts and the reliability of deterministic, programmatic logic. The blend is called hybrid reasoning. You decide which behaviors are fixed rules and which ones the LLM figures out.