# Transfer to a Human

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2F8F6fCZvpnksetCjoCdiK%2F30mjn7-image.png?alt=media&#x26;token=f7b74482-95dd-46be-b126-bbc50ae55087" alt=""><figcaption></figcaption></figure>

When you need to handover a chat from a flow to a human operator (HITL: Human in the loop) this is the action that makes the work for you.

The easiest example is to use the action attached to a button to allow the end-user to “Talk to a human” whenever they want.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FoxA9VD4O6Vv3JbJTJCRH%2F30mjtv-image.png?alt=media&#x26;token=54b07261-88b3-465f-a868-36e615581129" alt=""><figcaption></figcaption></figure>

To create this flow simply drag & drop the Human handover from the side menu to the stage.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FBWQ8YL8ODS2ITwJi8sWa%2F30mjvy-image.png?alt=media&#x26;token=0f201f9b-9096-4ec7-b4ae-0354375c93f6" alt=""><figcaption></figcaption></figure>

Once connected to a button (or whatever block in the flow) this action will move the flow to an available agent, if any. If no agents are available the action will automatically be moved to the *unassigned* status and put in the *unassigned queue*.

If no [Smart Assignment](https://guide.tiledesk.com/setting-up-automatic-assignment) is active the only variable checked for assignment is the Agents' *avaialble status*. The chat will be moved to the first available following a round-robin alghorithm.

Instead, when Smart Assignment is active, also the *Maximum chats* (see picture below) option of the Smart Assignment module setting will be checked.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FyHFroMiqZZcSxX674pp8%2F30mg1n-image.png?alt=media&#x26;token=3a91b49d-794f-4a20-931a-8bc242cbef0b" alt=""><figcaption></figcaption></figure>

If no agents are available the chat will be again put in the Unassigned status (you'll see the chat in the Monitor panel under the *Unassigned* section).

Using this Action along with [If Online Agents Action](https://guide.tiledesk.com/ai-chatbots-and-automation/actions-explained/if-online-agent) will give you the best results when no Smart Assignment is active.

When instead Smart Assignment is active sometimes the best approach is to always use the [Move to Unassigned Action](https://guide.tiledesk.com/ai-chatbots-and-automation/actions-explained/move-to-unassigned-action).

You can find a small tutorial on how to Transfer a chat to a human

Do you have any feedback on this article? Please send it to us at <info@tiledesk.com>

Enjoy Tiledesk!
