Sub topic 14
Releasing a new version and validating the result
This chapter assumes you can edit topics, instructions, and actions in Agentforce Builder. It also assumes you have a regression test set from the previous chapter and know the metrics you chose earlier: resolution rate, escalation rate, and feedback signals. Menu names and version controls can differ between Salesforce releases, so check your org for the exact steps.
Why a release needs a plan
A fix that passes your tests can still change behavior in conversations you did not test. A release plan limits that risk. It answers three questions before you activate anything:
- What did we change, and what should move as a result?
- Which numbers will show whether it worked?
- How do we go back if it did not?
Step 1: Record a baseline
Before you activate the new version, save the current numbers for the same metrics you will compare later. Use a fixed window, such as the last two weeks, and note the number of sessions in it. Without a baseline you can only say the agent "feels better."
The script below computes the same summary for a before and an after export. It uses the hypothetical record format from earlier chapters.
def summarize(sessions):
total = len(sessions)
return {
"sessions": total,
"resolution": sum(s["resolved"] for s in sessions) / total,
"escalation": sum(s["escalated"] for s in sessions) / total,
}
before = [
{"resolved": False, "escalated": True},
{"resolved": False, "escalated": True},
{"resolved": True, "escalated": False},
{"resolved": True, "escalated": False},
]
after = [
{"resolved": True, "escalated": False},
{"resolved": True, "escalated": False},
{"resolved": True, "escalated": False},
{"resolved": False, "escalated": True},
]
b, a = summarize(before), summarize(after)
for key in ("resolution", "escalation"):
print(f"{key}: {b[key]:.0%} -> {a[key]:.0%}")Step 2: Run the tests, then release
Run the full regression set against the new version, not only the cases for the failure you fixed. A passing fix with a newly failing old case means the change leaked into another topic. Fix that before release.
Then activate the version. Where your org allows it, start with a limited audience, such as an internal channel or a small share of traffic, before opening it to everyone.
Step 3: Validate the result
Compare the same metrics over a window of similar length and similar traffic. Check these in order:
- The metric tied to your change. If you fixed returns routing, look at escalations in the Returns topic.
- The overall resolution and escalation rates.
- Metrics that could get worse as a side effect, such as negative feedback or sessions that end without an answer.
- A sample of real conversations, read with the reasoning trace.
| Observation | Likely meaning | Next step |
|---|---|---|
| Target metric improved, others steady | The fix worked | Keep the version and add new cases to the test set |
| Target improved, another topic worsened | The change leaked | Narrow the instruction and retest |
| Nothing moved | Wrong diagnosis, or too few sessions | Wait for more data or re-read conversations |
| Overall worse | Regression | Roll back and diagnose |
Rolling back
Keep the previous version available. If the metrics get worse or reviewers find new failures, reactivate the old version first and investigate afterward. Record what you learned in your change log.
Exercise
After a release, the escalation rate for Returns drops from 40% to 10%, but negative feedback on Order Status rises. What should you do?
Show answer
Do not call the release a success yet. Read sample Order Status conversations with the reasoning trace to see whether the narrowed Returns instruction changed routing there. If it did, adjust the instructions, add test cases for those conversations, and retest. If the rise is large and persistent, roll back to the previous version while you investigate.