> 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-execute-automations/ai-agents-creating-a-screening-ai-with-routing-to-another-ai.md).

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

Creating a generalist agent that routes support to specialized AIs.

## Setting up 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-execute-automations.md).\
For this automation to work properly, some elements are essential:

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

Below, we present the minimum configuration required to carry out the transfer between AIs:

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FHnY0GycQpNJPHHVscwpc%2Fimage.png?alt=media&amp;token=e6ce0e7c-bd35-4965-ab01-fee59ec3ba22" alt=""><figcaption></figcaption></figure>

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2F0rwilf3mbTwNhSZSk54r%2Fimage.png?alt=media&amp;token=abd7d606-753f-4356-a9b0-fab670209c1f" alt=""><figcaption></figcaption></figure>

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FV2UOa5BFketetveLQ6vN%2Fimage.png?alt=media&amp;token=c8c8c132-a602-414a-af02-d1474278bf3e" alt=""><figcaption></figcaption></figure>

## Testing automation

To verify whether the automation is working correctly, it is possible to consult the lead history. There, you can check whether the actions were executed as expected or whether an error occurred during the process.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FBGVeBF7aSRk6IEjiIQ4q%2Fimage.png?alt=media&amp;token=f3f522fa-deb1-401e-a7c0-97eb1b913247" alt=""><figcaption></figcaption></figure>

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FWCwUXTJocLFuxlQg7HMs%2Fimage.png?alt=media&amp;token=3f0d67f0-63a9-4dd8-91ea-2f2b93ff174c" 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-execute-automations/ai-agents-creating-a-screening-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.
