# 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: 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.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>
```

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.
