Agentforce

Agentforce Implementation: What You Are Deploying and How to Keep It Safe

An Agentforce agent is only as good as the data it can reach and the actions you let it take, so most of the implementation effort goes into grounding and guardrails rather than the agent itself.

RASPSYS Admin11 min read

Short answer

An Agentforce agent is only as good as the data it can reach and the actions you let it take, so most of the implementation effort goes into grounding and guardrails rather than the agent itself. This guide covers what an agent is made of, how to choose a first use case that will not embarrass you, how testing differs from ordinary software testing, and what to measure.

What an Agentforce Agent Is Made Of

Agentforce is Salesforce's framework for building AI agents that can hold a conversation and take action inside your org. Understanding what an agent is composed of makes it much easier to judge an implementation proposal, because the effort is not evenly distributed across the parts.

An agent has a defined role and set of instructions, a library of topics it is allowed to handle, and a set of actions it can invoke — flows, Apex, prompt templates, or API calls. It is grounded in your data through retrieval over records and knowledge articles, and it is bounded by guardrails that determine what it may say, what it may do, and when it must hand over to a human.

The conversational quality comes largely from the underlying model and requires little work from you. The accuracy comes from grounding, and the safety comes from guardrails. Those two are where the project lives.

Component What it does Share of implementation effort
Agent role and instructions Defines persona, tone, and what the agent is for Small, but worth getting precisely right
Topics The categories of request the agent will handle Moderate; the boundary between topics causes most misrouting
Actions Flows, Apex, and prompt templates the agent can invoke Large where the agent writes data; small where it only reads
Grounding and retrieval Which records and knowledge the agent can draw on Largest single item; depends entirely on data quality
Guardrails What the agent must not say or do, and when to escalate Large, and consistently underestimated
Testing and evaluation Confirming behaviour across realistic conversations Large, and unlike any testing your team has done before

A proposal that is mostly about building actions and barely mentions grounding or evaluation has misjudged the work. Ask specifically how the agent will be tested and what the acceptance criteria are.

See how RASPSYS delivers Agentforce projects →

Choosing a First Use Case That Will Succeed

The most consequential decision in an Agentforce programme is the first use case, and the instinct to choose something impressive is usually wrong. A narrow agent that reliably handles a dull task builds organisational confidence. A broad agent that handles most things adequately and occasionally says something indefensible destroys it.

Good first candidates share a few properties: the questions have verifiable answers held in your own data, the volume is high enough to matter, a wrong answer is recoverable rather than damaging, and there is a clear escalation path to a person.

Candidate use case Why it works or does not Verdict for a first deployment
Order status and tracking enquiries Answer is a fact in your data; wrong answers are correctable; high volume Strong first candidate
Knowledge-base question answering Grounded in articles you control; escalation is natural Strong, provided the knowledge base is current
Case summarisation for agents Human reviews output before it is used; no customer exposure Very low risk; good for building internal trust
Appointment scheduling Bounded action set, verifiable outcome Good, if the calendar integration is reliable
Pricing and quoting Wrong answers have commercial consequences and may be binding Not first; needs strict guardrails and human approval
Complaints and regulated advice High stakes, often legally constrained Avoid until the programme is mature, and involve compliance

A question that filters most bad ideas

If the agent gave a confidently wrong answer to this question, what would happen? If the answer is "a customer would be misled about something that matters financially, legally, or clinically", that use case belongs later in the programme behind a human approval step.

The second filter is data. Pick a use case where the grounding data is already accurate, because an agent grounded in stale knowledge articles or inconsistent records will produce fluent, confident, wrong answers — which is considerably worse than no agent at all.

Grounding: Why Data Quality Becomes Urgent

Grounding is how an agent gets facts about your business. It retrieves relevant records and knowledge, and supplies them to the model as context so the answer is based on your data rather than on the model's general training.

