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

# Go-to connections

On Chatlayer, a Go-to connection means that one block will happen in the conversation just after the other. Go-to connections can be established in multiple ways.

Your conversation logic is made so that you can go from any [block](/buildabot/flow-logic/dialog-state.md) type to any other block type in your flows.

On your [bot canvas](/navigation/bot-builder/flows.md), Go-to connections are represented as plain arrows.

<figure><img src="https://2786867680-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>What a Go-to connection looks like inside your canvas.</p></figcaption></figure>

{% hint style="info" %}
**Go to** connections shouldn't be confused with [**Parent-child** connections](https://docs.chatlayer.ai/navigate-the-platform/bot-builder/flows/canvas-functionalities#parent-child-connections).
{% endhint %}

### Go to another block

At the end of any [block](/buildabot/flow-logic/dialog-state.md), you can choose to redirect the user to any other block.

To do that, find the **Go to** ribbon at the bottom of your block and expand it to fill it in.

<figure><img src="https://2786867680-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>Go to any other block by filling the Go to section at the bottom of the block.</p></figcaption></figure>

### Go-to's in buttons

When you create a [Bot Message](/buildabot/flow-logic/dialog-state/message-components.md), you can redirect the user to another block by clicking something.

A clicking action can happen with:

* [buttons](https://docs.chatlayer.ai/bot-answers/dialog-state/message-components#buttons)
* [carousels](https://docs.chatlayer.ai/bot-answers/dialog-state/message-components#carousel)
* [lists](https://docs.chatlayer.ai/bot-answers/dialog-state/message-components#list)
* [quick replies](https://docs.chatlayer.ai/bot-answers/dialog-state/message-components#quick-replies)

{% hint style="info" %}
Not sure if a Go-to is the right button type for you? Check the different button types [here](https://docs.chatlayer.ai/bot-answers/dialog-state/message-components#button-types).
{% endhint %}

<figure><img src="https://2786867680-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>Go to another block when clicking a button.</p></figcaption></figure>

### Go-to's to pass a variable

At the end of blocks, you have the option to transfer the user to another block, and pass a variable that's saved in the user session.

To pass a variable:

1. Open your [block](/buildabot/flow-logic/dialog-state.md).
2. Define a **Go to** at the bottom.
3. Click on **+Add variable**.
4. Define your variable name and value.
5. Click **Save**.

<figure><img src="https://2786867680-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>Link two blocks and pass a variable by using the Go to section at the end of a block.</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/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.
