Reference · Sf ai agentscript
Activation-checklist
Part of Sf ai agentscript. Install the skill and your agent reads this page when it needs the depth.
Agent Script Activation Checklist
Use this file when sf-ai-agentscript is already active and you need the shortest possible pre-authoring / pre-publish checklist.
1. Route correctly
Use sf-ai-agentscript for:
.agentfiles- deterministic topic/state/action design
- Agent Script CLI workflows (
sf agent generate/publish)
Do not use it for:
- Setup UI / Agent Builder maintenance → use
sf-ai-agentforce - agent testing strategy → use
sf-ai-agentforce-testing - persona design → use
sf-ai-agentforce-persona
2. Blockers to check before editing
- Exactly one
start_agent - No mixed tabs and spaces
True/Falseonly- No
else if - No nested
if - No top-level
actions:block - No
@inputsinsideset - No default values on
linkedvariables - No
object/listlinked variables - Use explicit
agent_type - Use
run @actions.Xonly for topic-level action definitions that declaretarget: - Do not branch directly on raw
@system_variables.user_input contains/startswith/endswith - Do not treat
contains/startswith/endswithas the sole gate for critical routing or validation - On prompt template outputs, prefer
is_displayable: False+is_used_by_planner: True - Do not assume
@outputs.Xis scalar; inspect the output schema before comparing or assigning it
3. Service Agent publish safety
For AgentforceServiceAgent:
default_agent_usermust exist- user must be active
- user must not be
AutomatedProcess Profile.Namemust beEinstein Agent User- target-backed actions usually require a custom
{AgentName}_Accesspermission set
For AgentforceEmployeeAgent:
- omit
default_agent_user
Full details:
4. Minimal authoring workflow
- Define
config,system,start_agent, and topics - Add
variablesonly when state is needed - Define target-backed actions with complete
inputs:andoutputs: - Add deterministic guards with
available when - Validate on save
- Run preview smoke tests
- Publish, then activate
5. Canonical deep references
- Syntax rules: syntax-reference.md
- Actions and target protocols: actions-reference.md
- Production and runtime gotchas: production-gotchas.md
- Preview loop: preview-test-loop.md
- Debugging: debugging-guide.md
- Validator rules: validator-rule-catalog.md