# Go-to connections

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

On your [bot canvas](https://docs.chatlayer.ai/navigation/bot-builder/flows), 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&#x26;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](https://docs.chatlayer.ai/buildabot/flow-logic/dialog-state), 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&#x26;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](https://docs.chatlayer.ai/buildabot/flow-logic/dialog-state/message-components), 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="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&#x26;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](https://docs.chatlayer.ai/buildabot/flow-logic/dialog-state).
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="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&#x26;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>
