Individual skill
service-agentforce-human-escalation-configure
Use to configure and verify Agentforce agent-to-human escalation, including human handoff, a staffed fallback queue, and failure-threshold directives. Triggers: configure agent escalation, escalate to a human agent, agent handoff to a queue, configure a human escalation queue, set an Agentforce fallback handoff. Do not use to create an agent or configure inbound channel routing; use service-agentforce-channel-configure for inbound routing.
skills/service-agentforce-human-escalation-configure/SKILL.md
Source commit a8a18ce1e4ba12e69b4073eab98ce31bfbd8271e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,151
- Repository last updated
- Nov 6, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 19,296 bytesSKILL.mdcore · 19,296 bytesSKILL.mdcore · 19,296 bytesSKILL.mdcore · 19,296 bytesassets/escalation-thresholds.instructions.mddoc · 1,827 bytesassets/force-app/main/default/flows/Human_Escalation_Outbound_Flow.flow-meta.xmlasset · 6,983 bytesassets/package.xmlasset · 245 bytesassets/sfdx-project.jsonasset · 120 bytesreferences/classifier-contracts.mddoc · 5,120 bytesreferences/escalation-mechanism.mddoc · 3,186 bytesreferences/failure-policy.mddoc · 2,414 bytesreferences/nga-escalation.mddoc · 5,168 bytesreferences/runtime-verification.mddoc · 3,881 bytesscripts/classify-agent-active.mjsruns · 1,800 bytesscripts/classify-nga-escalation.mjsruns · 6,414 bytesscripts/extract-outbound-route.mjsruns · 2,281 bytesscripts/patch-escalation-surfaces.mjsruns · 6,676 bytesscripts/tests/__init__.pyruns · 0 bytesscripts/tests/_bootstrap.pyruns · 13,228 bytesscripts/tests/test_escalation_contracts.pyruns · 43,834 bytesscripts/verify-and-configure.shruns · 40,194 bytesscripts/verify-escalation-config.mjsruns · 3,830 bytes
Read excerpt
# Configure Agentforce Agent → Human Escalation
Wire an Agentforce agent so it can hand a conversation off to a human agent through an Omni-Channel queue. This skill configures and verifies the escalation surfaces, then reports a single machine-readable JSON verdict. It is **idempotent** per developer name and **refuses to write to production orgs**. It runs standalone or as a stage in a larger setup flow (after the agent is created and active).
The agent, queue, outbound flow name, routed context object, service channel, and failure thresholds are all inputs, so the same skill serves any scenario (IT employee support, customer messaging, etc.) — the caller supplies the scenario-specific identifiers.
This skill is the **authoritative owner of agent-to-human (outbound) escalation**. `service-agentforce-channel-configure` may wire a basic outbound flow + `connection` block in the same pass as inbound channel setup, but it delegates full escalation configuration and verification here.
## The honest boundary — what is deterministic vs. directive vs. runtime
Escalation in Agentforce is assembled from surfaces with different verifiability:
- **Deterministic** (this skill writes and/or round-trip verifies via the Metadata/Data API): `canEscalate=true` on the escalation topic (`GenAiPlugin`); `outboundRouteConfigs` on the agent's Messaging planner surface (`GenAiPlannerBundle`), where the SAME block couples `outboundRouteName` to `outboundRouteType=OmniChannelFlow` on a Messaging-class surface; a QueueBased outbound `RoutingFlow` with a non-null `ActiveVersionId`; a human queue with a `QueueSobject` for the context object, its `QueueRoutingConfig` bound to the queue, and **at least one active human member** (a queue with zero members can never route an escalation to a human, so it never reaches `CONFIGURED`); and the agent Active after republish.
- **Directive / native policy** (authored as Agent Script instructions, **not** a metadata counter): the default **two consecutive failures** threshold plus per-topic overrides (e.g. **password reset = one failure**). There is no metadata field that counts failed turns — the threshold is instruction text, verified by an ADK eval rubric, not a runtime read. See [references/failure-policy.md](references/failure-policy.md).