afv-library/skills/agentforce-generate/assets/minimal-starter.agent

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, subagent, 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 subagent.
actions:
begin: @utils.transition to @subagent.main
description: "Start the main conversation"