> 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

No Chatlayer, uma conexão Go-to significa que um bloco acontecerá na conversa logo após o outro. Conexões Go-to podem ser estabelecidas de várias maneiras.

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="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FNiLpU39YNi8GYNU5vGtT%2FScreenshot%202024-08-07%20at%2016.01.58.png?alt=media&amp;token=583c808c-6bfc-4138-b17d-fd4d1374737d" 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="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FJEySuHulUcjyxCFyuoGP%2FScreenshot%202024-08-07%20at%2016.05.55.png?alt=media&amp;token=5361f4fb-031e-4c2e-8f22-087e8ed7124d" 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="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FmHF1v5qNNVxnMxEgTqAZ%2FScreenshot%202024-08-07%20at%2016.15.06.png?alt=media&amp;token=cb45adc7-d10a-4020-a1a2-021ac279b802" 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="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FkkAmTKfixDWGRfZcxwn4%2FScreenshot%202024-08-07%20at%2016.09.36.png?alt=media&amp;token=7e43d0f8-cb45-4855-88fa-bd9a10e743e6" 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 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/flow-logic/go-to-connections.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.
