Agentforce Testing & Evaluation

You built an agent. How do you know it actually works before it ships? This track answers that question in five parts — batch testing, utterance design, response scoring, regression in CI and red-teaming — each anchored in a real project scenario.

The series

Five layers of confidence, in order

Each part is a standalone build, but they stack: the test set from Part 1 becomes the regression baseline in Part 4 and the attack catalog in Part 5. Read them in sequence the first time.

How it fits together

What each layer catches

Every layer exists because a demo can't catch a specific class of failure. Here's the map.

LayerThe failure it catchesScenario in the series
Batch testing Real customer questions landing on the wrong topic or action. A retail bank finds 29 of 200 real questions misroute — before go-live, not after.
Utterance design The agent handling one phrasing of an intent and failing fourteen others. A telco's "you've overcharged me" routes to the wrong topic while the polite version passes.
Response evaluation Right topic, wrong answer: invented facts, missing caveats, off tone. A healthcare agent quotes a fasting window its own Knowledge article contradicts.
Regression & CI A one-sentence instruction edit silently changing behavior everywhere. An e-commerce refund flow breaks for two weeks with zero errors logged.
Red-teaming Hostile input extracting data or actions the user isn't entitled to. An insurer's agent returns another customer's policy excess — until the action enforces access in code.

Keep going

Related building blocks

Testing proves behavior; these posts are where the behavior gets built — and hardened.