> For the complete documentation index, see [llms.txt](https://docs.balesotomatis.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.balesotomatis.id/auto-reply-by-ai/switch-otomatis-antar-ai-agent.md).

# Switch Otomatis Antar AI Agent

**Contoh kasus (kenapa fitur ini dibuat):**\
Misal, *User A* awalnya ditangani **AI Agent Marketing**. Saat *User A* bertanya soal **partnership**, sistem otomatis memindahkan percakapan ke **AI Agent Partnership**. Tujuannya agar jawaban lebih tepat, cepat, dan sesuai topik.

**Langkah Setup:**

<figure><img src="/files/ctQ4MaNC233GJzc2EKhj" alt=""><figcaption></figcaption></figure>

* Buka **ChatBot AI** → pilih **AI Agent** kamu → klik **Configure**.

<figure><img src="/files/c7GLvazKjR9mFSpEWQWl" alt=""><figcaption></figcaption></figure>

* Klik **Live AI Testing** untuk masuk ke **AI Testing Lab**.

<figure><img src="/files/hoNT0hTQLTcKCOYj7CY8" alt=""><figcaption></figcaption></figure>

* Buka menu **Routing Rules** → klik **Create Rule**.

<figure><img src="/files/cI3Dusannox8r5ZEUxB6" alt=""><figcaption></figcaption></figure>

* Pilih **Custom Rule** (atau gunakan template yang tersedia).

<figure><img src="/files/TC171MFGT8A0Bbe2iGV7" alt=""><figcaption></figcaption></figure>

* Pada **Available Conditions**, pilih **Keyword / Patterns**.

<figure><img src="/files/G1jyHJ3INXDsTGqwY7mG" alt=""><figcaption></figcaption></figure>

* Isi **Keyword**, contoh: `info partnership` → set **Match Type** ke **Contains**.
* Klik **Next**.

<figure><img src="/files/bFgtU2tbaiUgEYKazfB0" alt=""><figcaption></figcaption></figure>

* Pada **Available Actions**, pilih **Switch Agent**.

<figure><img src="/files/DqbR2LDMW6MUNmDlmsYu" alt=""><figcaption></figcaption></figure>

* Pada **Agent Type**, pilih **Agent**.

<figure><img src="/files/IdK5QtoiXCnkUjn7ioSI" alt=""><figcaption></figcaption></figure>

* Pilih tujuan **AI Agent** (contoh: **Partnership Agent**).
* Pastikan opsi berikut ini ter-centang:
  * **Preserve conversation context** (agar konteks chat tetap terbawa)
  * **Transfer conversation data** (agar data percakapan ikut dipindah)
  * **Notify user about agent switch** (beri tahu user soal perpindahan agent) Opsional
* Klik **Next** → isi **Rule Name** & **Description** → klik **Finish**.

**Tips:**

* Gunakan kata kunci yang paling sering dipakai user (mis. “kerja sama”, “kolaborasi”, “partnership”).
* Selalu aktifkan **Preserve conversation context** agar pengalaman chat tetap mulus.
