Skip to main content
New tool CRON Expression Builder — preview next run times before you schedule Apex. Open the builder →
Agentforce & AI

Agentforce Service Agent: What It Is, How to Set It Up, and Limits

Salesforce Agentforce Service Agent answers customer questions autonomously. Here's what it can and can't do, the prerequisites, the topics-and-actions setup, and the guardrails to put in place before launch.

The short answer

Agentforce Service Agent handles customer conversations without a scripted dialog tree. A turn runs in six moves: the message arrives, the agent classifies it into a topic, picks an action inside that topic, runs it grounded by Data Cloud RAG, phrases the result, and hands off to a human when confidence is low.

Key takeaways It is one of three pre-built Agentforce templates, alongside Sales and Customer Insights, and unlike Einstein Bots it reasons about the conversation rather than walking a decision tree. Prerequisites are Data Cloud with at least one data space, Einstein Generative AI enabled for your region, and the Agentforce add-on SKU. Run the agent as a dedicated integration user with a narrow profile. That user is the security context for every action it executes. Three to seven topics is the sweet spot, each carrying 1 to 10 actions, and the description text is what the LLM reads to route a message.

Agentforce Service Agent is Salesforce's bet on autonomous AI for customer service. It decides what to do based on the conversation instead of walking a pre-built decision tree. This guide covers what it actually does, the prerequisites you need before turning it on, how to structure topics and actions, and the guardrails that keep it from going off the rails.

What is the Agentforce Service Agent?

The Service Agent is one of three pre-built Agentforce templates (Sales, Service, Customer Insights). It's built for customer-facing conversations, and a turn runs in six moves:

  1. A customer sends a message over web chat, Slack, WhatsApp, or a MuleSoft channel.
  2. The agent classifies it into a topic: Order Status, Refunds, Product Info, Account Settings.
  3. Inside that topic it picks an action, the specific Apex class, Flow, or Prompt Template that runs: Look up Order, Calculate Refund, Update Address.
  4. The action runs grounded by Data Cloud retrieval-augmented generation (RAG), so the response uses your data rather than generic LLM training.
  5. The LLM phrases the result as a natural-language reply.
  6. If confidence is low, the agent hands off to a human through Omni-Channel.

The architecture difference from Einstein Bots: there's no scripted dialog tree. The agent reasons about the conversation in context.

Prerequisites

Before you can build the Service Agent, you need:

  • Data Cloud, provisioned with at least one data space.
  • Einstein Generative AI, turned on for your region (US, EU, APAC supported as of 2026).
  • The Agentforce add-on SKU. Industries clouds bundle some allotment; otherwise it's a paid add-on on top of Sales or Service Cloud Enterprise+.
  • Permissions. Admins setting it up need Customize Application, Data Cloud User, Use Agentforce, and Execute Prompt Template. See How to enable Agentforce in Salesforce for the full step-by-step.

Step 1: create the agent

Setup → Einstein → Agentforce Builder → New Agent, then choose the Service Agent template. The template ships with starter topics ("Inquire About Order Status", "Update Account Information") that you can keep, modify, or delete. Pick a clear name and a user the agent runs as. That user is the security context for every action it executes, so give it a dedicated integration user with a narrow profile rather than a real human's account.

Step 2: define topics

Topics are how the agent categorizes incoming messages. Each topic needs a name for internal use, a description, and a scope.

The description is the prose the agent reads to decide whether a message belongs here, so be specific. "Order Status: use this when the customer asks about an existing order's progress, shipment, or delivery date" routes correctly. "Order stuff" doesn't. Scope is the opt-in or opt-out setting that controls which conversations consider the topic at all.

Three to seven topics is the sweet spot. Too few and the agent picks the wrong action; too many and routing accuracy drops.

Step 3: attach actions

Each topic gets 1 to 10 actions, in three flavors:

Action type Use case
Apex class Query Salesforce, call external APIs, complex logic
Flow Multi-step record updates, approval routing, declarative
Prompt Template Generative response with variables (draft email, summarize case)

Every action has a description telling the agent when to invoke it. As with topics, that description is where the work is: it's how the LLM decides "this is the right action for this user message."

// Example: Apex action that looks up an order by number
@InvocableMethod(label='Get Order Status' description='Returns shipment status for a given order number')
public static List<OrderResult> getOrderStatus(List<OrderRequest> requests) {
  List<OrderResult> results = new List<OrderResult>();
  for (OrderRequest r : requests) {
    Order__c o = [
      SELECT Id, Status__c, Shipment_Date__c, Tracking_Number__c
      FROM Order__c WHERE Order_Number__c = :r.orderNumber LIMIT 1
    ];
    results.add(new OrderResult(o));
  }
  return results;
}

The @InvocableMethod description and the @InvocableVariable field descriptions are what the agent reads when it chooses an action. Write them the way you'd explain the method to a junior coworker, not the way you'd write a comment for a compiler.

Step 4: test in the Plan tab

The Plan tab simulates conversations. You type messages as a customer would, and Salesforce shows you which topic the agent classified them into, which action it picked, what the Apex or Flow returned, and what the final natural-language reply looks like. Iterate here until the agent picks the right topic and action about 95% of the time on representative test messages.

Step 5: deploy to a channel

Agentforce Service Agent connects to Embedded Service chat (the standard Salesforce chat widget), Slack through the Slack-Salesforce integration, WhatsApp through Service Cloud Voice and a WhatsApp BSP, and a direct REST endpoint for custom apps.

