Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Sf ai agentforce/Prompt-templates
Reference · Sf ai agentforce

Prompt-templates

Part of Sf ai agentforce. Install the skill and your agent reads this page when it needs the depth.

<!-- Parent: sf-ai-agentforce/SKILL.md -->

Prompt Templates in Agentforce

Terminology guide: Salesforce users commonly say Prompt Template in the UI, while modern source-driven metadata work uses GenAiPromptTemplate.

Short answer

Term Meaning
Prompt Template Plain-English / UI term used in Prompt Builder
GenAiPromptTemplate Current Metadata API type for Prompt Builder templates

When to use prompt templates

Use a Prompt Builder template when the action should generate content such as:

Do not use a prompt template when the requirement is deterministic business logic or strict transactional processing.

Current metadata direction

For source-controlled work, prefer:

Flex templates should be designed around the 5-input maximum.

Current merge-field style

Prompt content should reference current inputs with shapes like:

Read next

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.