Cert++
Close

Final response validation for Service agents

Key Takeaway

An Agentforce Service agent validates its proposed response before it sends it. If the response fails, the agent replaces it with a new one, which can happen after the response has started streaming to the user.

Final response validation is the last check an Agentforce Service agent runs on its proposed response before it sends that response to the user. It is an extra step between reasoning and sending, at the end of the path that every user message follows through the Atlas reasoning engine.

The path a user message follows through the Atlas reasoning engine

Every user message follows a set path through the Atlas reasoning engine:

  1. The agent goes to the starting subagent, which is the subagent marked with the start_agent prefix in Agent Script. By default, this is the Agent Router. The Agent Router picks a subagent based on recent conversation history and the subagents available to the agent.
  2. The agent resolves that subagent's reasoning instructions top to bottom, in the order they're written. No LLM is involved yet. If an instruction transitions to another subagent, the agent redirects the conversation before any reasoning happens.
  3. The agent builds a prompt that holds:
    • the resolved subagent instructions
    • agent-level instructions
    • recent conversation history
    • the reasoning actions the subagent allows
  4. The agent reasons with the LLM. The LLM decides whether to:
    • run an action
    • ask for more information
    • ask a clarifying question
    • respond directly
  5. After the agent runs an action, it checks the result in a reasoning loop. It then decides whether to run another action, ask more questions, or send a final response. The agent can go through up to seven reasoning loops.
  6. Final response validation checks the proposed response. This extra step applies only to Agentforce Service agents. Other agent types, such as Agentforce Employee agent, don't have this step in their path.
  7. The agent sends the response to the user.
Agentforce Specialist Study Guide

Checklist progress

0/204Learned

Explain how an agent works and its basic building blocks of agent script

0/8

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other Agentforce Specialist studiers.