afv-library/skills/developing-agentforce/assets/agents
Willie Ruemmele df3467f20b
@W-21955450@ Rename topic to subagent for Agent Script v2
Aligns with Agent Script v2 naming standards where `topic` is renamed
to `subagent` across all skill documentation and templates.

Changes:
- Agent Script templates: topic keyword → subagent keyword
- References: @topic.* → @subagent.*
- Documentation: Updated all skill references and guides
- Natural language references preserved in comments/descriptions
2026-04-10 08:39:39 -06:00
..
hello-world.agent feat: replace agentforce-development skill with three specialized skills @W-21937872@ (#184) 2026-04-09 17:04:48 +05:30
multi-topic.agent @W-21955450@ Rename topic to subagent for Agent Script v2 2026-04-10 08:39:39 -06:00
order-service.agent @W-21955450@ Rename topic to subagent for Agent Script v2 2026-04-10 08:39:39 -06:00
production-faq.agent @W-21955450@ Rename topic to subagent for Agent Script v2 2026-04-10 08:39:39 -06:00
production-faq.bundle-meta.xml feat: replace agentforce-development skill with three specialized skills @W-21937872@ (#184) 2026-04-09 17:04:48 +05:30
README.md feat: replace agentforce-development skill with three specialized skills @W-21937872@ (#184) 2026-04-09 17:04:48 +05:30
simple-qa.agent @W-21955450@ Rename topic to subagent for Agent Script v2 2026-04-10 08:39:39 -06:00
verification-gate.agent @W-21955450@ Rename topic to subagent for Agent Script v2 2026-04-10 08:39:39 -06: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-topic Q&A agent
multi-topic.agent Intermediate Multi-topic 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 topic (exactly one required)

Next Steps