Agentforce Builder
Build Agentforce agents in Setup. AI writes the topics, actions, and prompt templates — and follows Salesforce's own best practices.
Skill Details
Install this skill
Works with
Use this skill for the Setup UI / Agent Builder path: declarative topics, Builder-managed actions, GenAiFunction / GenAiPlugin metadata, Prompt Builder templates stored as GenAiPromptTemplate metadata, Models API usage from Apex, and custom Lightning types.
For new code-first agent development, prefer sf-ai-agentscript.
When This Skill Owns the TaskWorkflow
Use sf-ai-agentforce when the user is:
- maintaining existing Builder-based agents
- working in Setup → Agentforce → Agents
- creating or fixing
GenAiFunction,GenAiPlugin, orGenAiPromptTemplatemetadata - wiring Builder topics to Flow / Apex / Prompt Builder actions
- using Models API or LightningTypeBundle in the context of Builder-based agents
Do not use it for:
.agentfiles or deterministic FSM design → sf-ai-agentscript- agent test suites and coverage loops → sf-ai-agentforce-testing
- persona / voice design → sf-ai-agentforce-persona
Required Context to Gather FirstWorkflow
Ask for or infer:
- whether this is a Builder / Setup UI project or a code-first Agent Script project
- agent type: Service Agent or Employee Agent
- whether the work targets topics, actions, Prompt Builder templates, Models API, or custom Lightning types
- what supporting Flow / Apex / metadata dependencies already exist
- whether the user needs authoring help, publish help, or troubleshooting
Two Agentforce Paths
| Path | Skill | Best fit |
|---|---|---|
| Setup UI / Agent Builder | sf-ai-agentforce | Declarative maintenance, existing Builder agents, metadata-driven action registration |
| Agent Script DSL | sf-ai-agentscript | Code-first .agent authoring, deterministic routing, version-controlled agent logic |
| Target type | Typical use | Registered via |
| Flow | safest default for Builder actions | GenAiFunction |
| Apex | complex business logic via @InvocableMethod | GenAiFunction |
| Prompt Builder template | generated summaries / drafts / recommendations | GenAiFunction |
| Requirement | Delegate to | Why |
| Create / fix Flows | sf-flow | Action target creation and Flow validation |
| Create / fix Apex actions | sf-apex | @InvocableMethod and Apex correctness |
| Deploy / publish | sf-deploy | Deployment orchestration |
| Test the agent | sf-ai-agentforce-testing | Formal test execution and assertions |
| Symptom | Likely cause | Read next |
| Action not available in Builder | target metadata missing or not deployed | references/metadata-reference.md |
| Prompt action fails during publish or activation | template is Draft, missing inputs, or old metadata shape is being used | references/genaiprompttemplate.md |
| Need more than 5 template inputs | flex template input limit hit | references/genaiprompttemplate.md |
| Apex AI logic times out | Models API work placed in the wrong context | references/models-api.md |
| Rich input/output UI not rendering | Lightning type config or prerequisites are incomplete | references/custom-lightning-types.md |
| Agent publishes but is not usable | forgot explicit activation | references/cli-commands.md |
| Score | Meaning | |
| 90+ | Ready to deploy | |
| 80–89 | Strong, minor cleanup only | |
| 70–79 | Review before deploy | |
| 60–69 | Needs work | |
| < 60 | Block deployment |
Full rubric: references/scoring-rubric.md
More in Agentforce & AI
Agent Persona
Design your agent's personality, tone, and voice. AI produces a complete persona document you can paste directly into Agent Builder.
Agent Testing
Test your Agentforce agents before going live. AI writes test specs, simulates conversations, and tells you what needs fixing.
Agent Script
Write Agent Script DSL for complex agent conversations. AI handles the tricky syntax so you can focus on the conversation design.
Navigate Agentforce & AI