Sub topic 1
The Monitor-and-Improve Loop
Prerequisites
Assume you know the basics of Salesforce setup and Agentforce: agents, topics, actions, instructions, prompts, and grounding. You should also be comfortable reading percentages and grouped counts.
The Monitor-and-Improve Loop
Improving an agent is a repeating cycle:
- Monitor real conversations and usage.
- Diagnose poor responses and unexpected behavior.
- Change a topic, instruction, action, grounding source, or guardrail.
- Test the change against real and designed examples.
- Release a new version.
- Compare results with the previous version.
The goal is a measured improvement, not simply a different response. Keep the change narrow so you can identify what caused the result.
What Agentforce Records About a Conversation
Conversation data usually includes session metadata, user and agent messages, selected topics, invoked actions, action results, timestamps, and outcome or feedback signals. The exact fields and access depend on your Salesforce setup and enabled features.
Treat an exported record as evidence about one interaction, not as a complete explanation. A message may show what the agent said, while the reasoning or event data can show which topic and action led to that response.
Audit Trail and Feedback Data
The Einstein Trust Layer and related Salesforce records can provide audit information about how data was handled and how an interaction progressed. Feedback may come from a user rating, a human reviewer, an escalation, or a failed business outcome.
Use these sources together. A positive rating does not prove that an order was updated correctly. An escalation does not always mean the agent failed; some requests should require a human.
>callout note > Review only the data needed for the improvement task. Follow your organization's access, retention, masking, and privacy rules.
Choosing Metrics That Fit Your Agent
Choose metrics from the agent's purpose. A support agent might track resolution rate, escalation rate, response time, and customer feedback. A sales agent might track qualified handoffs or completed actions. Define each metric before comparing versions.
| Metric | Useful question |
|---|---|
| Resolution rate | Did the agent complete the intended outcome? |
| Escalation rate | How often did a human need to take over? |
| Feedback score | How did users or reviewers rate the interaction? |
Reading Usage Analytics and Spotting Trends
Dashboards help you find patterns across many sessions. Group results by topic, channel, language, version, or date. A rising escalation rate for one topic is a stronger lead than a single unusual conversation. Check volume as well as percentages because a small sample can distort a rate.
Exercise
Four of ten sessions escalated, and three of those involved Returns. What should you inspect first?
Show answer
Inspect the Returns topic, its instructions, actions, and grounding before changing the whole agent.