> 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/flow-logic/go-to-connections.md).

# Conexões Go-to

A lógica da sua conversa é feita para que você possa ir de qualquer [bloco](/chatlayer-documentation-pt-br/buildabot/flow-logic/dialog-state.md) tipo para qualquer outro tipo de bloco nos seus fluxos.

No seu [tela do bot](/chatlayer-documentation-pt-br/navegacao/bot-builder/flows.md), as conexões de Go-to são representadas por setas simples.

<figure><img src="/files/83529083550f8dc30b3e90f2a0ac26edec3a8cd8" alt=""><figcaption><p>É assim que uma conexão Go-to aparece dentro do seu canvas.</p></figcaption></figure>

{% hint style="info" %}
**Ir para** as conexões não devem ser confundidas com [**Pai-filho** conexões](https://docs.chatlayer.ai/navigate-the-platform/bot-builder/flows/canvas-functionalities#parent-child-connections).
{% endhint %}

### Ir para outro bloco

No final de qualquer [bloco](/chatlayer-documentation-pt-br/buildabot/flow-logic/dialog-state.md), você pode escolher redirecionar o usuário para qualquer outro bloco.

Para fazer isso, encontre a **Ir para** faixa na parte inferior do seu bloco e expanda-a para preenchê-la.

<figure><img src="/files/26c6c5c42cab53854112569bbcf07e938e8ff5d4" alt="" width="278"><figcaption><p>Vá para qualquer outro bloco preenchendo a seção Go to na parte inferior do bloco.</p></figcaption></figure>

### Go-to's em botões

Quando você cria uma [Mensagem do bot](/chatlayer-documentation-pt-br/buildabot/flow-logic/dialog-state/message-components.md), você pode redirecionar o usuário para outro bloco clicando em algo.

Uma ação de clique pode acontecer com:

* [botões](https://docs.chatlayer.ai/bot-answers/dialog-state/message-components#buttons)
* [carrosséis](https://docs.chatlayer.ai/bot-answers/dialog-state/message-components#carousel)
* [listas](https://docs.chatlayer.ai/bot-answers/dialog-state/message-components#list)
* [respostas rápidas](https://docs.chatlayer.ai/bot-answers/dialog-state/message-components#quick-replies)

{% hint style="info" %}
Não tem certeza se um Go-to é o tipo de botão certo para você? Confira os diferentes tipos de botão [aqui](https://docs.chatlayer.ai/bot-answers/dialog-state/message-components#button-types).
{% endhint %}

<figure><img src="/files/9136b55eea3c3a361b873101b93feaba1d56afb2" alt=""><figcaption><p>Vá para outro bloco ao clicar em um botão.</p></figcaption></figure>

### Go-to's para passar uma variável

No final dos blocos, você tem a opção de transferir o usuário para outro bloco e passar uma variável salva na sessão do usuário.

Para passar uma variável:

1. Abra o seu [bloco](/chatlayer-documentation-pt-br/buildabot/flow-logic/dialog-state.md).
2. Defina uma **Ir para** na parte inferior.
3. Clique em **+Adicionar variável**.
4. Defina o nome e o valor da sua variável.
5. Clique em **Salvar**.

<figure><img src="/files/4a9aa4123e36ea9680dcf3efe86d5c082f6107f7" alt="" width="274"><figcaption><p>Conecte dois blocos e passe uma variável usando a seção Go to no final de um bloco.</p></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.chatlayer.ai/chatlayer-documentation-pt-br/buildabot/flow-logic/go-to-connections.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.
