Handoff is the process of transferring an end user conversation from a [Dialogflow CX agent](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent.md.txt) to a human agent. When an end user asks to speak with a human agent, Dialogflow CX invokes the [built in event](https://docs.cloud.google.com/dialogflow/cx/docs/concept/handler.md.txt#event-built-in) `flow-failed-human-escalation`, which activates the [symbolic transition target](https://docs.cloud.google.com/dialogflow/cx/docs/concept/handler.md.txt#symbolic) `END_FLOW_WITH_HUMAN_ESCALATION`.

## End flow

Dialogflow CX ends conversations with the `END_FLOW` transition, which initiates the [handler call stack](https://docs.cloud.google.com/dialogflow/cx/docs/concept/handler.md.txt#handler-flow-stack). When the call stack is empty, `END_FLOW_WITH_HUMAN_ESCALATION` ends the Dialogflow CX session and transfers the conversation to a human agent.

## Telephony integration

Follow the instructions to [setup your Google Cloud telephony integration](https://docs.cloud.google.com/dialogflow/cx/docs/concept/integration/sip-trunk/cloud-setup.md.txt) to enable handoff.