> ## Documentation Index
> Fetch the complete documentation index at: https://watermelon.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Human handover

> With setting up Human Handover triggers, the AI Agent can hand off conversations to human agents. 

Human handover in Watermelon works based on handover triggers. This means that you set up specific triggers and when the end-user uses these triggers, the conversation is automatically forwarded to the new inbox, a specific team or a specific person.

## Enabling Human handover

If you want to enable automatically forwarding conversations to your employees; set up Human handover in your Agent. Go to **Actions** and select the **Human handover** action to do so.

<Frame>
  <img src="https://mintcdn.com/watermelon/QZFuGNVZMyMfMZJM/images/actions-handover-1.png?fit=max&auto=format&n=QZFuGNVZMyMfMZJM&q=85&s=4f1f15e4923db547bcee8e43032e4300" alt="Add Sources Human Handover" width="1439" height="778" data-path="images/actions-handover-1.png" />
</Frame>

## Handing off outside business hours

You can decide if you want to **hand off messages outside business hours** by using the toggle at the top of the screen. If you enable this, forwarded messages outside of opening hours will still be sent to the designated inbox. By default this functionality is turned off, so the Agent will not forward messages outside opening hours. You can amend your opening hours by clicking **Edit here**.

<Frame>
  <img src="https://mintcdn.com/watermelon/QZFuGNVZMyMfMZJM/images/actions-handover-2.png?fit=max&auto=format&n=QZFuGNVZMyMfMZJM&q=85&s=2ca440aceebd59660882e22baa4f1fcb" alt="Actions Handover 2" width="1439" height="778" data-path="images/actions-handover-2.png" />
</Frame>

## Setting up Human handover

<Steps>
  <Step title="Create trigger">
    Start setting up your Human handover by creating a trigger. To do so, click on the button **Create**.

    <Frame>
      <img src="https://mintcdn.com/watermelon/hRwmq_3EMP84P3Sp/images/add-handoff-triggers/add-handoff-triggers-create-trigger.png?fit=max&auto=format&n=hRwmq_3EMP84P3Sp&q=85&s=37a53fe9b0d46e6769c151650d44590e" alt="Add Handoff Triggers Create Trigger Pn" width="1972" height="984" data-path="images/add-handoff-triggers/add-handoff-triggers-create-trigger.png" />
    </Frame>
  </Step>

  <Step title="Create a trigger sentence">
    Triggers are words or phrases that prompt the AI Agent to hand off a conversation. Examples of triggers:

    * *Can I speak to an employee*
    * *I want to request a quote*
    * *I want to speak to Pete*
    * *Can I file a complaint*

    Only adding “employee” as a trigger, doesn’t give the Agent enough context.

    <Tip>
      You can set up multiple triggers for different scenarios.
    </Tip>
  </Step>

  <Step title="Assign conversation">
    Decide to which inbox the conversations should be forwarded. Choose **New** for all employees to pick up the conversation, **Team** for members of a specific team to be able to pick up the conversation or a specific **Person.**

    <Frame>
      <img src="https://mintcdn.com/watermelon/hRwmq_3EMP84P3Sp/images/add-handoff-triggers/add-handoff-triggers-assign.png?fit=max&auto=format&n=hRwmq_3EMP84P3Sp&q=85&s=292b6fb3dae9bb0a0b423f9446e93164" alt="Add Handoff Triggers Assign Pn" width="1970" height="1124" data-path="images/add-handoff-triggers/add-handoff-triggers-assign.png" />
    </Frame>
  </Step>

  <Step title="Set up Human handover messages">
    Add instructions to tell the AI Agent what to do during a Human handover. These instructions can include a message that the AI Agent sends before a human agent takes over the conversation.

    Example of instructions:

    * **During working hours**
      > *If someone wants to speak to an employee, let them know you will connect them and that it may take approximately 1 minute for a response.*
    * **Outside working hours**

      > If someone wants to speak to an employee, inform them that *Human handover\_is currently unavailable because no colleagues are available. Advise the end user to send an email or try again during work hours.*

          <Tip>
            In case you have multiple triggers, combine all triggers into a single clear instruction for the AI Agent. For example:

            > “If someone asks to speak to an employee, file a complaint, or request a quote, let them know you will transfer them to an employee.”
          </Tip>
  </Step>

  <Step title="Test handover triggers">
    Conversation forwarding only works in the live environment of an AI Agent. In the Playground, you can check how the AI Agent responds to a trigger, but conversations are not actually forwarded to the inbox.

    If you want to test the handover triggers, it's best to test on a test website.
  </Step>

  <Step title="Activate your handover action">
    Lastly, you need to activate your Human handover action. You do this by simply clicking 'Activate' at the top right of the screen. After activating your action, your agent will forward conversations based on your settings.

    <Frame>
      <img src="https://mintcdn.com/watermelon/QZFuGNVZMyMfMZJM/images/actions-handover-3.png?fit=max&auto=format&n=QZFuGNVZMyMfMZJM&q=85&s=20092d85362341b1b4729510489b1271" alt="Actions Handover 3" width="1439" height="778" data-path="images/actions-handover-3.png" />
    </Frame>
  </Step>
</Steps>

## How Human handover looks visually

In the Chat Widget, it is visible when a conversation is handed off and which colleague is handling the conversation. Via other channels like Facebook Messenger and WhatsApp, the customer cannot see this. See below an example of a handed off conversation.

## Problem solving

### Agent doesn't hand off the conversation

If the AI Agent doesn’t hand off a conversation, there could be several reasons:

* **Trigger mismatch:** The end user’s request to be handed off was formulated differently from the set trigger. For example, the user says “I want to contact Piet” instead of “speak to a staff member.” In this case, add an additional trigger to cover this.
* **Context missing:** Ensure that the trigger matches the words and/or context of the end user’s request. The AI Agent can recognize context, so an exact match is not always required.

### Agent says the conversation is being handed off, but nothing appears in the inbox

When an end user requests to speak to a staff member, the AI Agent may respond correctly but not actually hand off the conversation. This can happen if:

* **Human handover is not correctly configured:** Check whether the trigger is set to hand off to the correct inbox.
* **The trigger is missing:** The AI Agent responds politely based on its personality settings but lacks a trigger to initiate the actual Human handover.

**Solution:**

* **If you want to hand off:** Add a trigger with the words the AI Agent should recognize.
* **If you don’t want to hand off:** Add an instruction specifying how the AI Agent should respond without handing off. For example: “When someone requests to have their query handled by a staff member, ask them to send an email with their request.”

### Message sent by the AI Agent before the Human handover seems incorrect

The instructions may not align well with the set triggers, resulting in unclear or inaccurate messages from the AI Agent.

**Example:**

* **Triggers:** “speak to a staff member” & “contact customer service”
* **Instruction:** “If someone asks to speak to a staff member, let them know you are handing off the conversation.”

The end user says: “I want to contact customer service.” The AI Agent responds: “Great that you want to speak to our customer service. You can contact us via [support@watermelon.ai](mailto:support@watermelon.ai).” The conversation is then handed off, but the message does not make this clear.

**Solution:** Expand the instruction to cover multiple scenarios. For example: “If someone asks to speak to a staff member or contact customer service, let them know you are handing off the conversation.”
