afv-library/skills/developing-agentforce/assets/metadata/basic-prompt-template.promptTemplate-meta.xml
Steve Hetzel fb4bac9cf0
feat: replace agentforce-development skill with three specialized skills @W-21937872@ (#184)
feat: replace agentforce-development skill with three specialized skills

Replace the monolithic agentforce-development skill with three focused skills:
- developing-agentforce: For creating and authoring Agentforce agents
- observing-agentforce: For monitoring and debugging agents
- testing-agentforce: For validating agent behavior

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-04-09 17:04:48 +05:30

110 lines
3.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Prompt Template: Basic Template
Use Case: Create reusable prompts for Einstein/Agentforce
- Standardize prompt patterns across org
- Include variable bindings from records
- Use in agents, flows, or Apex
Template Types:
- salesGeneration: Generate content (emails, summaries)
- fieldCompletion: Suggest field values
- recordSummary: Summarize records
- flexPrompt: General purpose
Setup Steps:
1. Replace all {{placeholder}} values
2. Define input variables and their sources
3. Deploy to org
4. Use in Agent Actions or Flows
File Location: force-app/main/default/promptTemplates/{{TemplateName}}.promptTemplate-meta.xml
-->
<PromptTemplate xmlns="http://soap.sforce.com/2006/04/metadata">
<!-- API Name -->
<fullName>{{TemplateName}}</fullName>
<!-- Display name -->
<masterLabel>{{TemplateLabel}}</masterLabel>
<!-- Description of template purpose -->
<description>{{TemplateDescription}}</description>
<!--
Template Type:
- salesGeneration: Generate sales content
- fieldCompletion: Predict/suggest field values
- recordSummary: Summarize record data
- flexPrompt: General purpose (most flexible)
-->
<type>flexPrompt</type>
<!-- Active status -->
<isActive>true</isActive>
<!--
The Prompt Content:
Use {!variableName} for variable substitution.
Keep prompts clear, specific, and well-structured.
-->
<promptContent>
You are an AI assistant helping with {{UseCaseDescription}}.
Context:
{!contextVariable}
Task:
{{TaskDescription}}
Instructions:
1. {{Instruction1}}
2. {{Instruction2}}
3. {{Instruction3}}
Please provide a helpful response based on the context above.
</promptContent>
<!--
Input Variables:
Define variables that can be bound to record fields or runtime values.
-->
<promptTemplateVariables>
<developerName>contextVariable</developerName>
<promptTemplateVariableType>freeText</promptTemplateVariableType>
<isRequired>true</isRequired>
</promptTemplateVariables>
<!--
Variable Types:
- freeText: User-provided text input
- recordField: Bound to a specific field on a record
- relatedList: Data from related records
- resource: Static resource content
Example recordField variable:
<promptTemplateVariables>
<developerName>accountName</developerName>
<promptTemplateVariableType>recordField</promptTemplateVariableType>
<objectType>Account</objectType>
<fieldName>Name</fieldName>
<isRequired>true</isRequired>
</promptTemplateVariables>
-->
<!--
USAGE IN AGENT ACTIONS:
Option 1: Via GenAiFunction
Create GenAiFunction with invocationTargetType="prompt"
pointing to this template.
Option 2: Via Flow
Use "Prompt Template" action in Flow,
then wrap Flow in Agent Script action.
Option 3: Via Apex
Use ConnectApi.Einstein.evaluatePrompt() method.
-->
</PromptTemplate>