> 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 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.chatlayer.ai/chatlayer-documentation-pt-br/buildabot/tips-and-best-practices/frequently-asked-questions.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.
