Sub topic 8
What the Confirmation Conversation Looks Like
This chapter shows what a user sees when an agent asks for confirmation before it changes data. It also covers what the agent does with each possible reply. You should already know what an Agentforce action is, how to open Agent Builder, and the difference between an action that reads data and one that changes it. Earlier chapters covered the "Require user confirmation" setting and topic instructions. Here you look at the conversation they produce.
The four steps of a confirmation
A good confirmation conversation follows the same pattern every time:
- Request. The user asks for a change, such as closing a case.
- Summary and question. The agent states which record will change and what the new value will be. Then it asks whether to go ahead.
- Reply. The user approves, declines, or says something unclear.
- Outcome. The agent runs the action only after a clear yes. Otherwise it does nothing and says so.
The important rule is in the unclear branch. Silence and vague replies count as "no". The action runs only on explicit agreement.
A complete example
This is the sample conversation for the Update Case Status action from the Apex example:
User: Close case 5001R00000AbCdE.
Agent: I will set the status of case 5001R00000AbCdE to Closed. Do you want me to go ahead?
User: Yes.
Agent: The case is now Closed.Look at what the agent's second message contains:
- The record: case
5001R00000AbCdE. - The field and new value: the status becomes Closed.
- A direct question the user can answer with yes or no.
The agent can only name these details if it has collected them. In this example the action's inputs are caseId and newStatus, and the labels and descriptions you wrote on the @InvocableVariable annotations tell the agent to ask for both. If an input is missing, the agent should ask for it before it asks for confirmation.
Where the confirmation comes from
Two mechanisms can produce this behavior, and they feel different to the user.
| Mechanism | What it does | Typical user experience |
|---|---|---|
| Require user confirmation (action setting) | The platform pauses before the action runs and asks the user to approve | A consistent prompt that does not depend on the model's wording |
| Topic instruction wording | The agent's reasoning is told to summarize and ask first | A natural-language question, phrased by the agent |
The setting enforces the pause. The instruction shapes how the agent talks about it. Used together, the user gets a clear summary and the platform makes sure the action cannot run without approval. The instruction text from the spine reads:
Before running the Update Case Status action, tell the user which case will change and what the new status will be, then ask them to confirm. Run the action only after the user clearly agrees. If the user declines or does not answer, do not run the action.This text covers all three replies: agreement, refusal, and silence.
How the agent should handle each reply
The reply decides what happens next.
| User reply | Expected agent behavior |
|---|---|
| "Yes", "Go ahead" | Run the action, then report the result |
| "No", "Cancel" | Do not run the action. Confirm that nothing changed |
| "Make it Pending instead" | Update the summary with the new value and ask again |
| "Maybe", an unrelated question, or no answer | Do not run the action. Answer the question or repeat the confirmation |
A changed value needs a fresh confirmation. If the user approved "Closed" and then switches to "Pending", the earlier approval no longer applies.
A declined conversation looks like this:
User: Close case 5001R00000AbCdE.
Agent: I will set the status of case 5001R00000AbCdE to Closed. Do you want me to go ahead?
User: No, wait. It still needs a follow-up call.
Agent: Understood. I have not changed the case. It is still open.Common problems
- Vague summaries. "I will update the case" does not tell the user anything. This usually means the action's inputs or descriptions are too generic. Name the record and the new value.
- Confirmation after the change. If the agent says "Done. Is that okay?", the action has already run. Check that the action setting is on and that the instruction says "before running."
- Treating any reply as approval. If the agent proceeds after "hmm", tighten the instruction to require a clear yes.
- Missing details. If the summary omits the record Id, the action input may not be collected until after the question. Make the input required.
Exercises
Exercise
A user says "Close case 5001R00000AbCdE." The agent replies "Done, the case is closed. Was that what you wanted?" Name two things to check in the configuration.
Show answer
Check that "Require user confirmation" is enabled on the action, so the platform pauses before it runs. Also check that the topic instruction tells the agent to summarize the change and ask before running the action. In this reply the action ran first and the question came afterward.
Exercise
The agent asked "Do you want me to set case 5001R00000AbCdE to Closed?" and the user replied "Actually, make it Escalated." What should the agent do next?
Show answer
It should not run the action. It should update its summary to say the case will be set to Escalated and ask for confirmation again, because the earlier question was about a different value.