What is Session Tracing in Agentforce architecture?

In Agentforce architecture, inspect turn-by-turn interactions, actions, inputs, outputs, errors, and final responses. This guide explains the design decisions, controls, and implementation checks needed to apply the pattern in production.

A fluent response can hide the wrong route, stale grounding, an omitted action, or a recovered error. Session tracing exposes the execution path behind the conversation so teams can investigate behavior with evidence.

The trace should be read as an ordered operational record: what the agent received, which subagent and actions it selected, how variables changed, what tools returned, and how long each step took.

Agentforce Builder preview with interaction summary and session tracing details
Official Salesforce visual used as a product reference. Source:Salesforce Trailhead — Explore Agent Testing Tools and Considerations

Read more than the transcript

  • Compare the user-visible answer with the ordered processing steps that produced it.
  • Check action inputs and outputs for data-shape, authorization, and error-handling problems.
  • Use variable changes to find where an incorrect assumption first entered the session.
  • Treat traces as sensitive operational data and apply appropriate access, retention, and review controls.

Investigate a failed session

  1. Start with the expected route, action, and outcome for the user's request.
  2. Find the first trace step that diverged from that expectation rather than debugging the final message alone.
  3. Classify the cause as routing, grounding, instruction, action, integration, permission, or response quality.
  4. Fix the responsible layer, reproduce the session in testing, and retain it as a regression case.
Further reading

Resources

This Tucario article is based on the following Salesforce learning and product documentation.

Continue the architecture path
ObservabilityAgentforce Testing Strategy

Move from representative scenarios to evaluation criteria, human validation, and iteration.

ObservabilityExplore Agent Testing Tools

Compare preview modes, session tracing, test suites, and evaluation criteria.

ObservabilitySet Up Testing Criteria

Define expected subagents, actions, and response-level evaluation criteria.