What problem does it solve?
Agent Script enables deterministic agent development by encoding decision logic in a single .agent file, converting prompts into code-enforced behavior to improve reliability, auditing, and reusability.
Core Features & Use Cases
- Deterministic block-based agent scripting with blocks: config, variables, system, knowledge, language, start_agent, topic
- Two-level action model: Level 1 action definitions with target/IO, Level 2 invocations via reasoning.actions
- Lifecycle hooks: before_reasoning and after_reasoning for pre/post processing
- Deterministic guards:
available when, topic transitions, post-action checks
- Integrations: flow://, apex://, generatePromptResponse://, retriever://, externalService://, standardInvocableAction://
- Cross-skill integration: works with sf-flow, sf-ai-agentforce-testing, sf-deploy, etc.
Quick Start
Create a minimal agent by scaffolding a single topic with a Flow action and validate/publish it in your Salesforce org.