> 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/topicos/inteligencia-artificial/agentes-de-ia/agentes-de-i.a.-executar-automacoes/agentes-de-i.a.-criando-uma-ia-de-triagem-com-encaminhamento-para-outra-ia.md).

# Agentes de I.A. - Criando uma IA de Triagem com Encaminhamento para Outra IA

## Configurando a habilidade Executar Automações

Para transferir de uma IA para outra, é necessário ativar a habilidade e configurar uma nova [**Automação do Agente**](/topicos/inteligencia-artificial/agentes-de-ia/agentes-de-i.a.-executar-automacoes.md).\
Para que essa automação funcione corretamente, alguns elementos são essenciais:

* **Condição do Agente**: Defina claramente os critérios com base nos campos do lead ou no conteúdo das mensagens. Por exemplo: quando o lead demonstrar interesse por um produto específico ou solicitar contato com um setor da empresa.
* **Ação do Agente**: A automação deve incluir a ação **"Iniciar Agente de IA"**. Quando essa ação for executada, a IA atual será finalizada e o agente especialista será iniciado automaticamente.

A seguir, apresentamos uma configuração mínima necessária para realizar a transferência entre IAs:

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

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

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

## Testando automação

Para verificar se a automação está funcionando corretamente, é possível consultar o histórico do lead. Nele, você poderá conferir se as ações foram executadas conforme o esperado ou se ocorreu algum erro durante o processo.

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

<figure><img src="/files/FGczcmxwzVvMF2CQFQJu" 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/topicos/inteligencia-artificial/agentes-de-ia/agentes-de-i.a.-executar-automacoes/agentes-de-i.a.-criando-uma-ia-de-triagem-com-encaminhamento-para-outra-ia.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.
