# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.balesotomatis.id/auto-reply-by-ai/switch-otomatis-antar-ai-agent.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
