# Go-to connections

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="/files/B6TYr7EC0cmRHZOFWHVT" 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="/files/cdHBBzgr4pPKZyd85BM1" 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.&#x20;

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)&#x20;
* [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="/files/H4i1ZUIqtcogGfZBGEtD" 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.&#x20;
3. Click on **+Add variable**.&#x20;
4. Define your variable name and value.
5. Click **Save**.

<figure><img src="/files/VWDKt3gVqfu49cBlhOCD" 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: 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:

```
GET https://docs.chatlayer.ai/buildabot/flow-logic/go-to-connections.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
