# Button Block

You can use button blocks to redirect a user to a —

1. New sequence
2. URL or website
3. Phone call
4. Datalab Form

![](/files/-MiFN1OaZLr4YQEdkYhd)

{% hint style="info" %}
If you are new to this topic, please refer to our basic introduction to the [**Button Block**](/myalice-guide-arabic/chatbot-and-automation/chatbot-blocks/add-and-send-content-blocks.md#button-block) and follow along.
{% endhint %}

Here is a step-by-step instruction to creating effective sequences using button blocks.

{% tabs %}
{% tab title="Input" %}
![](/files/-MiFoMbnZEJqsxMVE3HJ)
{% endtab %}

{% tab title="Output" %}
![](/files/-MiFosnTVnTjqCL5mNbl)
{% endtab %}
{% endtabs %}

## Create A Sequence with Button Block

Suppose we want to showcase the most frequent links and resources in a click-worthy format. We have already shown many instances where we redirect our users to a new sequence. This time, we are focusing on redirecting users to URL, phone, or forms.

1. Website (URL)
2. Contact Support (Phone)
3. Place an Order (Form)

{% tabs %}
{% tab title="Website" %}

1. Set the button name as **Website**.
2. Place the URL where you want to redirect your users.
3. You can also select the Web View Aspect Ratio for a smartphone screen.

![](/files/-MiFprb1_aJhSkRqj4RR)
{% endtab %}

{% tab title="Call Support" %}

1. Set the button name as **Contact Support.**
2. Place the phone number where you want users to call.

![](/files/-MiFq8jLdTLRrMmAUIYI)
{% endtab %}

{% tab title="Place an Order" %}

1. Set the button name as **Place an Order**.
2. Select the form you want to connect to this button. To know more about how to create forms, refer to our [**Datalab Guide**](/myalice-guide-arabic/data-lab-and-analytics/advanced-datalab.md).
3. Select a sequence that you want to redirect your users after filling up the form.

![](/files/-MiFrCewFgv2rh2OH4u-)
{% endtab %}
{% endtabs %}

### Using the Set Attribute Block to Store Data

Suppose, the user has placed an order. As per our sequence, they will be redirected to the **Order Placed** sequence.&#x20;

{% tabs %}
{% tab title="Input" %}
![](/files/-MiFtJ3kK3gRbRqn_INm)

If the user is redirected to the sequence, we add a new attribute **order=placed** to the user.
{% endtab %}

{% tab title="Output" %}
![](/files/-MiFtaldquNn3juj3Mry)

The user will not receive further messages, but a new attribute **`order=placed`** will be assigned to the user. This attribute can later help you to distinguish new customers from old ones.
{% endtab %}
{% endtabs %}


---

# 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.myalice.ai/myalice-guide-arabic/chatbot-and-automation/advanced-blocks/button-block.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.
