> For the complete documentation index, see [llms.txt](https://docs.chatlayer.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chatlayer.ai/chatlayer-documentation-pt-br/buildabot/tips-and-best-practices/frequently-asked-questions.md).

# Conecte dois bots entre si

## É possível conectar dois bots entre si?

De modo geral, nossa recomendação é tentar centralizar o máximo de informações em um único bot, desde que o público-alvo e o caso de uso geral desse bot permaneçam os mesmos.

No entanto, se, por qualquer motivo, for importante ter dois bots conversando com o usuário dentro da mesma conversa, há algumas possibilidades para conseguir isso.

* Se você usar o widget web da Chatlayer, poderá enviar um 'evento' para a aplicação web para indicar que o usuário deve ser conectado a outro bot. Isso só é possível com o canal Web e Webhook.
* A opção 2 é usar o canal Webhook; no entanto, isso requer uma implementação personalizada. Nesse caso, você poderia hospedar um serviço proxy que encaminhe mensagens dos diferentes canais para a Chatlayer.ai. Nesse serviço proxy, você pode decidir, para cada mensagem recebida, em qual bot quer solicitar uma resposta. A opção 2 é um caso de uso mais avançado e, portanto, não é muito comum, mas existem alguns bots em nossa plataforma que funcionam dessa forma. Atualmente, não há uma solução pronta que permita a alternância entre bots entre canais.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.chatlayer.ai/chatlayer-documentation-pt-br/buildabot/tips-and-best-practices/frequently-asked-questions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
