Agent Script is Salesforce's new language for building AI agents that combines deterministic code with natural language prompts through hybrid reasoning. The post covers core syntax including property-based key-value pairs, indentation rules, the @ symbol for resource references, pipe syntax for LLM prompts, template expressions for dynamic values, and slot-filling with .... It walks through the fundamental building blocks of an Agent Script file: config, variables, system, start_agent, topics, actions, and reasoning blocks. The reasoning block is central, allowing both deterministic action execution via run and LLM-driven tool calls via reasoning.actions. Topic transitions, after_reasoning hooks, and topic delegation are also explained with practical examples.
Sort: