> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/artificial-intelligence/ai-agents/ai-agents-run-automations/ai-agents-creating-a-triage-ai-with-routing-to-another-ai.md).

# AI Agents - Creating a Triage AI with Routing to Another AI

## Configuring the Run Automations skill

To transfer from one AI to another, it is necessary to enable the skill and configure a new [**Agent Automation**](/en/topics/artificial-intelligence/ai-agents/ai-agents-run-automations.md).\
For this automation to work correctly, some elements are essential:

* **Agent Condition**: Clearly define the criteria based on lead fields or message content. For example: when the lead shows interest in a specific product or requests contact with a company department.
* **Agent Action**: The automation must include the action **"Start AI Agent"**. When this action is executed, the current AI will be terminated and the specialist agent will be started automatically.

Below, we present a minimal configuration required to perform the transfer between AIs:

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

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

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

## Testing automation

To verify if the automation is working correctly, you can check the lead's history. There, you will be able to see whether the actions were executed as expected or if any error occurred during the process.

<figure><img src="/files/3ff1d975a5733e3151e16a7bf2579f2c95db1004" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/034e96c2c6eb2cf645680d9323fe0f464afeacfd" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.sprinthub.com/en/topics/artificial-intelligence/ai-agents/ai-agents-run-automations/ai-agents-creating-a-triage-ai-with-routing-to-another-ai.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
