Sub topic 3
Audit trail and feedback data
This chapter assumes you can build a simple agent in Agentforce Builder. It also assumes you know what topics, actions, instructions, and grounding are. You should be comfortable reading rates and counts.
Conversation transcripts show what the agent said. Two other data sources help you explain why it said it and how users judged it: the Einstein Trust Layer audit trail and feedback data. This chapter covers what each one contains and how to use them when you review conversations.
What the audit trail records
The Einstein Trust Layer sits between Agentforce and the large language model (LLM). Every prompt passes through it. Salesforce can store an audit record of this traffic, which lets you check what happened to a prompt on its way to the model and back.
An audit record typically covers these points:
- The prompt sent to the model, after grounding data was added.
- Whether sensitive values were masked before the prompt left Salesforce.
- The response returned by the model.
- The results of toxicity and safety checks on the response.
Which fields you see, and where, depends on your org's configuration and Data Cloud setup. Check Salesforce Help for your release before you rely on a specific field name.
When to use the audit trail
Open the audit record when a transcript looks fine but the answer was wrong, or when the answer was blocked or odd. Typical questions it answers:
- Did the prompt include the grounding data you expected, or was a record missing?
- Was a value masked, so the model never saw the detail it needed?
- Did a safety check change or block the response?
This helps you separate a grounding problem from an instruction problem. If the needed data never reached the prompt, rewriting the instruction will not fix it.
Feedback data
Feedback is the user's own judgment of a response. Depending on how your channel is set up, users can mark a response helpful or not helpful, and sometimes add a comment. Agent users, such as service reps who work with generated responses, may also give feedback.
Feedback has limits you should keep in mind:
- Few users give it, so counts are small and biased toward strong opinions.
- A thumbs-down says a response was poor but not why.
- Comments may contain personal data and need the same care as transcripts.
Treat feedback as a pointer. It tells you which sessions to open first, not what to change.
Using both together
A practical routine is to filter sessions with negative feedback, sample a handful, and check each against its audit record. Note the cause for each one. Later chapters turn these notes into a failure taxonomy.
Exercise
A customer gives a thumbs-down to an answer about a delivery date. The transcript looks reasonable, but the date was wrong. What do you check in the audit record first, and why?
Show answer
Check whether the prompt contained the correct order data. If the data was missing or masked, the model could not have used it, so the fix belongs in grounding or data access. Only if the data was present should you rewrite instructions.