This is the mechanism that makes Agentforce useful, and it is also the mechanism that makes data quality an immediate operational concern rather than a background hygiene issue. A reporting dashboard built on inconsistent data produces a number somebody might question. An agent built on inconsistent data states it to a customer in a complete sentence.

  • Audit the knowledge base first. Count articles that have not been reviewed in a year, articles that contradict each other, and articles describing processes that have changed. Retire before you ground.
  • Check record completeness for the specific fields the agent will read. Not the whole object — the handful of fields the use case depends on.
  • Decide what the agent does when data is missing. Saying "I don't have that information, let me connect you to someone" is a correct and underused answer.
  • Restrict retrieval by permission. The agent should see what the user it is acting for is entitled to see, not everything in the org.
  • Version the knowledge. When an article changes, the agent's answers change. Someone should own that and know it.

Most Agentforce programmes discover a data remediation project inside them. Budgeting for it up front is considerably better than finding it during user acceptance testing.

Get help with data quality before an AI rollout →

Guardrails, Escalation, and What the Agent May Do

Guardrails are the constraints that keep an agent inside its remit. They are the part of the implementation that compliance, legal, and risk functions care about, and involving those functions late is a reliable way to delay a launch.

Guardrails operate at several levels, and a complete design uses all of them rather than relying on instructions alone. Instructions in the agent's prompt are the weakest form of control; what the agent is technically capable of doing is the strongest.

Guardrail type How it works Strength
Action scope The agent can only invoke the actions you have registered Strongest — it cannot do what it has no action for
Permission context The agent runs with a defined user context and sharing applies Strong — enforced by the platform, not by the model
Approval steps Certain actions require a human to confirm before execution Strong — bounded by whether the reviewer actually reviews
Topic boundaries Requests outside defined topics are routed away Moderate — depends on classification accuracy
Instructions Prompt-level rules about tone and what not to discuss Weakest — helpful, but not a control you should rely on alone
Escalation triggers Defined conditions that hand the conversation to a person Essential — the agent must have a way to stop

Write the escalation rules before the happy path. An agent that can answer ninety per cent of questions and has no graceful way to handle the other ten per cent will generate complaints that outweigh the saving.

A rule worth adopting

Any action that moves money, changes an entitlement, commits the organisation, or cannot be undone should require explicit human approval in the first release — regardless of how confident the agent appears. You can relax this later with evidence; you cannot un-send a wrong commitment.

Testing an Agent Is Not Like Testing Software

Conventional testing asserts that a given input produces an exact output. Agents are non-deterministic: the same question asked twice may produce differently worded answers, both correct. Teams used to assertion-based testing find this genuinely disorienting, and projects that do not adapt their test approach end up shipping on vibes.

The workable approach is evaluation against a curated set of realistic conversations, scored on whether the answer was factually correct, whether it stayed in scope, whether it escalated when it should have, and whether the tone was acceptable. Salesforce provides testing tooling for this, but the test set itself has to come from you.

01

Build a conversation corpus

Collect several hundred real customer or user questions from existing channels. Do not invent them; invented questions are too well-formed.

02

Include the awkward ones

Ambiguous questions, questions outside scope, questions containing incorrect premises, and attempts to push the agent off topic.

03

Define scoring criteria

Factual accuracy, scope adherence, correct escalation, tone. Score each independently rather than giving one overall mark.

04

Establish a pass threshold

Agree before testing what score permits launch. Deciding afterwards invites negotiation with the schedule.

05

Re-run after every change

Prompt changes, knowledge updates, and new actions can all alter behaviour on unrelated questions. Regression here is real.

06

Keep testing after launch

Sample live conversations continuously. The distribution of questions changes once customers know an agent exists.

That last point is frequently missed. The questions people ask a human agent and the questions they ask a bot are not the same distribution. Your pre-launch corpus is an approximation, and the real one only exists after go-live.

Rolling It Out Without a Public Incident

A staged rollout is strongly advisable, and the stages are not merely about percentage of traffic — they are about how much human oversight sits between the agent and the outcome.

01

Internal only, suggestion mode

The agent drafts; a human sends. No customer sees agent output directly. This surfaces accuracy problems at zero risk.

02

Internal only, direct use

Staff use the agent to answer their own questions. They will report problems candidly in a way customers will not.

03

Customer-facing, narrow topic

One topic, with an obvious route to a human on every turn, during staffed hours only.

