# 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

![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/1sY41XX1hjeF26e5zggK/image.png)

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

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

{% tabs %}
{% tab title="Input" %}
![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/NlznCpEgyAMXGXQKvV0P/image.png)
{% endtab %}

{% tab title="Output" %}
![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/OAHdofik3ChsG0DsrC7e/image.png)
{% 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.

![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/4A2KJc4hvBaB1hxmXElU/image.png)
{% endtab %}

{% tab title="Call Support" %}

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

![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/SpXoZ2gUa1Ea04dINFct/image.png)
{% 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**](https://docs.myalice.ai/myalice-guide-arabic/data-lab-and-analytics/advanced-datalab).
3. Select a sequence that you want to redirect your users after filling up the form.

![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/fwPZjYg4pfdntkpoPIgF/image.png)
{% 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" %}
![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/C6OEVz3Cxm17VfztOvSw/image.png)

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

{% tab title="Output" %}
![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/mVJba380CsJwhunmeJYr/image.png)

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 %}
