> For the complete documentation index, see [llms.txt](https://docs.cekat.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cekat.ai/en/ai-and-platform/ai-agent/ai-agent-behavior/handoff-to-a-specific-team-via-prompt.md).

# Handoff to a Specific Team or Division via Prompt

You can automatically route a conversation to a specific agent or division (team) based on what the customer writes, using prompt logic. This is especially handy for sending chats to the right team by region, product or any other specific need.

> **Note:**\
> For a handoff to a team to work, make sure:
>
> * **The team has been added to the inbox**
> * **The agents in that team have access to the inbox**

***

Example prompt logic:

**Prompt:**

> If the customer mentions the word "help" and also mentions their location, route them to the team that covers that location.

**Keyword logic:**

* Central Jakarta, West Jakarta, South Jakarta → hand off to `CS Jakarta Division`
* Depok → hand off to `CS Depok Division`

***

Example prompt format:

```plaintext
If the first message contains the word "help" and also contains one of:
Central Jakarta, West Jakarta, South Jakarta → hand off to team: CS Jakarta Division
Depok → hand off to team: CS Depok Division
```