04

Customer-facing, extended hours

Widen the window once you have evidence from the staffed period about what goes wrong.

05

Additional topics

Each new topic repeats the evaluation cycle. Topics are the unit of expansion, not percentages of traffic.

Keep a kill switch and make sure the people on duty know where it is and are authorised to use it without seeking approval. An agent behaving badly at two in the morning should be stoppable by whoever notices.

Plan a staged Agentforce rollout →

Measuring Whether the Agent Is Earning Its Keep

Agentforce is consumption-priced, so unlike most Salesforce capability the running cost scales with usage. That makes measurement a commercial necessity rather than a nice-to-have.

Measure Compare against How to read it
Containment rate Target set before launch, by topic The headline number, but meaningless without the satisfaction measure beside it
Escalation rate and reason Baseline from the staffed pilot Rising escalations on one topic usually indicate a grounding gap, not a model problem
Factual accuracy on sampled conversations Pre-launch evaluation score The measure that matters most and the one most often dropped after launch
Customer satisfaction for agent-handled contacts Satisfaction for human-handled equivalents If it is materially lower, containment is costing you more than it saves
Handle time for escalated conversations Handle time before the agent existed A poorly designed handover makes escalated contacts longer, cancelling the benefit
Cost per resolved contact Fully loaded cost of the human equivalent Include consumption cost, platform cost, and the ongoing evaluation effort

The row most often omitted is the last. An agent is not free to run, and the ongoing cost includes the human effort of sampling conversations and maintaining knowledge. Include that in the business case so the comparison is honest.

Frequently Asked Questions

What is Agentforce and how does it differ from a chatbot?

Agentforce is Salesforce's framework for building AI agents that hold a conversation, retrieve information from your org, and take defined actions within it. A traditional chatbot follows a scripted decision tree and can only do what the script anticipates. An Agentforce agent interprets the request, retrieves relevant records and knowledge to ground its answer, and invokes registered actions such as flows or Apex. The practical difference is that the agent handles phrasing you did not anticipate — and that the controls you need are different, because you are bounding behaviour rather than scripting it.

What guardrails does an Agentforce deployment need?

Several layers, used together. The strongest is action scope: the agent can only do what you have registered as an action, so it cannot perform an operation you never gave it. Next is permission context, since the agent runs as a defined user and record sharing applies. Then approval steps for consequential actions, topic boundaries, and escalation triggers. Prompt instructions are the weakest layer and should never be the only control. As a rule, anything that moves money, changes an entitlement, or cannot be undone should require human approval in the first release.

How do you test an AI agent before launch?

Not with conventional assertions, because the same question can produce differently worded correct answers. Instead, build a corpus of several hundred real questions taken from existing channels — including ambiguous ones, out-of-scope ones, and questions containing incorrect premises — and score responses on factual accuracy, scope adherence, correct escalation, and tone. Agree the pass threshold before testing rather than afterwards, and re-run the full set after any prompt, knowledge, or action change, because those can alter behaviour on unrelated questions.

What is the best first use case for Agentforce?

Something narrow, high-volume, grounded in facts you already hold accurately, and recoverable if the answer is wrong. Order status enquiries and knowledge-base question answering are reliable choices. Internal case summarisation is lower risk still, because a human reviews the output before it is used. Avoid pricing, regulated advice, and complaints handling in a first deployment — not because the technology cannot attempt them, but because a confidently wrong answer in those areas causes damage that outweighs the efficiency gained.

How much does Agentforce cost to run?

Agentforce is consumption-priced, so the running cost scales with usage rather than being a fixed per-user licence. That makes measurement a commercial necessity: track containment rate, escalation rate, sampled factual accuracy, and customer satisfaction for agent-handled contacts against the human equivalent. Include the ongoing human cost of sampling conversations and maintaining the knowledge the agent is grounded in — that effort does not disappear after launch, and a business case that omits it will overstate the saving.

Planning an Agentforce Deployment?

RASPSYS can help you pick a first agent use case that is narrow enough to succeed, ground it in data that is actually correct, define the guardrails and escalation paths before go-live, and measure whether it is doing what you hoped.