afv-library/skills/agentforce-generate/assets/agents
2026-06-26 12:21:51 +00:00
..
hello-world.agent feat: Release Skills Renaming by domain first convention @W-23187998@ 2026-06-26 12:21:51 +00:00
multi-subagent.agent feat: Release Skills Renaming by domain first convention @W-23187998@ 2026-06-26 12:21:51 +00:00
order-service.agent feat: Release Skills Renaming by domain first convention @W-23187998@ 2026-06-26 12:21:51 +00:00
production-faq.agent feat: Release Skills Renaming by domain first convention @W-23187998@ 2026-06-26 12:21:51 +00:00
production-faq.bundle-meta.xml feat: Release Skills Renaming by domain first convention @W-23187998@ 2026-06-26 12:21:51 +00:00
README.md feat: Release Skills Renaming by domain first convention @W-23187998@ 2026-06-26 12:21:51 +00:00
simple-qa.agent feat: Release Skills Renaming by domain first convention @W-23187998@ 2026-06-26 12:21:51 +00:00
verification-gate.agent feat: Release Skills Renaming by domain first convention @W-23187998@ 2026-06-26 12:21:51 +00:00

Complete Agent Templates

Templates for building complete, deployable agents.

Learning Path

Template Complexity Description
hello-world.agent Beginner Minimal viable agent - start here
simple-qa.agent Beginner Single-subagent Q&A agent
multi-subagent.agent Intermediate Multi-subagent routing agent
production-faq.agent Advanced Production-ready FAQ with escalation

Quick Start

  1. Copy a template to your SFDX project:

    mkdir -p force-app/main/default/aiAuthoringBundles/My_Agent
    cp hello-world.agent force-app/main/default/aiAuthoringBundles/My_Agent/My_Agent.agent
    cp ../metadata/bundle-meta.xml force-app/main/default/aiAuthoringBundles/My_Agent/My_Agent.bundle-meta.xml
    
  2. Validate and deploy:

    sf agent validate authoring-bundle --json --api-name My_Agent --target-org your-org
    sf agent publish authoring-bundle --json --api-name My_Agent --target-org your-org
    

Required Blocks

Every agent must have these blocks in this order:

Block Purpose
system: Agent personality and default messages
config: Deployment metadata (agent_name, label, etc.)
variables: Data connections and state storage
language: Locale configuration
start_agent Entry point subagent (exactly one required)

Next Steps