# Handoff ke Tim/Divisi Tertentu via Prompt

Kamu bisa mengarahkan percakapan secara otomatis ke agent atau divisi (team) tertentu berdasarkan isi pesan customer, menggunakan prompt logic. Ini sangat berguna untuk mendistribusikan chat ke tim sesuai wilayah, produk, atau kebutuhan spesifik lainnya.

> **Catatan:**\
> Agar handoff ke team bisa berhasil, pastikan:
>
> * **Team tersebut sudah ditambahkan ke inbox**
> * **Agent di dalam team memiliki akses ke inbox tersebut**

***

Contoh Prompt Logic:

**Prompt:**

> Jika customer menyebut kata “bantuan” dan juga menyebutkan lokasi mereka, maka arahkan ke tim yang sesuai dengan lokasi.

**Keyword Logic:**

* Jakarta Pusat, Jakarta Barat, Jakarta Selatan → handoff ke `CS Jakarta Division`
* Depok → handoff ke `CS Depok Division`

***

Contoh Format Prompt:

```plaintext
Jika pesan pertama mengandung kata "bantuan" dan juga mengandung salah satu dari: 
Jakarta Pusat, Jakarta Barat, Jakarta Selatan → handoff ke team: CS Jakarta Division
Depok → handoff ke team: CS Depok Division
```


---

# 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.cekat.ai/ai-and-platform/ai-agent/ai-agent-behavior/handoff-ke-tim-divisi-tertentu-via-prompt.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.
