9.3 Agent Builder, Prompt Builder, and Grounding Concepts
Key Takeaways
- Agentforce Builder is where admins and authorized builders create, customize, preview, and manage agents, while Prompt Builder helps create reusable prompt templates for generative AI experiences.
- Instructions, subagents or topics, actions, variables, and grounding determine what an agent knows, how it reasons, and what it can do.
- Grounding connects the agent to trusted Salesforce data, knowledge, files, or data libraries so responses are based on approved context rather than generic model output.
- A Platform Administrator should understand configuration concepts, testing obligations, and handoff points to developers for Apex, complex integrations, or custom actions.
Builder concepts administrators should know
Agentforce Builder is the workspace for creating and customizing agents. Current Salesforce guidance also describes Agentforce Studio as a central app for building, testing, and monitoring agents, with access from the App Launcher when the org and user have the required feature access. Some older or transition documentation may still use the term topics where newer material uses subagents. For admin study, focus on the concept: a defined area of work that gives the agent instructions and allowed actions.
An agent configuration usually includes agent-level instructions, conversation behavior, subagents or topics, actions, variables, grounding sources, preview testing, and deployment settings. The admin should understand each part without needing to write Apex. Agent-level instructions define the agent identity, tone, boundaries, and refusal rules. Subagents or topics help route the user request to the right skill area. Actions let the agent do work, such as retrieve data, call a flow, create a record, or hand off a conversation.
| Concept | Admin meaning | Study warning |
|---|---|---|
| Agent instructions | Global behavior and boundaries | Vague instructions produce inconsistent behavior. |
| Subagent or topic | A focused work area for requests | Do not create one giant area for unrelated tasks. |
| Action | A capability the agent can perform | Review permissions, validation, and rollback impact. |
| Variable | Data passed into or used by prompts and actions | Treat sensitive values like any other data exposure. |
| Grounding | Trusted context supplied to the agent | Bad or outdated sources produce bad answers. |
| Preview testing | Builder-side testing before activation | Admin-user testing is not enough for security. |
Prompt Builder is related but not identical. Prompt Builder helps create prompt templates that can use Salesforce record fields, related data, and instructions to generate content in a repeatable way. For example, a sales team might use a prompt template to draft a follow-up email from opportunity details, recent activities, and approved messaging. An agent may use prompts as part of a broader conversational experience, but the admin should still separate template design from agent orchestration.
Grounding is the admin's bridge between generative output and trusted business context. A generic model can produce fluent text, but a business agent needs approved facts. Grounding can connect the agent to CRM records, knowledge articles, unstructured documents, or data libraries depending on the feature set. The admin should ask who owns each source, whether it is current, whether it is approved for the audience, and whether permission rules are enforced at runtime.
A strong grounding strategy is selective. Do not connect every document because more data feels safer. Too much uncurated content can make answers less reliable and harder to govern. Start with published knowledge, clear policy documents, or records with strong data quality. Remove duplicates, stale drafts, obsolete pricing, old procedure files, and confidential notes that do not belong in the agent's context.
Builder workflow for an admin-led pilot:
- Confirm feature enablement, licensing, app visibility, and builder permissions.
- Create or choose the right agent type or template for the use case.
- Write agent-level instructions that define scope, tone, refusal behavior, and escalation.
- Add subagents or topics for each focused business area.
- Add grounded data sources and verify source ownership, publication status, and access rules.
- Add actions only after reviewing validation rules, flow context, user permissions, and side effects.
- Preview with happy paths, incomplete requests, restricted data requests, and unsupported tasks.
- Save versions and document what changed before deployment.
Developer handoff is part of admin judgment. Flow actions may be admin-configurable when the process already exists and is safe to expose. Apex actions, external service calls, complex API integrations, custom data retrieval, and advanced error handling may require a developer or architect. The admin is still responsible for asking the right questions: what user context is used, what data leaves Salesforce, how errors are surfaced, and how the action is tested.
Prompt design has governance rules too. A good prompt template includes role, goal, data inputs, output format, and constraints. It should tell the AI what to do when information is missing, not encourage guessing. If the template drafts customer-facing content, the admin should include review steps, approved language, and brand or compliance constraints. For sensitive messages, AI can draft, but a human may still need to send.
Study trap: do not treat grounding as the same thing as permission. Grounding selects context sources, while permissions decide who can access records, fields, and actions. Both must be correct. Also do not assume a prompt template is safe because it works for an admin. Test with the users and records the business actually intends to support.
What is the best description of grounding in an Agentforce context?
Which configuration should an admin review most carefully before adding an action to an agent?
A prompt template drafts sales follow-up emails from opportunity data. What should the admin include in the design?