Sub topic 2
Reviewing Individual Agentforce Conversations
Assume you know Agentforce topics, actions, instructions, and grounding. This chapter focuses on diagnosing one poor conversation and turning the diagnosis into a targeted change.
Reviewing individual conversations
Start with the complete session, not only the final answer. Record:
- The customer's utterance and conversation history.
- The topic selected at each turn.
- Actions considered and actions actually run.
- Retrieved grounding data and its source.
- The final response, feedback, and escalation outcome.
Separate the customer's need from the agent's behavior. For example, “I want to send back the shoes I bought last week” is a returns request. If the agent gives a delivery date, the first question is whether it selected the wrong topic.
Reading the reasoning trace
A reasoning trace is the recorded sequence of decisions available for review. Read it as evidence of selection, not as a perfect explanation of the model's internal thinking. Look for:
- The topic candidates and the selected topic.
- The information the agent used to select that topic.
- The action it chose, skipped, or called with missing inputs.
- The grounding result and whether it answered the customer's question.
- The handoff decision.
A trace that selects Order Status for a returns request points toward topic scope or routing instructions. A correct Returns topic that gives an invented policy points toward grounding or instructions.
Classifying what went wrong
Use one primary category before changing anything:
| Failure | Evidence | Likely fix |
|---|---|---|
| Topic | Wrong topic selected | Narrow scope and exclusions |
| Action | Wrong, missing, or invalid action call | Clarify inputs and action description |
| Instruction | Correct topic, poor behavior | Rewrite the procedure |
| Grounding | Missing or conflicting facts | Correct knowledge or retrieval |
| Data | Record or field is wrong | Fix source data or permissions |
| Guardrail | Unsafe or unauthorized response | Strengthen limits and escalation |
Improving topics and instructions
Make the smallest change that addresses the evidence. Define what the topic handles and excludes, then state the required sequence and fallback.
Topic description:
Handle status, tracking, and delivery dates for existing orders.
Do not handle returns, refunds, or cancellations.
Instruction:
Ask for the order number when it is missing. Use the order lookup action.
If no order is found, explain that and offer human assistance.Retest the original conversation and nearby cases. A fix that routes returns correctly must not break ordinary order-status requests.
> callout tip > Do not infer a root cause from the final response alone. Verify the selected topic, action inputs, and grounding result first.
Exercise
The agent selects Returns but states an unsupported refund period. Which category should you investigate first?
Show answer
Grounding, unless the trace shows that the topic instructions told the agent to invent or assume a policy.