afv-library/skills/developing-agentforce/assets/minimal-starter.agent
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

43 lines
1.3 KiB
Plaintext

# Minimal Agent Script Starter Template
# =====================================
#
# This template provides the minimum required structure for an Agent Script.
# Use this as a starting point for simple, single-purpose agents.
#
# Required blocks: system, config, topic, start_agent
# File extension: .agent
system:
messages:
welcome: "Hello! How can I help you today?"
error: "I apologize, but something went wrong. Let me try again."
instructions: "You are a helpful assistant."
config:
agent_name: "MinimalAgent"
agent_label: "Minimal Agent"
description: "A minimal agent template to get started"
default_agent_user: "agent@yourorg.com" # REQUIRED: Change to valid Einstein Agent User
# Optional: Add variables for state tracking
# variables:
# counter: mutable number = 0
# session_id: linked string
# source: @session.sessionID
subagent main:
description: "Main conversation handler"
reasoning:
instructions: |
Help the user with their request.
Be friendly and helpful.
start_agent entry:
description: "Entry point for all conversations"
reasoning:
instructions: |
Greet the user and route to the main topic.
actions:
begin: @utils.transition to @subagent.main
description: "Start the main conversation"