Sub topic 16
Running the loop as a routine
This chapter assumes you have built a simple agent in Agentforce Builder. It also assumes you know the loop from earlier chapters: monitor, diagnose, change, test, release. Here you turn that loop into a repeating routine, so improvement does not depend on someone remembering to check.
Why a routine matters
An agent that works at launch can drift. Customers ask new things, products change, and knowledge articles go stale. A one-time review catches only the problems that exist that week. A scheduled review catches problems as they appear, and it gives you a steady baseline for comparing metrics before and after each release.
Set a cadence
Pick a rhythm that matches your conversation volume and the risk of a bad answer.
| Cadence | Activity | Output |
|---|---|---|
| Daily or weekly | Check the dashboard for changes in resolution rate, escalation rate, and feedback | A short list of topics that moved |
| Weekly or biweekly | Review a sample of conversations from the flagged topics | Classified failures, each tied to a cause |
| Per change | Run the regression test set, then release | A new version and a before/after comparison |
| Monthly or quarterly | Review metric definitions, access to conversation data, and stale knowledge | Updated metrics, permissions, and content |
A low-volume agent can combine the first two rows. A high-risk agent, such as one that touches payments, should review more often.
A weekly review
Keep the routine small enough that people actually do it.
- Compare this week's resolution rate, escalation rate, and feedback with last week's.
- Find the topic with the largest rise in escalations.
- Open five to ten conversations from that topic and read the reasoning steps.
- Classify each failure as a topic, action, instruction, grounding, data, or guardrail problem.
- Make one targeted change per cause, and add the failed conversation to the regression test set.
- Run the test set, release, and note the date and version.
The next week's numbers then show whether the change worked.
Keep a change log
Write down each release: the date, the version, the problem it addressed, the change, and the metric you expect to move. Without this, a later drop in resolution rate is hard to trace to a cause. With it, you can check whether the drop followed a release or came from outside, such as a new product launch.
Common errors
- Changing several things at once. If resolution improves, you cannot tell which change helped. If it worsens, you cannot tell which to undo.
- Skipping the regression run. A fix for one topic can break another. The test set exists to catch this.
- Reading only escalated conversations. Some failures end as "resolved" with a wrong answer. Include a random sample of resolved sessions.
- Letting the test set go stale. Add new cases as the agent's scope changes, and remove cases for retired features.
- Ignoring governance. Reviewers need access to real customer conversations. Revisit who has that access on a schedule, and follow your privacy rules when reading and sharing examples.
Exercise
Your escalation rate rose from 12% to 18% the week after a release. Name two things you would check first, and why a change log helps.
Show answer
Check which topics account for the new escalations, and read sample conversations from those topics to classify the cause. Also compare the release date and the changes it contained against the start of the rise. The change log shows what changed and when, so you can tell whether the rise followed your release or has an outside cause. If the release is the likely cause, run the regression tests to find the case that now fails.
Exercise
Why should the weekly sample include some conversations marked as resolved?
Show answer
A conversation can be marked resolved while the agent gave a wrong or incomplete answer. Reading only escalations misses these failures.