afv-library/skills/agentforce-generate/assets/agents/simple-qa.agent

52 lines
1.9 KiB
Plaintext

# Simple Q&A Agent Template
# A minimal agent that handles basic questions using LLM reasoning
# Demonstrates: one focused execution scope, concise answers, and escalation
#
# Usage: Replace {{placeholders}} with your values
# Replace the valid developer-name sentinel plus the quoted display-value
# placeholders before deployment.
# Required: access.default_agent_user plus config developer_name, agent_label,
# and description
system:
instructions: |
{{SystemInstructions}} For a basic informational request, answer
helpfully and concisely. For an explicit request for a human, transfer
without also answering the underlying request. When the user is done,
give a brief farewell without invoking an action.
messages:
welcome: "{{WelcomeMessage}}"
error: "I'm sorry, I encountered an issue. Please try again."
access:
default_agent_user: "{{AgentUser}}"
config:
developer_name: "Agent_API_Name"
agent_label: "{{AgentLabel}}"
description: "{{AgentDescription}}"
language:
default_locale: "en_US"
additional_locales: ""
all_additional_locales: False
start_agent qa_support:
label: "Q&A Support"
description: "Answers basic questions or transfers an explicit human request"
reasoning:
instructions: ->
| For a basic question, answer accurately and concisely using the
latest surviving conversation turns for follow-up context.
| Ask one clarifying question only when information required to
answer is genuinely missing.
| If the user asks for a human, use the handoff action and do not
also answer the underlying request.
| If the user is done, give a brief farewell and do not invoke an
action.
actions:
handoff: @utils.escalate
description: "Transfer only when the user explicitly requests a human; this ends automated Q&A"