Start small when you deploy. An internal beta or a single low-traffic page comes before opening it to all customers.

Limits and guardrails

Three categories to watch.

  1. Governor limits. Each action is regular Apex, with the same SOQL, DML, and CPU limits. Bulk-safe code is non-negotiable here, because concurrent customer messages mean concurrent action invocations.
  2. Action timeout. The agent expects each action to return in ≤60 seconds. Queue long operations such as refund processing or third-party callouts with Queueable Apex or Platform Events, and have the agent say "I've started that, I'll follow up in a minute" instead of blocking.
  3. Topic boundary. Don't let one topic do too much. "Order Management" with 30 actions confuses the agent. Split it into "Order Status", "Order Cancellation", and "Order Returns".

Guardrails before launch

  • Filter profanity and off-topic messages. The Einstein Trust Layer catches the obvious cases, but add a topic for "I don't know how to help with that" with a sensible response and a human handoff.
  • Check PII redaction. Trust Layer redacts SSN and credit card patterns by default. Verify it in the Plan tab with synthetic data.
  • Read the logs. Every conversation lands in AgentSession objects, so review them weekly for failed handoffs and topic misses.
  • Wire the escalation path. Always have a "transfer to human agent" action connected to Omni-Channel. Customers will eventually need it, and an agent that traps them in a chat window is a churn driver.

When not to use the Service Agent

  • Simple deflection. If your top five customer questions all have static FAQ answers, an Einstein Bot is cheaper and faster.
  • Highly regulated workflows. Agent-driven decisions in healthcare, finance, and legal need extensive testing and may face compliance review. Start with Sales Agent or Customer Insights instead.
  • Low conversation volume. Under roughly 50 conversations a month, the per-action cost outweighs the human-agent cost.

The Service Agent is a different paradigm from a chatbot. You stop scripting dialogs and start describing capabilities, then trust the LLM to orchestrate. Done well, it handles 60-80% of common customer questions autonomously and escalates the rest with full context. Done poorly, it confidently hallucinates wrong answers and damages your brand. The discipline above is what separates the two outcomes.

For the foundational setup (enabling Agentforce, prerequisites, permissions), see How to Enable Agentforce in Salesforce.

Frequently asked questions

What is Salesforce Agentforce Service Agent?

Agentforce Service Agent is Salesforce's autonomous AI agent for customer service. Unlike a chatbot that follows pre-built decision trees, the Service Agent reads a customer question, decides which 'topic' it belongs to, picks the right 'action' (an Apex class, Flow, or Prompt Template), runs it grounded in your Salesforce data via the Atlas reasoning engine, and replies in natural language. It can hand off to a human when confidence is low.

How do I set up Agentforce for Service Cloud?

Five steps: (1) enable Data Cloud + Einstein Generative AI + Agentforce in Setup; (2) create an agent in Agentforce Builder, choose 'Service Agent' template; (3) define topics (high-level areas the agent handles, e.g., 'Order Status', 'Refunds'); (4) for each topic, attach actions (Apex/Flow/Prompt Templates that fetch data or take action); (5) test in the Plan tab and deploy to a channel (web, Slack, WhatsApp).

What are topics and actions in Agentforce?

Topics are categories of conversation the agent can handle: 'Order Status', 'Account Lookup', 'Cancel Subscription'. Each topic has a description (used to route incoming messages) and a list of actions. Actions are the actual code or flow that does the work, such as querying Salesforce, calling an external API, or drafting a reply. The agent picks the topic from the user's message, then picks the right action within that topic.

How much does Agentforce Service Agent cost?

Agentforce uses consumption-based pricing per 'agent action', roughly per autonomous decision the agent makes. List pricing is tier-based (volume discounts apply). Salesforce typically includes a small free trial allotment for orgs already on Sales/Service Cloud Enterprise+, with additional capacity sold as add-on SKUs. Real-world unit cost varies by negotiated contract, so get current pricing from your AE.

What are the limits of Agentforce Service Agent?

Three categories of limits: (1) governor limits, since actions invoked from the agent run as the configured user and respect standard Apex/SOQL governor limits; (2) Data Cloud limits, because RAG grounding pulls from Data Cloud objects, which have their own throughput limits; (3) action timeout, as the agent expects each action to return within ~60 seconds, after which it falls back to a generic response. Long-running operations should be queued (Queueable) and the agent told to acknowledge the request.

Can Agentforce Service Agent escalate to a human?

Yes, through standard Service Cloud handoff mechanisms. Configure a 'transfer to agent' action that creates a Case, attaches the conversation transcript, and routes via Omni-Channel based on skills/availability. The customer does not have to repeat anything: the chat continues in the same window, and the human agent sees the full prior conversation.

What's the difference between Agentforce Service Agent and Einstein Bots?

Einstein Bots are scripted: you build dialogs with branches, intents, and slots, and the bot follows your script. Agentforce Service Agent is autonomous: you describe topics and actions, and the agent decides what to do based on the conversation. Bots are predictable but rigid; Service Agent is flexible but requires guardrails (topic descriptions, action descriptions, and clear escalation paths). Salesforce is positioning Service Agent as the successor to Einstein Bots for new builds.

Newsletter

One email every Tuesday

New guides, tool updates, and the release-note changes that break things.

No spam. Unsubscribe in one click.

Comments

Loading comments...

Leave a Comment