AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How Salesforce Administrators Configure Topics, Actions, and Guardrails in Agentforce

365Finds Editorial
Indexed 11,430 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

Salesforce administrators configure autonomous agents in Agentforce by establishing structured operational domains, executable business tools, and multi-layered governance controls within Agentforce Builder. Unlike traditional rules-based chatbots that follow deterministic decision trees, Agentforce relies on the Atlas Reasoning Engine to dynamically interpret user intent, formulate action plans, and execute tasks autonomously. To ensure that these autonomous agents operate reliably, securely, and within enterprise boundaries, administrators must configure three foundational building blocks: topics that classify and scope work, actions that execute business logic, and guardrails that enforce behavioral constraints, data privacy, and human escalation paths.

Architectural Foundation: The Atlas Reasoning Engine

To configure an autonomous agent effectively, administrators must understand how Agentforce processes user interactions. At the heart of Agentforce is the Atlas Reasoning Engine, which coordinates agent behavior through a continuous "reason-act-observe" loop:

Because Atlas reasons dynamically rather than following a scripted dialog tree, administrators do not build static branching paths. Instead, they define the boundaries, tools, and objectives, allowing the engine to navigate the optimal path to resolution.

Step 1: Configuring Topics in Agentforce Builder

Topics serve as the agent's primary functional domains. They group related capabilities, provide context, and define the boundaries within which the agent is authorized to operate.

Accessing the Builder and Creating Topics

  1. In Salesforce Setup, use the Quick Find box to navigate to Agentforce Agents (or Einstein Agents depending on release configuration).
  2. Select the desired agent from the list and click Open in Builder.
  3. In the left-hand navigation panel of Agentforce Builder, select the Topics tab.
  4. Click New Topic to build a custom topic from scratch, or choose from standard preconfigured domain templates (such as Order Management, Billing Inquiries, or Case Escalation).

Defining Topic Metadata and Classification Scope

Each topic requires three critical configuration fields that directly influence how the Atlas Reasoning Engine routes incoming prompts:

Writing Topic-Level Instructions

Topic instructions provide the specific behavioral guidelines and procedural steps the agent must follow once a topic is active. Administrators should draft instructions in clear, imperative natural language:

Administrators should aim for a focused design: typically 10 to 15 distinct topics per agent, ensuring minimal semantic overlap between classification descriptions so the engine does not hesitate or misclassify requests.

Step 2: Attaching and Configuring Actions

Actions are the functional tools an agent invokes to retrieve information, create or update records, and execute external business logic. Without actions, an agent can only converse; with actions, an agent can perform real work.

Types of Actions Available to Administrators

Administrators can attach several types of actions to a topic:

Action TypeImplementation MechanismTypical Use Cases
FlowsAutolaunched flows configured in Flow BuilderUpdating Salesforce records, creating service cases, triggering approval requests, querying multi-object data.
Apex ClassesInvocable Apex methods annotated with @InvocableMethodComplex calculations, high-volume batch queries, cryptographic validation, legacy system bridges.
Prompt TemplatesStandard or custom prompt templates created in Prompt BuilderDrafting personalized emails, summarizing conversation transcripts, generating customized product recommendations.
External Services & MuleSoft APIsOpenAPI specifications or MuleSoft Anypoint endpointsFetching real-time shipment data from third-party logistics systems, checking payment gateway balances, reserving inventory in ERPs.

Configuring Action Parameters and Metadata

When adding an action to a topic, administrators must configure parameter definitions with precise natural language descriptions:

  1. Select the Action: Within the topic detail view, click Add Action and search for the target Flow, Apex method, Prompt Template, or External Service.
  2. Define Action Description: Provide an explicit explanation of what the action accomplishes and when it should be called. Atlas reads this description to decide whether the action fits the current step of its reasoning plan.
  3. Map Input Parameters: For each required input parameter (such as caseId, customerId, or billingZipCode), specify whether the agent should extract the value from the ongoing conversation context, request it directly from the user, or pass a static system variable.
  4. Define Output Handling: Configure how the agent processes the action's returned values. Specify whether the output should be returned directly to the user as a synthesized message or passed back into the reasoning loop as context for a subsequent action.
  5. Require Confirmation (State-Altering Operations): For sensitive or irreversible operations—such as processing a payment, canceling a contract, or deleting a scheduled service appointment—administrators can enable confirmation requirements, forcing the agent to explicitly ask the user for verification before executing the action.

Step 3: Implementing Multi-Layered Guardrails

Autonomous agents require robust governance to prevent hallucination, data leakage, policy violations, and unauthorized data modifications. Administrators implement guardrails across four distinct layers: conversational instructions, deterministic logic, access permissions, and platform trust controls.

1. Conversational Guardrails via Natural Language Instructions

The first line of defense is explicitly stating negative constraints within topic instructions. Administrators should treat instructions like standard operating procedures given to an employee:

2. Deterministic Logic Guardrails

While LLMs excel at understanding conversational nuances, mission-critical calculations and deterministic business rules should never be left to generative estimation. Administrators should enforce strict boundaries by moving critical logic into deterministic code:

3. Permission and Access Control Guardrails

Agentforce agents execute actions within a specific execution context. Administrators must enforce the principle of least privilege across the agent's identity:

4. Platform-Level Guardrails: The Einstein Trust Layer

Agentforce operates on top of Salesforce's Einstein Trust Layer, providing built-in security features that require minimal administrative configuration:

Step 4: Testing, Observability, and Refinement

Before deploying an agent to live customer or internal channels, administrators must validate its reasoning pathways and refine its instructions.

Using the Conversation Preview Panel

Agentforce Builder includes an interactive Preview panel that allows administrators to simulate conversations in real time:

  1. Test the "Happy Path": Enter standard user inquiries to verify that the agent correctly classifies the intent, selects the proper topic, and calls the appropriate action.
  2. Inspect Reasoning Traces: Click on the reasoning summary in the preview window to review the agent's internal thought process. Inspect which topic was selected, which instructions influenced the response, and what input parameters were passed to invoked actions.
  3. Test Edge Cases and Guardrails: Intentionally submit out-of-scope queries, ambiguous requests, and adversarial prompts (such as asking the agent to ignore its instructions or reveal internal system configurations). Confirm that the agent remains within scope, cites company policies appropriately, or escalates to a human representative.

Deploying and Monitoring in Production

Once configuration and sandbox testing are complete:

By systematically defining granular topics, empowering them with robust invocable actions, and securing them with multi-tiered guardrails, Salesforce administrators transform generative models into reliable, autonomous digital coworkers capable of driving enterprise efficiency while safeguarding corporate standards.