How to Choose an AI Model for Retrieval-Augmented Answers
Agentforce is Salesforce’s agent platform that sits inside your Salesforce org and resolves customer support cases using your own knowledge articles, CRM data, and chosen actions. You build it with Topics, Instructions, and Actions, then test it in a sandbox before switching it on for real customers. Here is the setup path that works without burning Flex Credits on failed tests.
What does Agentforce actually do in Service Cloud?
It reads an incoming case, picks one of the Topics you defined, follows your Instructions, and can call Actions like Look up order, Issue refund, or Escalate to human. If nothing matches, it hands the case to a queue.
Two things make or break the setup. First, the quality of your knowledge base. Second, how tightly you scope each Topic. An agent with one vague Topic called Help the customer will guess. Ten narrow Topics will not.
Step 1: Check your edition and credits before you build
Agentforce needs Salesforce Enterprise or above with the Agentforce add-on. Flex Credits are the billing unit. A standard customer conversation consumes credits per action, not per message, so a read-only lookup is cheap and a multi-step order change is not.
Before you touch the Builder, open Setup, search for Agentforce, and confirm the Agentforce Studio tile appears. If it does not, either the org lacks the add-on or your admin profile has no permission set for Agentforce Builder.
Step 2: Write Topics as narrow, testable jobs
A Topic is the intent the agent recognizes. Do not write one Topic per department. Write one Topic per job a customer would actually ask for.
Good examples:
- Check my order status
- Change my shipping address before shipment
- Explain a charge on my last invoice
- Cancel my subscription and confirm a refund date
Bad examples: “Support questions”, “Billing”, “General help”. Those are too wide, and the classifier will misfire between them.
For each Topic, the classification description matters more than the name. Write it the way a customer would speak, with three or four example phrasings.
Step 3: Give Instructions, not a blank prompt
Instructions are the rules of engagement. Write them as short imperative lines.
- Always confirm the customer’s identity before reading order data.
- Never quote a refund amount over 200 dollars without a human approval action.
- If the customer mentions a legal threat, stop and escalate immediately.
Keep each Instruction under 20 words. Long paragraphs get diluted. If you need policy documents, attach them as a Knowledge source, not as instructions.
Step 4: Attach only the Actions the agent needs
Actions are Flows, Apex, or Prompt Templates the agent can call. Each Action costs credits and each one widens the chance of a wrong call.
Start with a read-only set: get order, get account, get invoice. Add write actions such as refund or address change only after the read-only version runs clean for a week.
Step 5: Test in a sandbox, then watch the handoff rate
Use Agentforce Testing Center with a set of 10 to 20 real historical cases. Ask two people to read the transcripts and mark each one as correct, partially correct, or wrong.
Push the build to a full sandbox with real data before production. In production, the metric to watch first is handoff rate. If more than 30 percent of conversations escalate immediately, your Topics are too narrow or your knowledge base is stale.
What breaks most often
Knowledge gaps are the usual suspect. If the agent says it cannot help with a question your help center already answers, the article is probably unpublished, in a different language, or missing the keyword the classifier looks for.
Second: overlapping Topics. Two Topics that both claim a customer asking about a broken delivery will split traffic randomly. Merge them or sharpen the descriptions.
Third: permissions. If the integration user lacks read access to the Order object, Actions fail silently in test.
Who should not use this setup
Teams with fewer than a few hundred monthly cases rarely justify the add-on cost. Small shops do better with a rules-based bot and a good FAQ. Also skip Agentforce if your data is spread across five systems with no clean object model, because Actions will keep failing on lookup.
Quick Summary
- Agentforce lives inside Salesforce and routes service cases using Topics, Instructions, and Actions.
- Costs are billed in Flex Credits per action, not per message.
- Keep Topics narrow: one job per Topic, one sentence per Instruction.
- Test in a sandbox with 10 to 20 real historical cases first.
- Watch handoff rate; over 30 percent escalation means the Topics need work.
If you are evaluating the platform before committing, the Agentforce overview covers plan limits and what each credit buys.
