Sub topic 9
Resetting the Conversation and Confirming the Fix
You changed a topic description or an instruction because a test failed. Now you need to know whether the change worked. This chapter covers how to reset the preview, rerun the same utterance, and check that the fix did not break anything else.
This chapter assumes you can already open the conversation preview, write test utterances, and read the reasoning trace. It also assumes your agent has at least one topic and one action.
Why you must reset before retesting
The preview keeps the whole conversation. Each new message is interpreted together with the earlier messages. If you retest in the same conversation, the agent may answer from earlier context, such as an order number you already gave. A test can then pass because of that history and not because of your fix.
Resetting clears the conversation and starts a new one. Use it every time you want to check a change.
The exact label and location of the reset control can differ between Builder versions. Look for a refresh or reset control in the preview panel, and check the current Salesforce documentation if you cannot find it.
The retest loop
Use the same steps for every fix:
- Run the failing utterance and record what the reasoning trace shows.
- Change one thing, such as one topic description or one instruction.
- Save your changes. If the preview does not pick up an unsaved change in your version of Builder, save or apply it first.
- Reset the conversation.
- Send the exact same utterance again.
- Compare the topic, action, inputs, and reply with what you expected.
Change only one thing per round. If you edit a topic description and an instruction together, a pass tells you nothing about which edit helped.
Example: fixing a wrong topic
Suppose the agent from the earlier chapters handles the utterance "I want to return the shoes I bought last week." The agent picked Order Status instead of a returns topic. You record the test:
Test: "I want to return the shoes I bought last week."
Expected topic: Returns
Expected action: Start Return
Expected reply: Asks which order the shoes belong to
Result: fail
Notes: Trace shows topic Order Status. The Order Status description
mentions "anything about a purchase."The trace points to the cause. The Order Status description is too broad, so it matches a return request. You narrow it to "Answer questions about the current status and delivery date of an existing order." Then you save, reset, and send the same sentence.
Now check each part of the result:
- The trace shows the Returns topic.
- The action is the one you expect, and its inputs are correct.
- The reply asks for the order, as the expected reply says.
If all three match, mark the test as pass. If the topic is right but the reply is wrong, the problem has moved from topic selection to instructions or actions. Record that as a new failure and start the loop again.
Check that the fix is stable
Language models can give different answers to the same input. One pass does not prove the fix. Send the utterance two or three times, resetting each time. Treat a result that passes only some of the time as a partial fix and keep refining.
A callout on what a flaky result means:
Run regression checks
A fix can move the problem elsewhere. Narrowing Order Status may stop it from handling a request it used to handle. After each fix, rerun a few earlier tests that passed. Include:
- The original utterance that failed.
- A variant phrasing of it.
- The tests for neighboring topics, such as Order Status for "Where is my order 00012345?"
- At least one out-of-scope request and one guardrail request.
Reset between every test. Otherwise, the answer to one test can influence the next.
The following table shows a simple results log after the fix:
| Utterance | Expected topic | Before fix | After fix |
|---|---|---|---|
| I want to return the shoes I bought last week. | Returns | Order Status | Returns |
| Where is my order 00012345? | Order Status | Order Status | Order Status |
| What's the weather like today? | Out of scope | Out of scope | Out of scope |
Keep this log. It becomes the start of a regression set that you can reuse after each later change.
Common mistakes
- Retesting without a reset. Earlier messages can hide the problem or the fix.
- Rewording the utterance. A new sentence is a new test. Use the exact failing text first, then try variants.
- Changing several things at once. You cannot tell which change worked.
- Trusting the reply alone. A correct-looking reply can come from the wrong topic or from an action with wrong inputs. Check the trace each time.
- Skipping regression tests. A fix to one topic can break another.
Exercise
You changed an instruction and sent the failing utterance again in the same conversation. The reply is now correct. Why can't you yet conclude that the fix worked, and what should you do?
Show answer
The earlier messages are still part of the conversation, so the agent may be using context from them, such as an order number already given. Reset the conversation, send the exact same utterance again, and check the topic, action, inputs, and reply in the reasoning trace. Then rerun a few earlier passing tests to look for regressions.
Exercise
After narrowing the Order Status description, the return request now reaches the Returns topic, but "Where is my order 00012345?" also goes to Returns. What does this show, and what is the next step?
Show answer
The fix caused a regression. The change moved the problem to a neighboring topic. Review the Returns description for wording that is too broad, change one thing, save, reset, and rerun both utterances, one reset per test.