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

# How to set up automated handover in chat widget

> Use Automated handover rules in bitChat Chat Widget to add triggers, choose routing during operational hours, and choose escalation channels outside operational hours.

Use **Automated handover rules** to move a chat from the widget to a human workflow when specific conditions are met.

## Prerequisites

* You can open **bitChat > Chat Widget**.
* You know when the conversation should be handed over.
* If you want to route to one person, that agent is available in your workspace.

## Step 1: Open Automated handover rules

* Go to **bitChat > Chat Widget**.
* Open **Advanced**.
* Find **Automated handover rules**.

## Step 2: Turn on Automated handover rules

* Click **Add handover rules** if you are setting it up for the first time.
* Turn on the setting if it is off.

## Step 3: Add the trigger conditions

Under **Trigger a handover IF**, add one or more conditions.

The current form supports these triggers:

* **User message**
* **User sentiment**

For **User message**, the current form supports **Contain keyword(s)**.

For **User sentiment**, the current form currently includes **Angry**.

## Step 4: Choose what happens during operational hours

Under **During operational hours**, choose one of these options:

* **Transfer ticket to all**
* **Transfer to specific agent**

If you choose **Transfer to specific agent**, fill in **Assign to**.

## Step 5: Choose what happens outside operational hours

Under **Outside operational hours**, choose the escalation action and channel.

The current action is:

* **Offer to escalate conversation to other channel**

The current channel options are:

* **WhatsApp API**
* **Email**

If you choose **Email**, fill in **Email to**.

## Step 6: Save your changes

* Review the current trigger and routing settings.
* Save the widget settings.

## Related articles

* [Chat Widget overview](/bitchat/chat-widget-overview)
* [How to set up conversation starters in chat widget](/bitchat/how-to-set-up-conversation-starters-in-chat-widget)
* [How to set up AI error fallback](/settings/how-to-set-up-ai-error-fallback)
