# Connection with a button

## **Display like a button**

<div data-with-frame="true"><figure><img src="/files/TfJqECh3BAFQhqTzywTh" alt=""><figcaption></figcaption></figure></div>

By default, the **"Display as button"** toggle in the connection  settings is **disabled**.

To create buttons using connection, enable this toggle and enter the text you want to appear on the button in the **Connection trigger** field.

This works only in messengers that support buttons.

{% hint style="info" %}
Only **keyboard buttons** can be created using connection
{% endhint %}

Step 1. Go to the connection settings and specify the trigger:

<div data-with-frame="true"><figure><img src="/files/vTAP22Z6Hui3wcQIiLzT" alt=""><figcaption></figcaption></figure></div>

Step 2. Activate the "Display as button" setting:

<div data-with-frame="true"><figure><img src="/files/APWqleV48zGA7ICDoZXU" alt=""><figcaption></figcaption></figure></div>

Step 3. Repeat Step 1 and Step 2 if you want to display other connections as buttons:

<div data-with-frame="true"><figure><img src="/files/MiquEgWDMxAJLoCUi3oq" alt=""><figcaption></figcaption></figure></div>

Step 4. Test the bot:

<div data-with-frame="true"><figure><img src="/files/Pzr2CLYEc7LFEZxELkLP" alt=""><figcaption></figcaption></figure></div>

Done!\
Connections in blocks are now displayed as buttons!

<div data-with-frame="true"><figure><img src="/files/vn5P8HlKG7v7CCn65bNo" alt="" width="563"><figcaption></figcaption></figure></div>

**Line number and position in line:**\
Buttons created using connectors are, by default, displayed vertically one below another.\
Using this field, you can change the line number for displaying the button created by the arrow.\
Numbering starts at 0:

<div data-with-frame="true"><figure><img src="/files/fNVYiQZbChy4hFzFqqeR" alt=""><figcaption></figcaption></figure></div>

**Button color:** If needed, you can specify the button color — this works in Viber. You can select any button color — click on the **"Eyedropper"** icon to open the color palette.


---

# 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.mavibot.ai/chatbot/builder/connections/buttons.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.
