- Home
- /
- Salesforce Testing
- /
- Agentforce Testing
- /
- Human Handoff Testing
Agentforce Human Handoff Testing
Agentforce human handoff testing confirms that an AI agent escalates to a person at the right moment and transfers full context when it does, so a customer never has to repeat themselves and a case never stalls in a dead end. It is how teams verify the agent knows the limits of what it should handle alone.
An active-roadmap capability, available today for demonstration and proof-of-concept validation with Salesforce testing teams.
Why handoff is a test layer of its own
Most agent testing asks whether the agent did the job. Handoff testing asks the opposite question: does the agent recognize when it should stop and pass the conversation to a human. An agent that never escalates is as much a failure as one that escalates for everything, and both extremes damage the customer experience the deployment was meant to improve.
Two failure directions matter. Escalating too late traps a frustrated or at-risk customer with an agent that cannot help, on refund disputes, safety issues or repeated failed attempts. Escalating too early floods the queue and erodes the efficiency case for the agent at all. Correct handoff sits between them, and only testing against defined triggers proves the agent lands there.
A handoff has three parts, and each must be tested separately because any one can fail while the others work:
Trigger
Whether the agent recognizes the right moment to escalate, from explicit requests to sentiment, risk, repeated failure or out-of-scope topics.
Routing
Whether the conversation reaches the correct queue, skill or team through Omni-Channel, rather than a generic or wrong destination.
Context transfer
Whether the human receives the full history, the identified intent and the relevant records, so the customer does not start over.
Recognizing an escalation trigger is closely related to topic routing; for how the agent classifies a request in the first place, see Agentforce topic testing. This page owns the handoff itself: when to escalate and what to carry across.
How SyntraFlow approaches handoff testing
SyntraFlow is designed to script the conversations that should and should not escalate, then verify both the decision and the context that travels with it. It complements Salesforce-native tooling rather than replacing it.
Define escalation triggers
SyntraFlow can be configured with the conditions that should hand off, explicit requests, negative sentiment, high-risk topics, repeated failure and out-of-scope asks, plus the conditions that should not.
Script escalation conversations
Multi-turn dialogues drive the agent toward each trigger and, deliberately, toward near-misses that should be handled without a human, so both decisions are exercised.
Assert the escalation decision
Each test asserts whether an escalation occurred and when, catching both premature handoffs and cases where the agent should have escalated but kept trying.
Verify routing and context
Tests confirm the conversation reaches the correct queue and that the transferred payload includes the history, intent and records the agent should hand over.
Re-run as regression
Handoff suites are designed to re-run whenever prompts, topics, actions or the model change, so a tuning change never quietly moves the escalation threshold.
Salesforce provides native evaluation through Agentforce Testing Center, a Testing API and Agentforce DX, and handoff itself is delivered through Service Cloud and Omni-Channel routing. SyntraFlow is designed to complement these by validating trigger timing, routing and context transfer as repeatable regression with audit evidence.
Handoff scenarios and expected behaviour
Representative scenarios a handoff suite should cover, and what a passing agent does in each.
| Scenario | Trigger type | Expected behaviour |
|---|---|---|
| "Let me talk to a person" | Explicit request | Escalate promptly, route to the right queue, transfer full context. |
| Rising frustration | Negative sentiment | Recognize sentiment and offer or initiate handoff before the customer disengages. |
| Refund dispute over threshold | High-risk / policy | Escalate to an authorized human rather than acting outside its remit. |
| Third failed attempt | Repeated failure | Stop retrying, escalate, and pass what has already been tried. |
| Topic outside scope | Out of scope | Hand off rather than guess, routing to the team that can help. |
| Simple answerable question | Near-miss (no trigger) | Resolve directly without escalating, keeping the queue efficient. |
Handoff context can span systems
When an escalation involves an order, an invoice or an entitlement that lives in Oracle, SAP, NetSuite or Workday, the human agent needs that connected-system context too, not just the Salesforce conversation. A handoff that drops the ERP reference forces the person to go hunting, undoing the time the agent saved.
SyntraFlow is designed to validate that the context carried into a handoff stays consistent across application boundaries, pairing Agentforce testing with Oracle ERP testing so the human receives a complete picture.
What disciplined handoff testing gives you
Qualitative outcomes teams can expect when escalation is tested deliberately.
No dead ends
Customers who need a person reach one, instead of looping with an agent that cannot help.
No repeated stories
Context transfer means the human starts where the agent left off, not from scratch.
Balanced escalation
Testing both triggers and near-misses keeps the agent from over-escalating and flooding the queue.
Correct routing
Confidence that escalations land with the right skill or team, not a generic catch-all.
A stable threshold
Regression keeps the escalation point steady as prompts and models change over time.
Audit-ready evidence
Escalation decisions and transferred context can be recorded for quality and compliance review.
Agentforce human handoff testing FAQs
What is Agentforce human handoff testing?
It is the practice of verifying that a Salesforce AI agent escalates to a human at the right moment and transfers the right context when it does. Tests exercise the escalation trigger, the routing to the correct queue and the payload of history, intent and records handed to the person.
When should an agent hand off to a human?
Common triggers include an explicit request for a person, negative sentiment, high-risk or policy-bound topics, repeated failed attempts and requests outside the agent's scope. Handoff testing confirms the agent escalates on these while still resolving straightforward questions itself.
How do you test that context is transferred?
Drive a scripted conversation to an escalation, then assert that the handoff payload includes the conversation history, the identified intent and the relevant records. A passing test means the human can continue without asking the customer to repeat information already given.
How do you avoid over-escalation?
Include near-miss scenarios that resemble triggers but should be handled by the agent, and assert that no escalation occurs. Testing both directions keeps the agent from routing simple, answerable questions to a human and eroding the efficiency the deployment was meant to deliver.
Does SyntraFlow replace Omni-Channel or Testing Center?
No. Handoff is delivered through Service Cloud and Omni-Channel routing, and Agentforce Testing Center and the Testing API are native evaluation tooling. SyntraFlow is designed to complement them by validating trigger timing, routing and context transfer as repeatable regression with audit evidence.
What if the handoff involves ERP data?
When the case references an order, invoice or entitlement in Oracle, SAP, NetSuite or Workday, that context should travel with the handoff. SyntraFlow is designed to verify cross-application context stays consistent so the human receives a complete picture rather than only the Salesforce side.
Test escalation before customers feel it
Bring a real agent and we will show how SyntraFlow is designed to verify handoff timing, routing and context transfer across your Agentforce deployment.